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

error when running Find_room.py #9

Open
sivakrkumar opened this issue Aug 1, 2017 · 2 comments
Open

error when running Find_room.py #9

sivakrkumar opened this issue Aug 1, 2017 · 2 comments

Comments

@sivakrkumar
Copy link

Hi
I am using python 2.7. when I tried to execute find_room.py in my local , it has raised the below error message. Kindly assist.

The syntax of the command is incorrect.
Traceback (most recent call last):
File "C:\Users\siramac\Desktop\roomfinder-master\roomfinder-master\find_rooms.
py", line 57, in
rooms.update(findRooms(prefix))
File "C:\Users\siramac\Desktop\roomfinder-master\roomfinder-master\find_rooms.
py", line 28, in findRooms
tree = ET.fromstring(response)
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1312, in XML
return parser.close()
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1665, in close
self._raiseerror(v)
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1517, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

@ammferreirinha
Copy link

Same issue...

@MortenVinding
Copy link

MortenVinding commented Oct 2, 2024

Same issue here.
Running python2 with the verbose "-v" switch revealed the problem:

Password:
/bin/sh: 14: Syntax error: ")" unexpected

turned out the password can not contain any charecters that gets evaluated by the shell. In my case it was a ) and a &
After escaping those with backslash: \) and \& it worked:

After searching for prefix 'DMI' we found 68 rooms.
After searching for prefix 'SKG' we found 69 rooms.

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

3 participants