PyICQ-t configuring in Windows 2000

Hello,

I'm using this tutorial:
http://www.ejabberd.im/pyicqt
and trying to connect PyICQ-t with Jive Messenger server (http://www.jivesoftware.org/messenger). But i cant even launch PyICQ-t. I have installed Python 2.4.1 and Twisted 2.0.1 (though there is no word about Twisted in this manual). Have put Python dir to Path variable. But when launching "python main.py" i get cycle with such line:
Restarting with process name PyICQt...

I have looked to the code (i'm not a coder though), and i see this message in the beginning of module, something about os.path. Maybe i'm doing something wrong? So the other question is about spool directory. I cant understand your instructions.

For example:

My server has name: wroot
So transport's JID would be: icq.wroot
So in config.xml i have this: < jid >icq.wroot< / jid >
Python is installed: C:\Python24
PyICQ-t: C:\pyicq-t

So where and what directories should i create for spool? This is fresh install and i dont have any old spool dir. And then, what should i put in config at this line: < spooldir > . < / spooldir >

You see, i need some example to get a picture:)

Windows 2000 Pro Sp4 + Updare Rollup 1
PyICQ-t 0.6
Jive Messenger 2.2.0 Beta 1

Bug in PyICQ-t

This is a bug in PyICQ-t (which only appears on Windows). It was discussed around July 1st (see py-transports archive, subject "PyAIMt is not connecting and CPU consumption is high"), but I can't see any solution in that thread (only read through it quickly, though).

Anyway, if you post on that mailing list, you will probably get better answers.

some solution

Dont know if it's really a bug. But i have just made a little hack. And now it works. I have commented that IF statement which throws this cycling line in main.py.

#if (exe.find("python") >= 0):
# print("Restarting with process name %s..." % (name))
# os.execv(exe, [name, sys.argv[0]]+sys.argv[1:])

And i have installed Twisted for Python 2.4. PyICQ-t wount run without that. So this manual: http://www.ejabberd.im/pyicqt is not exactly correct (no mention about Twisted). It has to be installed in linux too. You can obtain Twisted here:
http://twistedmatrix.com/projects/core/

I have tested it with a couple of clients. Seems to be working fine. Spool dir is created automaticly and all user's settings are saved there.

But i dont like such a hack so i have send a mail to author of PyICQ-t about that.

Hope my solution will be helpful to someone. And many thanks to badlop for his manual, it really helped a lot:)

thx wrood, but did you still

thx wrood, but did you still have following problem after running "python main.py"?

--------------------------------------
C:\Program Files\Ejabberd\pyicq-t-0.6\src>python main.py
C:\Program Files\Ejabberd\pyicq-t-0.6\src\tlib\domish.py:425: DeprecationWarning
: twisted.protocols.sux has moved to twisted.web.sux. See http://twistedmatrix.c
om/projects/web.
from twisted.protocols import sux
C:\Python24\lib\site-packages\twisted\web\proxy.py:22: DeprecationWarning: twist
ed.protocols.http has moved to twisted.web.http. See http://twistedmatrix.com/pr
ojects/web.
from twisted.protocols import http
C:\Program Files\Ejabberd\pyicq-t-0.6\src\tlib\jabber\component.py:22: Deprecati
onWarning: twisted.protocols.jabber has moved to twisted.words.protocols.jabber.
See http://twistedmatrix.com/projects/words.
from twisted.protocols.jabber import jstrports
C:\Program Files\Ejabberd\pyicq-t-0.6\src\tlib\jabber\component.py:136: Componen
tsDeprecationWarning: Please use providedBy() or implementedBy()
if components.implements(c, IService):
C:\Program Files\Ejabberd\pyicq-t-0.6\src\tlib\jabber\component.py:136: Componen
tsDeprecationWarning: Please use implements(), not __implements__ for class __ma
in__.PyTransport
if components.implements(c, IService):
C:\Program Files\Ejabberd\pyicq-t-0.6\src\tlib\jabber\component.py:157: Componen
tsDeprecationWarning: Please use providedBy() or implementedBy()
if components.implements(c, IService):
-----------------------------

I still cannot use ICQ gateway...
Thank You

OK, Finally I know where my

OK, Finally I know where my problem is...

I followed the tutorial http://www.ejabberd.im/pyicqt

in the step 6

#
Configure ejabberd

Now you have to configure your Jabber server. 
This instructions assume you are running the transport 
on the same machine as your main Jabber server.

   1. Edit ejabberd.cfg.
   2. In the section that says: '{listen,' add those two lines:

    {5347, ejabberd_service, [{host, "icq.myserver.org",
                               [{password, "password"}]}]},

   3. Restart ejabberd and you're done. 

-----------------------------------------------

The lines may be incorrected, the sentence works fine for me is like as this:

{5347, ejabberd_service, [{access, all},
			    {host, "icq.myserver.org", [{password, "secret"}]}]},

I have a multihomed machine,

I have a multihomed machine, i.e. with more than 1 connected networks. So I have a few DNS names for my server. It's didn't work before I added few hostnames: first is local hostname and second - DNS name.
i.e:

{5347, ejabberd_service, [{access, all},
{hosts, ["white2u", "icq.white2u.xxx.net"], [{password, "secret"}]}]}
]}.

tutorials updated

I have installed Python 2.4.1 and Twisted 2.0.1 (though there is no word about Twisted in this manual).

Right, the PyMSNt tutorial included the Twisted step but the PyICQt and PyAIMt didn't. It should be correct now.

I won't update the tutorial with your patch in the hope that the PyICQt developer will fix it really soon.

and about linux

ok, thanx for update.

Though i have problems running it on my linux (archlinux 0.7) system. I have tried both: arch packages of python-twisted and zope-interface, and packages of Twisted, TwistedWeb and ZopeInterface from http://www.twistedmatrix.com/projects/core , http://www.twistedmatrix.com/projects/web and http://www.zope.org/Products/ZopeInterface .

No success, there is still one module missing. "twisted.xish". Maybe it's my system's specific issue. Or maybe something with PyICQ-t again. I will try to contact author, though he didnt answer to my last mails yet.

Syndicate content