Skip to content

lxml.etree.XMLSyntaxError: Space required after the Public Identifier, line 1, column 50 #1

Description

@IhCosmo

Hello I'm trying to get the data but the follow error arises...

Traceback (most recent call last):
  File "get_data.py", line 179, in <module>
    main(args.username,args.password,
  File "get_data.py", line 121, in main
    conn.query(my_query)
  File "/media/erick/CompactGroup/data_retrieval/millennium_query.py", line 121, in query
    root = etree.fromstring(response.content)
  File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring
  File "src/lxml/parser.pxi", line 1896, in lxml.etree._parseMemoryDocument
  File "src/lxml/parser.pxi", line 1784, in lxml.etree._parseDoc
  File "src/lxml/parser.pxi", line 1141, in lxml.etree._BaseParser._parseDoc
  File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
  File "<string>", line 1
lxml.etree.XMLSyntaxError: Space required after the Public Identifier, line 1, column 50

I tried installing another lxml version (4.20) without success... So how can I solve this little Issue?

Thanks in advace

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions