S. O. S.! I don't know how to make JMC run!

Hi! I've got a problem when running Jabber Mail Component. This is the message displayed when I try to start JMC:

Traceback (most recent call last):
File "jmc-0.2/jmc.py", line 29, in ?
from jabber import mailconnection
File "/root/jmc-0.2/jabber/mailconnection.py", line 101, in ?
class MYPOP3_SSL(poplib.POP3_SSL):

And I don't know exactly what to do. I've followed all the steps posted in here for installation, which was succesful (I think so) but this problem don't let me test if I'm right. It's noticeable to say that I'm new in all this free software stuff, but I've got to make some things work. I have an ejabberd server working and I want it to offer this service. Note: I'm also a non-native Englisk speaker, and I just handle a little bit of this language, if a mistake appears in this comment or something in it is difficult to understand, you already know why it is! I would post his comment in the Forum in Spanish anyway, but it's not a bad idea to try in here too.

I would thank you a lot if you can help me!

One problem solved! Another one appeared!

I already found the problem. It was that I had Phyton version 2.3 installed in the computer. I just installed version 2.4, and that was all. It is because version 2.3 doesn´t support POP3 over SSL, and version 2.4 does, so the las one does bring all the stuff necessary in the libraries for this. But now I have a new problem. JMC doesn´t run because it doesn´t recognize libxml2, although I installed it. It says there´s no library named libxml2. Is there a recommended ubication for the JMC folder inside the equipment´s archive system? Because the steps posted here for its installation are not quite clear about that subject. It´s urgent!!!!!

Re: One problem solved! Another one appeared!

alexreyflores wrote:

JMC doesn´t run because it doesn´t recognize libxml2, although I installed it. It says there´s no library named libxml2.

Do you have installed the development files of libxml2? And do you have installed the libxml2 extension of Python? (these packages are named under Debian "python2.4-libxml2" and "libxml2-dev")

alexreyflores wrote:

Is there a recommended ubication for the JMC folder inside the equipment´s archive system? Because the steps posted here for its installation are not quite clear about that subject. It´s urgent!!!!!

The location where you install JMC is not important. But in most operating systems it is common to put it in /usr/local/jmc/

I do have installed the packages, but the problem is still there

Thanks a lot for your answer! I do have installed libxml2-python and libxml2-devel packages. In order for you to have a more clear vision of the problem, I will post the message displayed when I try to execute "python jmc-0.2/jmc.py -c jmc-0.2/jmc.xml -D":

Traceback (most recent call last):
File "jmc-0.2/jmc.py", line 30, in ?
from jabber.component import MailComponent, ComponentFatalError
File "/root/jmc-0.2/jabber/component.py", line 37, in ?
from x import *
File "/root/jmc-0.2/jabber/x.py", line 24, in ?
from pyxmpp.stanza import common_doc
File "/usr/local/lib/python2.4/site-packages/pyxmpp/stanza.py", line 27, in ? import libxml2

I don´t know why if I have installed the packages.

I don't think I can help you

I don't think I can help you anymore. :-( It might be a bug in JMC with your Python version. I think it is best to contact the JMC author and point him to this thread (there is a link to his website in the tutorial, and there you can find his contact details I guess)

--
sander

Almost done

Now I know what the problem was, I had Python 2.3 installed as rpm, and I installed Python 2.4, but there wasn't an rpm for RHEL AS 4, so I did it from sources. That makes an incompatibility when compiling or executing an application with Python and its libraries. Now I have done it all again and there's no problem with that, but when I run JMC, this message is displayed:

Traceback (most recent call last):
File "/usr/local/jmc-0.2/jmc.py", line 87, in ?
main(sys.argv[file_num], debug_level)
File "/usr/local/jmc-0.2/jmc.py", line 50, in main
pidfile = open(config.get_content("config/pidfile"), "w")
IOError: [Errno 2] No such file or directory: '/var/run/jabber/jmc.pid'

What could I do in this case? I would thank anyone who could answer me!

Note: I'm using ejabberd!

Jmc Pid file

Have you check that the user who run jmc have write access to /var/run/jabber/ ?

Syndicate content