[Mailman-Users] Upgrade install - "Could not import paths!"
r.barrett at openinfo.co.uk
Sun Aug 3 17:13:39 CEST 2003
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
> reported and when I do a bin/check_perms i get..
> [admin at xyz mailman-2.1.2]$ cd /home/mailman
> [admin at xyz mailman]$ bin/check_perms
> Could not import paths!
> This probably means that you are trying to run check_perms from the
> 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:
and I would also expect the following files in your Mailman build
directory after having run ./configure and make install:
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:
If everything is installed OK then you should be able to do the
following from the command line in the $prefix/bin directory:
mailman at mailman2:/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
>>> import paths
['/mailman/run/pythonlib', '/mailman/run', '',
['__builtins__', '__doc__', '__file__', '__name__', 'exec_prefix',
'japanese', 'korean', 'os', 'prefix', 'sitedir', 'sys']
<module 'korean' from '/mailman/run/pythonlib/korean/__init__.pyc'>
>>> import korean
mailman at mailman2:/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!
Richard Barrett http://www.openinfo.co.uk
More information about the Mailman-Users