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

Gerar Danfe com emissor CPF #4

Open
rcbull opened this issue Dec 1, 2020 · 1 comment
Open

Gerar Danfe com emissor CPF #4

rcbull opened this issue Dec 1, 2020 · 1 comment

Comments

@rcbull
Copy link

rcbull commented Dec 1, 2020

Tentei emitir a Danfe para alguns XMLs cujo emissor é CPF e reportou o seguinte:

Traceback (most recent call last): File "main.py", line 28, in <module> danfe = erpbrasil.edoc.pdf.ImprimirXml(file_content) File "/home/user/anaconda3/lib/python3.8/site-packages/erpbrasil/edoc/pdf/base.py", line 41, in __init__ self.object_xml = objectify.fromstring(self.string_xml, parser=parser) File "src/lxml/objectify.pyx", line 1808, in lxml.objectify.fromstring File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1891, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

Tem algum roadmap para atualizar o repositório? Estou pensando em usar a lib xmltodict para tratar os dados da NF e checar os campos usados.

@mileo
Copy link
Member

mileo commented Feb 4, 2021

@rcbull obrigado pelo teste!

Ainda não temos um Roadmap, se vc conseguir contribuir com algo. vai ser muito útil.

Temos um grupo no telegram: https://t.me/erpbrasil conforme for manda uma mensagem lá que combinamos.

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