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

lxml.etree.XMLSyntaxError: Start tag expected #42

Open
Choromanski opened this issue Jan 31, 2019 · 4 comments
Open

lxml.etree.XMLSyntaxError: Start tag expected #42

Choromanski opened this issue Jan 31, 2019 · 4 comments

Comments

@Choromanski
Copy link

I am getting an error with etree

Traceback (most recent call last):                                                                                                                                           
  File "./tespeed.py", line 720, in <module>
    main(args)
  File "./tespeed.py", line 691, in main
    uploadtests=args.uploadtests, 
  File "./tespeed.py", line 156, in __init__
    self.TestSpeed()
  File "./tespeed.py", line 632, in TestSpeed
    self.server_list=self.LoadServers()
  File "./tespeed.py", line 411, in LoadServers
    servers_xml = etree.fromstring(response.read())
  File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring                                                                                                             
  File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument                                                                                                  
  File "src/lxml/parser.pxi", line 1765, in lxml.etree._parseDoc                                                                                                             
  File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc                                                                                                 
  File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc                                                                                   
  File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult                                                                                                     
  File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError                                                                                                       
  File "<string>", line 1                                                                                                                                                    
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1

Will work on a fix for this

@001101
Copy link

001101 commented Aug 30, 2019

me2

archlinux - Python 2.7.16 - python-argparse & python2-lxml installed

@shuish0071
Copy link

me2

1 similar comment
@sackio
Copy link

sackio commented Nov 11, 2019

me2

@drsandro
Copy link

drsandro commented Nov 3, 2020

Hi,

I forked the project and fixed it. The response is using gzip now, so it didn't work anymore.

https://github.com/drsandro/tespeed

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

5 participants