problem to start PyMSNt.py

1 view
Skip to first unread message

worm

unread,
May 4, 2008, 3:49:23 AM5/4/08
to py-transports
Hi all

i use ejabberd ,
my python version is 2.4

when i lauch the python script i have error message :

Traceback (most recent call last):
File "./PyMSNt.py", line 13, in <module>
import main
File "/var/source/pymsnt-0.11.3/src/main.py", line 75, in <module>
del sys.modules["twisted.internet.reactor"]
KeyError: 'twisted.internet.reactor'

some one have idea?

thanks

best regards

philippe

Vishal

unread,
May 24, 2008, 4:48:04 AM5/24/08
to py-transports
Hi

I belive this was discussed by Norman in this group only. below for
pyicqt...same will work for pymsnt...

PyICQt 0.8 may not work under windows
to resolve this problem comment (cut) this block in main.py:

# Find the best reactor
reactorchoices = ["epollreactor", "kqreactor", "cfreactor",
"pollreactor", "selectreactor", "posixbase", "default"]
for choice in reactorchoices:
try:
exec("from twisted.internet import %s as bestreactor" %
choice)
if choice in ["selectreactor","default"]:
print selectWarning
break
except:
pass
try:
bestreactor.install()
except:
print "Unable to find a reactor.\nExiting..."
sys.exit(1)


Link:http://www.ejabberd.im/pyicqt

Vishal

Vishal

unread,
May 27, 2008, 8:05:01 AM5/27/08
to py-transports
Reply all
Reply to author
Forward
0 new messages