#41 unexpected error

closed-invalid
nobody
s3cmd (118)
5
2009-10-20
2009-10-20
Anonymous
No

[root@ip-10-228-23-86 /]# python s3cmd --configure

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: ImportError: cannot import name getTreeFromXml
S3cmd: unknown version. Module import problem?

Traceback (most recent call last):
File "s3cmd", line 1726, in <module>
from S3.Exceptions import *
File "/S3.py", line 20, in <module>
from Utils import *
File "/Utils.py", line 24, in <module>
import Exceptions
File "/Exceptions.py", line 6, in <module>
from Utils import getTreeFromXml, unicodise, deunicodise
ImportError: cannot import name getTreeFromXml

Your sys.path contains these entries:
/
/usr/lib/python25.zip
/usr/lib/python2.5
/usr/lib/python2.5/plat-linux2
/usr/lib/python2.5/lib-tk
/usr/lib/python2.5/lib-dynload
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/gtk-2.0
Now the question is where have the s3cmd modules been installed?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the above lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[root@ip-10-228-23-86 /]#

Discussion

  • Michal Ludvig
    Michal Ludvig
    2009-10-20

    Hi,

    did you run 'python setup.py install' to install the package? Or eventually are you running it from the directory where the archive was unpacked? You seem to be running it from '/' which is a bit unusual place for a script...

    I suggest to install the package by running 'python setup.py install' and then simply run s3cmd. Let me know if it still doesn't work.

    Michal

    Michal

     
  • Michal Ludvig
    Michal Ludvig
    2009-10-20

    • status: open --> closed-invalid