On Saturday, August 2, 2003, at 05:13 pm, david.gordon wrote:


I had MM 2.0.x, upgrading to MM 2.1.2 by installing over - not moving
lists about. I used --prefix=/home/mailman. I can see a couple of errors
reported and when I do a bin/check_perms i get..
====
[EMAIL PROTECTED] mailman-2.1.2]$ cd /home/mailman
[EMAIL PROTECTED] mailman]$ bin/check_perms
Could not import paths!


This probably means that you are trying to run check_perms from the source
directory. You must run this from the installation directory instead.


Traceback (most recent call last):
  File "bin/check_perms", line 38, in ?
    import paths
  File "bin/paths.py", line 59, in ?
    import korean
ImportError: No module named korean
====
As I understand I need to be in $prefix to run check_perms and that's /
home/mailman so the warning is either wrong or something else... ;-)

Cron daemon is also sending the following every five minutes

Traceback (most recent call last):
 File "/home/mailman/cron/gate_news", line 38, in ?
   import paths
 File "/home/mailman/cron/paths.py", line 59, in ?
   import korean
ImportError: No module named korean

Same/different trouble?



You should have two files in you Mailman runtime installation:


$prefix/pythonlib/korean
$prefix/pythonlib/korean.pth

and I would also expect the following files in your Mailman build directory after having run ./configure and make install:

$build/misc/KoreanCodecs-2.0.5/korean
$build/misc/KoreanCodecs-2.0.5/build/lib.linux-i686-2.2/korean

If these files are not present then you should consider re-running ./configure and make and looking for any errors in the output.

If the files are present then something may be wrong in the paths module. There are multiple copies of this file (all the same) under Mailman's $prefix directory:

./bin/paths.py
./scripts/paths.py
./cron/paths.py
./tests/paths.py

If everything is installed OK then you should be able to do the following from the command line in the $prefix/bin directory:

[EMAIL PROTECTED]:/mailman/run/bin> python
Python 2.2.2 (#3, Feb 11 2003, 16:57:53)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/local/lib/python2.2', '/usr/local/lib/python2.2/plat-linux2', '/usr/local/lib/python2.2/lib-tk', '/usr/local/lib/python2.2/lib-dynload', '/usr/local/lib/python2.2/site-packages']
>>> import paths
>>> sys.path
['/mailman/run/pythonlib', '/mailman/run', '', '/usr/local/lib/python2.2', '/usr/local/lib/python2.2/plat-linux2', '/usr/local/lib/python2.2/lib-tk', '/usr/local/lib/python2.2/lib-dynload', '/usr/local/lib/python2.2/site-packages', '/usr/local/lib/python2.2/site-packages']
>>> dir(paths)
['__builtins__', '__doc__', '__file__', '__name__', 'exec_prefix', 'japanese', 'korean', 'os', 'prefix', 'sitedir', 'sys']
>>> paths.korean
<module 'korean' from '/mailman/run/pythonlib/korean/__init__.pyc'>
>>> import korean
>>> sys.exit()
[EMAIL PROTECTED]:/mailman/run/bin>


If you still have problems, what version of which OS are you running and which version of Python. And what happens when you try the above stuff from the command line.

Thanks for help!
--
david.gordon


-----------------------------------------------------------------------
Richard Barrett                               http://www.openinfo.co.uk


------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to