Hi Grig,

>  >>> from S3 import PkgInfo
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named S3

Here we go - your python installed the package to:
/usr/lib/python2.4/site-packages
but tries to load it from:
/usr/local/lib/python2.4/site-packages

See: /usr/lib vs /usr/local/lib

[EMAIL PROTECTED] [/installs/s3cmd-0.9.8.4]# python setup.py install
[...]
copying build/lib/S3/PkgInfo.py -> /usr/lib/python2.4/site-packages/S3

>>> print sys.path
'/usr/local/lib/python2.4/site-packages'

Is your python custom compiled or something?

Try one of these:
1) Move everythin from /usr/lib/python2.4 to /usr/local/lib/python2.4 ,
remove /usr/lib/python2.4 and then create a softlink from
/usr/local/lib/python2.4 to /usr/lib/python2.4

2) or alternatively set new python search path with:
export
PYTHONPATH=/usr/lib/python2.4:/usr/lib/python2.4/site-packages:/usr/lib/python2.4/lib-dynload
with the "export" all on one line from the shell.

That should help.

More interesting task would be to find out why Python installed the
package into a directory that's not in its search path. But that doesn't
have much to do with s3cmd so I'll leave it on you ;-)

Michal

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to