Python error interpretation

Chris Mohler cr33dog at gmail.com
Sun Mar 15 17:03:53 UTC 2009


On Sat, Mar 14, 2009 at 9:15 PM, Hal Burgiss <hal at burgiss.net> wrote:
[...]
> Could not find platform independent libraries <prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> 'import site' failed; use -v for traceback

OK - this is bad.  I'm not sure if this is the same problem as you had
originally, but it appears that your python cannot find *any* site
modules.  Check your permissions:

$ ls -l /usr/lib/ | grep -i python
lrwxrwxrwx  1 root root      19 2009-01-25 20:45 libpython2.5.so.1 ->
libpython2.5.so.1.0
-rw-r--r--  1 root root 1240920 2008-07-31 13:42 libpython2.5.so.1.0
drwxr-xr-x  3 root root    4096 2008-07-02 05:49 python2.3
drwxr-xr-x  4 root root    4096 2008-07-02 05:49 python2.4
drwxr-xr-x 22 root root   20480 2009-01-25 20:51 python2.5
drwxr-xr-x  9 root root    4096 2009-02-05 13:41 python-support

Next, try:
$ python -v -c 'import.os'

As a shot in the dark - do you have plenty of free disk space?

I do love me some Python, but it can be frustrating when it's not
working properly - esp when system tools depend on it!

Chris




More information about the ubuntu-users mailing list