[jadmin] PyMsnt errors - ImportError: No module named random

James Bunton jamesbunton at fastmail.fm
Fri Jul 7 22:20:18 CDT 2006


I'd suggest you try PyMSNt 0.11, its a bit easier to set up, and more  
stable.
http://delx.cjb.net/pymsnt

Also, there's no need to change PYTHONPATH. That's why you're getting  
the ImportError.

random is part of the Python standard library, but you've set  
PYTHONPATH to not include the standard library :P

---

James


On 05/07/2006, at 7:02 PM, Rajeswari Ramasamy wrote:

> Hi,
>
> I have installed jabberd-1.4.3 and PyMsnt0.10 and done
> the setup as per  instructions given in
> http://delx.cjb.net/pymsnt/docs/server.html.
>
> I get the following errors when I try to run
>  ./PyMSNt
> --------------------
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "main.py", line 4, in ?
>     import utils
>   File
> "/usr/src/redhat/SOURCES/PyMSNt-0.10/src/utils.py",
> line 40, in ?
>     import random
> ImportError: No module named random
> -------------------
>
> I have also installed  Distutils-1.0.2,
> pycrypto-2.0.1, ZopeInterface-3.0.1,
> Twisted-2.4.0(Core, Words and Web ), pyOpenSSL-0.6 and
> Python-2.4.3.
> In the site-packages directory I have Crypto,
> distutils, twisted and zope. This site-packages dir is
> not int the installation directory.
>
> I have set the following varibales as
>
> PYTHONHOME=/usr/src/redhat/SOURCES/Python-2.4.3
> PYTHONPATH=/usr/local/lib/python2.4/site-packages
>
> What other set up has to be done? What is the cause of
> this error?
>
> Regards
> Raj




More information about the JAdmin mailing list