You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: