I get the following error when I try to start
notifier.py on FC5, though it works fine in FC4:
Gmail Notifier v1.6.1b (2006/03/23 14:47:55)
----------
xmllangs: Error parsing XML file.
Traceback (most recent call last):
File "./notifier.py", line 409, in ?
gmailnotifier = GmailNotify()
File "./notifier.py", line 54, in __init__
self.configWindow = GmailConfig.GmailConfigWindow( )
File
"/home/anshul/software/gmail-notify/GmailConfig.py",
line 33, in __init__
self.readConfig()
File
"/home/anshul/software/gmail-notify/GmailConfig.py",
line 199, in readConfig
self.lang = self.langs_parser.find_lang(
self.options["lang"])
File
"/home/anshul/software/gmail-notify/xmllangs.py", line
118, in find_lang
return self.lh.langs[0]
IndexError: list index out of range
Logged In: YES
user_id=1203288
I came across the same problem, and I found the real problem
is due to the fact that in Fedora 5, the sys.path array's
first index is empty, "", instead of the assumed value ".".
The fix for this would be to add the line
sys.path[0] = "."
in the top of the GmailConfig.py and the notifier.py files.
Logged In: NO
I got the same problem when trying to start it on Arch Linux!
Logged In: YES
user_id=1560565
I also got the same problem.
You're right jqian, but that fix make no sense when you're
not in the same directory as "notifier.py". I recommend to
put the absolute path instead of "sys.path[0]". That's not
the "elegant" way, but it solve the problem.
For example:
LANGXML_PATH="/home/.../.../langs.xml"
(instead of...)
LANGXML_PATH=sys.path[0]+"/langs.xml"
PD: I have proved and it works.
dck161 =P
Logged In: NO
I looked in to this one, and added 'print filename' to
xmllangs.py before it hits the XML error. It points to:
/usr/lib/python2.4/site-packages/gtk-2.0/langs.xml
Sure enough, the file wasn't there. (I installed a bunch of
gtk2-related packages, with no luck.)
Logged In: NO
I have the same problem.