Posted by ShprotX at 2007-10-15 20:51:53
PyICQ gives such error message on startup:
"Checking spool files and stringprepping any if necessary...
Unable to stringprep @notes_to_myself. Putting into BAD directory.
An error occurred during one of the automatic data update routines.
Please report this bug.
Traceback (most recent call last):
File "/opt/ejabberd/pyicq-t-0.8a/PyICQt.py", line 16, in
<module>
main.main()
File "/opt/ejabberd/pyicq-t-0.8a/src/main.py", line 443, in main
app = App()
File "/opt/ejabberd/pyicq-t-0.8a/src/main.py", line 396, in
__init__
xdb.housekeep()
File "/opt/ejabberd/pyicq-t-0.8a/src/xdb/xmlfiles.py", line 336, in
housekeep
exec("%s()" % note)
File "<string>", line 1, in <module>
File "/opt/ejabberd/pyicq-t-0.8a/src/xdb/xmlfiles.py", line 359, in
doSpoolPrepCheck
shutil.move(pre + file, pre + "BAD" + X + file)
File "/usr/lib/python2.5/shutil.py", line 199, in move
copy2(src,dst)
File "/usr/lib/python2.5/shutil.py", line 91, in copy2
copyfile(src, dst)
File "/usr/lib/python2.5/shutil.py", line 46, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
u'/var/spool/ejabberd/myhostname.com/%notes_to_myself'"
This message began to appear after last system upgrade.
I've taken a look at /opt/ejabberd/pyicq-t-0.8a/src/xdb/xmlfiles.py and found
that there is, IMHO, mistake at line 350: "if os.path.isfile(pre + file)
and file.find(".xml"):" - str.find returns -1 when substring was
not found. After changing that to "if os.path.isfile(pre + file) and
file.find(".xml") != -1:" all works fine.
Owner: r000nster