Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COT - Incompatibilidad en python 3 #113

Closed
gbertolani opened this issue Dec 20, 2023 · 1 comment
Closed

COT - Incompatibilidad en python 3 #113

gbertolani opened this issue Dec 20, 2023 · 1 comment

Comments

@gbertolani
Copy link

Hola, como estas?

Estaba probando lo del cot, pero hay una incompatibilidad en python 3 al intentar verificar si un objeto es instancia de la clase file

El error es el siguiente

File "/usr/local/lib/python3.8/site-packages/pyafipws/cot.py", line 110, in PresentarRemito
response = self.client(
File "/usr/local/lib/python3.8/site-packages/pyafipws/utils.py", line 589, in call
boundary, body = self.multipart_encode(vars)
File "/usr/local/lib/python3.8/site-packages/pyafipws/utils.py", line 551, in multipart_encode
if not isinstance(value, file):
NameError: name 'file' is not defined

Encontré este Issue#111 cerrado pero no aclara como se soluciono.

@reingart
Copy link
Owner

reingart commented Jan 7, 2024

Hola @gbertolani este tema esta corregido en el branch de PyAr:

https://github.com/PyAr/pyafipws/blob/main/utils.py#L549

En cuanto pueda voy a mergear esos cambios en mi rama personal, recomendaría usar esa rama para python3 ya que recibe mas actualizaciones de la comunidad.

Gracias por el reporte y buen año!

@reingart reingart closed this as completed Jan 7, 2024
reingart added a commit that referenced this issue Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants