[MacPorts] #19127: s3cmd executable fails with error
#19127: s3cmd executable fails with error -----------------------------+---------------------------------------------- Reporter: i@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: -----------------------------+---------------------------------------------- after installing s3cmd from port, I get an error when trying to use any of the executables provided by the package. The error is the same, regardless of the command. This is on OS 10.5.6, MacPorts 1.710 {{{ $ port list s3cmd s3cmd @0.9.9 net/s3cmd $ s3cmd --configure Traceback (most recent call last): File "/opt/local/bin/s3cmd", line 1565, in <module> except ParameterError, e: NameError: name 'ParameterError' is not defined }}} -- Ticket URL: <http://trac.macports.org/ticket/19127> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19127: s3cmd executable fails with error -----------------------------+---------------------------------------------- Reporter: i@… | Owner: alpha@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: s3cmd -----------------------------+---------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => alpha@… * port: => s3cmd -- Ticket URL: <http://trac.macports.org/ticket/19127#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19127: s3cmd executable fails with error -----------------------------+---------------------------------------------- Reporter: i@… | Owner: alpha@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: s3cmd -----------------------------+---------------------------------------------- Comment(by alpha@…): A few questions that might help resolving the problem: 1. What is the "bang line" (the first line, starting with #!) of /opt/local/bin/s3cmd? 2. From Python console (you can launch it with python2.5) try to invoke {{{ import S3 }}} 3. What is the contents of /opt/local/lib/python2.5/site-packages/S3/? 4. From Python console print the contents of sys.path {{{ import sys print sys.path }}} -- Ticket URL: <http://trac.macports.org/ticket/19127#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19127: s3cmd executable fails with error -----------------------------+---------------------------------------------- Reporter: i@… | Owner: alpha@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: s3cmd -----------------------------+---------------------------------------------- Comment(by i@…): Replying to [comment:2 alpha@…]:
A few questions that might help resolving the problem:
1. What is the "bang line" (the first line, starting with #!) of /opt/local/bin/s3cmd?
{{{ $ head -n1 /opt/local/bin/s3cmd #!/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python }}}
2. From Python console (you can launch it with python2.5) try to invoke
{{{ import S3 }}}
{{{ $ which python2.5 /opt/local/bin/python2.5 $ python2.5 Python 2.5.4 (r254:67916, Apr 1 2009, 19:33:37) [GCC 4.0.1 (Apple Inc. build 5488)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import S3
}}}
3. What is the contents of /opt/local/lib/python2.5/site-packages/S3/?
{{{ $ ls /opt/local/lib/python2.5/site-packages/S3/ ACL.py Config.py Progress.py SimpleDB.py __init__.py ACL.pyc Config.pyc Progress.pyc SimpleDB.pyc __init__.pyc BidirMap.py Exceptions.py S3.py SortedDict.py BidirMap.pyc Exceptions.pyc S3.pyc SortedDict.pyc CloudFront.py PkgInfo.py S3Uri.py Utils.py CloudFront.pyc PkgInfo.pyc S3Uri.pyc Utils.pyc $ }}}
4. From Python console print the contents of sys.path
{{{ import sys print sys.path }}}
{{{
import sys print sys.path ['', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /site-packages']
}}}
-- Ticket URL: <http://trac.macports.org/ticket/19127#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19127: s3cmd executable fails with error ------------------------------+--------------------------------------------- Reporter: i@… | Owner: alpha@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: worksforme | Keywords: Port: s3cmd | ------------------------------+--------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => worksforme Comment: Seems fine with current versions. -- Ticket URL: <https://trac.macports.org/ticket/19127#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts