Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jun 2006 15:32:49 -0400
From:      Joe Auty <joe@netmusician.org>
To:        Alex Zbyslaw <xfb52@dial.pipex.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Python port problems
Message-ID:  <B766BA83-CF9A-404C-B8AB-3F9BF4D7180C@netmusician.org>
In-Reply-To: <44733B8B.6030404@dial.pipex.com>
References:  <9842C36E-C450-4282-9019-BA2DD3476684@netmusician.org>	<fb6605670605221727h719579a2gdeae84452036f6e8@mail.gmail.com>	<2A55FF5E-F764-406A-BE0E-272246F425B5@netmusician.org> <448xoska3k.fsf@be-well.ilk.org> <44733B8B.6030404@dial.pipex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-27-121278385
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


On May 23, 2006, at 12:42 PM, Alex Zbyslaw wrote:

> Lowell Gilbert wrote:
>
>> Joe Auty <joe@netmusician.org> writes:
>>
>>>
>>> $ python -c 'import sys; print sys.path'
>>> ['', '/usr/local/lib/python24.zip', '/usr/local/lib/python2.4', '/ 
>>> usr/ local/lib/python2.4/plat-freebsd5', '/usr/local/lib/ 
>>> python2.4/lib- tk', '/usr/local/lib/python2.4/lib-dynload', '/usr/ 
>>> local/lib/ python2.4/site-packages']
>>>
>>>
>>> I don't have a /usr/local/bin/python in there. Is that my problem?
>>>
>>
>> That's where the ports would install it, so that does sound like a
>> problem.   Look at "which python" and "pkg_info|grep python".
>>
> The executable /usr/local/bin/python has no business being in the  
> path for *modules*.  This is not your problem.
>
> I have never used mailman so do not know how it picks up its  
> modules.  It *might* install them into one of these directories on  
> the module patch, but more likely it just pushes its own directory  
> of modules onto this path when it runs, in which case the output  
> you have won't help.
>
> Have you tried simply re-installing mailman?  Maybe you upgraded  
> python at some point after installing mailman and that is throwing  
> something.
>


Sorry for the delay in response here. This is still a problem for me,  
and I would still like this problem resolved.

Yes, I've tried reinstalling both Python and Mailman, and upgraded to  
newer port revisions of Mailman which have been released since this  
message. I'm still getting the same error message when I go to start  
Mailman via its rc script:

... snip
Traceback (most recent call last):
:
: No module named getopt  File "/usr/local/mailman/bin/qrunner", line  
76, in ?

     ImportErrorimport getopt
No module named getopt:
No module named getopt
ImportErrorCould not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
: No module named getopt
Traceback (most recent call last):
   File "/usr/local/mailman/bin/qrunner", line 76, in ?
     import getopt
ImportError: No module named getopt



Any ideas here?


-----------
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
joe@netmusician.org



--Apple-Mail-27-121278385
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEjxLiCgdfeCwsL5ERAkyMAJwJWifAYu2olAERnStklpIR19mYnwCfcLh/
Tb4a4lxik5l2UtD1073iPgQ=
=jyIk
-----END PGP SIGNATURE-----

--Apple-Mail-27-121278385--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B766BA83-CF9A-404C-B8AB-3F9BF4D7180C>