conflicting installations of python

Ned Deily nad at acm.org
Thu Sep 13 01:55:51 EDT 2012


In article <fd1894aa-2a5a-42ca-b9db-60a343d6d910 at googlegroups.com>,
 azandi at adconion.com wrote:
> Thanks for your response, I think the path is fine, since which python 
> outputs the location where macports should install python i.e. 
> /opt/local/bin/python.
> 
> also 
> 
> port list active | fgrep python
> python27                       @2.7.3          lang/python27
> 
> and
> 
> port location python27
> 
> Port python27 2.7.3_0 is installed as an image in:
> /opt/local/var/macports/software/python27/python27-2.7.3_0.darwin_11.x86_64.tb
> z2

None of the above actually shows what is being executed when you type 
python.  What is the output from the following commands?

    which python
    ls -l $(which python)
    python
    
> Another problem caused by this installation is that somehow it removes 
> os.urandom module:
> 
> >>> import os
> >>> os.urandom
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'urandom'

Looks like you are using a broken Python installation.

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list