From: Jeremy W. <jer...@gm...> - 2015-04-13 16:42:16
|
I upgraded s3cmd from 1.5.0-rc1 to 1.5.2 on one of our machines and now I'm getting an import error. I tried this with both 1.5.2 (release version on SourceForge) and the master from GitHub. I entirely removed the previously installed /usr/bin/s3cmd and the egg file from the other version to make sure there was no conflict. For some reason, despite the fact that the egg file is installed and part of sys.path, it still can't find the modules. *Here's the error message:* $ s3cmd --version !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! An unexpected error has occurred. Please try reproducing the error using the latest s3cmd code from the git master branch found at: https://github.com/s3tools/s3cmd If the error persists, please report the following lines (removing any private info as necessary) to: s3t...@li... Error loading some components of s3cmd (Import Error) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Invoked as: /usr/bin/s3cmd --version Problem: ImportError: No module named ExitCodes S3cmd: unknown version. Module import problem? python: 2.6.9 (unknown, Sep 13 2014, 00:25:11) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] environment LANG=en_US.UTF-8 Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/s3cmd-1.5.2-py2.6.egg/EGG-INFO/scripts/s3cmd", line 2557, in <module> ImportError: No module named ExitCodes Your sys.path contains these entries: /usr/bin /usr/lib/python2.6/site-packages/pydns-2.3.4-py2.6.egg /usr/lib/python2.6/site-packages/dnspython-1.9.4-py2.6.egg /usr/lib/python2.6/site-packages/lxml-2.3.2-py2.6-linux-x86_64.egg /usr/lib/python2.6/site-packages/robotexclusionrulesparser-1.4.0-py2.6.egg /usr/lib/python2.6/site-packages/xlwt-0.7.2-py2.6.egg /usr/lib/python2.6/site-packages/xlrd-0.7.1-py2.6.egg /usr/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg /usr/lib/python2.6/site-packages/redis-2.6.0-py2.6.egg /usr/lib/python2.6/site-packages/python_magic-0.4.6-py2.6.egg /usr/lib/python2.6/site-packages/s3cmd-1.5.2-py2.6.egg /home/ec2-user /usr/lib64/python26.zip /usr/lib64/python2.6 /usr/lib64/python2.6/plat-linux2 /usr/lib64/python2.6/lib-tk /usr/lib64/python2.6/lib-old /usr/lib64/python2.6/lib-dynload /usr/lib64/python2.6/site-packages /usr/lib64/python2.6/site-packages/PIL /usr/lib64/python2.6/site-packages/gtk-2.0 /usr/lib/python2.6/site-packages Now the question is where have the s3cmd modules been installed? !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! An unexpected error has occurred. Please try reproducing the error using the latest s3cmd code from the git master branch found at: https://github.com/s3tools/s3cmd If the error persists, please report the above lines (removing any private info as necessary) to: s3t...@li... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! *Here's the install log:* $ sudo python setup.py install Using xml.etree.ElementTree for XML processing running install running bdist_egg running egg_info writing requirements to s3cmd.egg-info/requires.txt writing s3cmd.egg-info/PKG-INFO writing top-level names to s3cmd.egg-info/top_level.txt writing dependency_links to s3cmd.egg-info/dependency_links.txt reading manifest file 's3cmd.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 's3cmd.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/Progress.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/Utils.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/AccessLog.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/BidirMap.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/S3.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/ConnMan.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/ACL.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/Exceptions.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/PkgInfo.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/FileDict.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/__init__.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/ExitCodes.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/FileLists.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/Crypto.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/S3Uri.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/HashCache.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/CloudFront.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/SortedDict.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/Config.py -> build/bdist.linux-x86_64/egg/S3 copying build/lib/S3/MultiPart.py -> build/bdist.linux-x86_64/egg/S3 byte-compiling build/bdist.linux-x86_64/egg/S3/Progress.py to Progress.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/Utils.py to Utils.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/AccessLog.py to AccessLog.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/BidirMap.py to BidirMap.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/S3.py to S3.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/ConnMan.py to ConnMan.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/ACL.py to ACL.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/Exceptions.py to Exceptions.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/PkgInfo.py to PkgInfo.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/FileDict.py to FileDict.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/__init__.py to __init__.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/ExitCodes.py to ExitCodes.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/FileLists.py to FileLists.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/Crypto.py to Crypto.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/S3Uri.py to S3Uri.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/HashCache.py to HashCache.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/CloudFront.py to CloudFront.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/SortedDict.py to SortedDict.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/Config.py to Config.pyc byte-compiling build/bdist.linux-x86_64/egg/S3/MultiPart.py to MultiPart.pyc installing package data to build/bdist.linux-x86_64/egg running install_data creating build/bdist.linux-x86_64/egg/share creating build/bdist.linux-x86_64/egg/share/doc creating build/bdist.linux-x86_64/egg/share/doc/packages creating build/bdist.linux-x86_64/egg/share/doc/packages/s3cmd copying README.md -> build/bdist.linux-x86_64/egg/share/doc/packages/s3cmd copying INSTALL -> build/bdist.linux-x86_64/egg/share/doc/packages/s3cmd copying NEWS -> build/bdist.linux-x86_64/egg/share/doc/packages/s3cmd creating build/bdist.linux-x86_64/egg/share/man creating build/bdist.linux-x86_64/egg/share/man/man1 copying s3cmd.1 -> build/bdist.linux-x86_64/egg/share/man/man1 creating build/bdist.linux-x86_64/egg/EGG-INFO installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts running install_scripts running build_scripts creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts copying build/scripts-2.6/s3cmd -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/s3cmd to 755 copying s3cmd.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying s3cmd.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying s3cmd.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying s3cmd.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying s3cmd.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist/s3cmd-1.5.2-py2.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing s3cmd-1.5.2-py2.6.egg Copying s3cmd-1.5.2-py2.6.egg to /usr/lib/python2.6/site-packages Adding s3cmd 1.5.2 to easy-install.pth file Installing s3cmd script to /usr/bin Installed /usr/lib/python2.6/site-packages/s3cmd-1.5.2-py2.6.egg Processing dependencies for s3cmd==1.5.2 Searching for python-magic==0.4.6 Best match: python-magic 0.4.6 Processing python_magic-0.4.6-py2.6.egg python-magic 0.4.6 is already the active version in easy-install.pth Using /usr/lib/python2.6/site-packages/python_magic-0.4.6-py2.6.egg Searching for python-dateutil==2.2 Best match: python-dateutil 2.2 Adding python-dateutil 2.2 to easy-install.pth file Using /usr/lib/python2.6/site-packages Searching for six==1.7.3 Best match: six 1.7.3 Adding six 1.7.3 to easy-install.pth file Using /usr/lib/python2.6/site-packages Finished processing dependencies for s3cmd==1.5.2 Jeremy Wadsack |