python error with yum on F11

Mark Perew mperew at gmail.com
Tue Oct 20 08:53:26 UTC 2009


On Tue, Oct 20, 2009 at 1:17 AM, steve <steve at lonetwin.net> wrote:

> Hello Mark,



> I think you might have (possibly inadvertently) messed up your python
> installation.
>
> Check the following:
> $ python --version          # should show you Python 2.6
> $ python -c "import sys; print sys.path"
>    # This should show you the places that python would look for modules
> such as Popen. It ideally should include '/usr/lib/python2.6/' (and
> '/usr/lib64/python26 if you have a x86_64 box).
>
> $ echo $PYTHONPATH
>    # This env variable is passed to python to modify the sys.path
> (mentioned above) at runtime. This should ideally not exist if you don't do
> any python development yourself.
>
> Let us know what you find,
>

If I've messed up my python install, it certainly is inadvertent.  I do use
python, but I've checked my root history and I've not manually installed any
python packages since I installed F11.

The version is 2.6

To get a little cleaner list output, I ran python from root:

Python 2.6 (r26:66714, Jun  8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for which in sys.path:
...   print which
...

/usr/lib/python26.zip
/usr/lib/python2.6
/usr/lib/python2.6/plat-linux2
/usr/lib/python2.6/lib-tk
/usr/lib/python2.6/lib-old
/usr/lib/python2.6/lib-dynload
/usr/lib/python2.6/site-packages
/usr/lib/python2.6/site-packages/Numeric
/usr/lib/python2.6/site-packages/PIL
/usr/lib/python2.6/site-packages/gst-0.10
/usr/lib/python2.6/site-packages/gtk-2.0

The PYTHONPATH environment variable is not set

And, no, this is not a x86_64 box.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20091020/f861303a/attachment-0001.html 


More information about the users mailing list