[Mailman-Users] Upgrade install - "Could not import paths!"

david.gordon box99 at ntlworld.com
Mon Aug 4 16:39:51 CEST 2003


Richard Barrett wrote on Mon 4 Aug 2003 at 14:37 +0100

>$prefix means the path of the directory in which you installed Mailman 

Yes! I did install --prefix=/home/mailman BTW

>Unless you previously reported problem has been fully corrected then 
>this may be the latest manifestation of a failing import statement.

I can now see the files you referred to 

drwxrwsr-x    5 mailman  mailman      4096 Aug  3 18:57 korean
-rw-rw-r--    1 mailman  mailman        22 Aug  3 20:26 korean.pth

and I think that problem has gone away. I'm certainly not getting mail
alerts from Mailer Daemon every five minutes now.

>Dose anything show in the Mailman's error log $prefix/logs/error?

Aug 03 18:57:45 2003 (4522) couldn't load config file /home/mailman/
lists/test/config.pck.last
[Errno 2] No such file or directory: '/home/mailman/lists/test/
config.pck.last'
Aug 03 18:57:45 2003 (4522) couldn't load config file /home/mailman/
lists/test/config.pck
[Errno 2] No such file or directory: '/home/mailman/lists/test/config.pck'
Aug 03 18:57:45 2003 (4522) couldn't load config file /home/mailman/
lists/test/config.pck.last
[Errno 2] No such file or directory: '/home/mailman/lists/test/
config.pck.last'
Aug 03 18:57:46 2003 (4522) couldn't load config file /home/mailman/
lists/test/config.pck
[Errno 2] No such file or directory: '/home/mailman/lists/test/config.pck'
Aug 03 18:57:46 2003 (4522) couldn't load config file /home/mailman/
lists/test/config.pck.last
[Errno 2] No such file or directory: '/home/mailman/lists/test/
config.pck.last'

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


Here's the result - but as I say I think this problem is already fixed

[admin at dg3 bin]$ python
Python 2.2.2 (#1, May 28 2003, 11:39:00) 
[GCC 3.2.2 20030217 (Red Hat Linux 8.0 3.2.2-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2', '/usr/lib/
python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/
site-packages']
>>> import paths
>>> sys.path
['/home/mailman/pythonlib', '/home/mailman', '', '/usr/lib/python2.2', '/
usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/
python2.2/lib-dynload', '/usr/lib/python2.2/site-packages', '/usr/lib/
python2.2/site-packages']
>>> dir(paths)
['__builtins__', '__doc__', '__file__', '__name__', 'exec_prefix',
'japanese', 'korean', 'os', 'prefix', 'sitedir', 'sys']
>>> paths.korean
<module 'korean' from '/home/mailman/pythonlib/korean/__init__.pyc'>
>>> import korean
>>> sys.exit()
[admin at dg3 bin]$ 

From what I have read of the docs its my path to perl thats causing the
Internal Server Error when I try to access the admin page by web. My
httpd error_log says 

[Mon Aug  4 11:52:01 2003] [error] [client x.x.x.x] Premature end of
script headers: /home/mailman/cgi-bin/private
-- 
david.gordon






More information about the Mailman-Users mailing list