bra...@gmail.com
unread,11:10 AM (8 hours ago) 11:10 AMSign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyAfipWs Factura Electrónica Libre y temas relacionados AFIP ARBA ANMAT
Tengo este error y no puedo entender de cual es el problema cuando llamo a python3.9 /opt/pyafipws/rece1.py /opt/pyafipws/rece.ini /json /autorizar
Leyendo TA de /usr/local/lib/python3.9/site-packages/PyAfipWs-3.9.3145-py3.9.egg/pyafipws/cache/TA-149001dd183c8cfec864b00091eaa1b4.xml...
Diferencias: ["tag Iva len !=: [] [{'AlicIva': {'Id': 5, 'BaseImp': 10687.2, 'Importe': 2244.31}}]"]
Excepcion: b'%d format: a number is required, not str'
Traceback (most recent call last):
File "/opt/pyafipws/rece1.py", line 952, in main
autorizar(ws, f_entrada, f_salida, "/informarcaea" in sys.argv)
File "/opt/pyafipws/rece1.py", line 334, in autorizar
"Procesando %s %04d %08d %08d %s %s $ %0.2f IVA: $ %0.2f"
TypeError: %d format: a number is required, not str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pyafipws/rece1.py", line 995, in <module>
main()
File "/opt/pyafipws/rece1.py", line 973, in main
escribir_facturas(
File "/opt/pyafipws/rece1.py", line 394, in escribir_facturas
json.dump(facturas, archivo, sort_keys=True, indent=4)
File "/usr/local/lib/python3.9/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/usr/local/lib/python3.9/json/encoder.py", line 429, in _iterencode
yield from _iterencode_list(o, _current_indent_level)
File "/usr/local/lib/python3.9/json/encoder.py", line 325, in _iterencode_list
yield from chunks
File "/usr/local/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/local/lib/python3.9/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/local/lib/python3.9/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable
alguno podria ayudarme?