asmaier / roomfinder

Python scripts for finding free conference rooms from a Microsoft Exchange Server
9 stars 9 forks source link

error when running Find_room.py #9

Open sivakrkumar opened 7 years ago

sivakrkumar commented 7 years ago

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 commented 6 years ago

Same issue...

MortenVinding commented 2 weeks ago

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.