1
resposta

[Bug] Erro: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3553, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3553, in run_code exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in <cell line: 1> dados_classcli = pd.read_xml('/content/MERCADOPAGO_DOC3040_ARRASTO_1904_202309.xml')

File "/usr/local/lib/python3.10/dist-packages/pandas/util/_decorators.py", line 331, in wrapper return func(*args, **kwargs)

File "/usr/local/lib/python3.10/dist-packages/pandas/io/xml.py", line 1088, in read_xml return _parse(

File "/usr/local/lib/python3.10/dist-packages/pandas/io/xml.py", line 827, in _parse data_dicts = p.parse_data()

File "/usr/local/lib/python3.10/dist-packages/pandas/io/xml.py", line 551, in parse_data self.xml_doc = self._parse_doc(self.path_or_buffer)

File "/usr/local/lib/python3.10/dist-packages/pandas/io/xml.py", line 636, in _parse_doc doc = fromstring(

File "src/lxml/etree.pyx", line 3257, in lxml.etree.fromstring

File "src/lxml/parser.pxi", line 1916, in lxml.etree._parseMemoryDocument

File "src/lxml/parser.pxi", line 1803, in lxml.etree._parseDoc

File "src/lxml/parser.pxi", line 1144, in lxml.etree._BaseParser._parseDoc

File "src/lxml/parser.pxi", line 618, in lxml.etree._ParserContext._handleParseResultDoc

File "src/lxml/parser.pxi", line 728, in lxml.etree._handleParseResult

File "src/lxml/parser.pxi", line 657, in lxml.etree._raiseParseError

File "", line 1 XMLSyntaxError: AttValue: " or ' expected, line 1, column 37748737

1 resposta

Oi Kaik, como vai?

Você poderia me mostrar, por favor, em qual código você recebeu esse erro? Se puder compartilhar seu notebook, fico grata! Para isso, é só clicar no botão "Compartilhar", que fica no canto superior direito da página, mudar o acesso para "qualquer pessoa com o link" e então copiar e colar o link aqui no fórum.

Fico no aguardo!