PySIGNFe
PySIGNFe copied to clipboard
Problemas com a Manifestação NFe.
Opa! Eu estou tendo a seguinte resposta ao tentar manifestar uma nota. Acredito ser um problema de biblioteca do python 3.6. Já teria passo por isso ?
NF-e versao... 3.10
Conectando ao servico SEFAZ.........
servidor: www.sefazvirtual.fazenda.gov.br
url: RecepcaoEvento/RecepcaoEvento.asmx
Traceback (most recent call last):
File "nfe.py", line 67, in <module>
manifest.manifest_nfe(cnpj[i]['cnpj'], certificado[i]['certificado'].tobytes(), senha[i]['senha_certificado'], "53190802914460006272550010008971121316878555")
File "/opt/apps/nfe/NFELib/lib/manifest.py", line 35, in manifest_nfe
processo = nova_nfe.efetuar_manifesto(cnpj=str(cnpj), tipo_manifesto=tipo_manifesto, chave=str(chave), ambiente_nacional=True, cert=info_certificado['cert'], key=info_certificado['key'], versao=u'2.00', ambiente=1, estado=u'DF', contingencia=False)
File "/usr/lib/python3.6/site-packages/PySIGNFe-0.1.0-py3.6.egg/pysignfe/nf_e.py", line 311, in efetuar_manifesto
processo = p.efetuar_manifesto_destinatario(cnpj=cnpj, tipo_manifesto=tipo_manifesto, chave_nfe=chave, justificativa=justificativa, ambiente_nacional=ambiente_nacional)
File "/usr/lib/python3.6/site-packages/PySIGNFe-0.1.0-py3.6.egg/pysignfe/nfe/processador_nfe.py", line 609, in efetuar_manifesto_destinatario
processo = self.enviar_lote_evento(tipo_evento='confrec', lista_eventos=[evento], numero_lote=numero_lote)
File "/usr/lib/python3.6/site-packages/PySIGNFe-0.1.0-py3.6.egg/pysignfe/nfe/processador_nfe.py", line 529, in enviar_lote_evento
self._conectar_servico(WS_NFE_EVENTO, envio, resposta)
File "/usr/lib/python3.6/site-packages/PySIGNFe-0.1.0-py3.6.egg/pysignfe/nfe/processador_nfe.py", line 170, in _conectar_servico
con.request(u'POST', u'/' + self._url, self._soap_envio.xml.encode(u'utf-8'), self._soap_envio.header)
File "/usr/lib64/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/lib64/python3.6/http/client.py", line 1400, in connect
server_hostname=server_hostname)
File "/usr/lib64/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/usr/lib64/python3.6/ssl.py", line 817, in __init__
self.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)