Opened 16 years ago

Closed 14 years ago

#19127 closed defect (worksforme)

s3cmd executable fails with error

Reported by: i@… Owned by: alpha@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: s3cmd

Description

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

Change History (5)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to alpha@…
Port: s3cmd added

comment:2 Changed 16 years ago 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?
  1. From Python console (you can launch it with python2.5) try to invoke
import S3
  1. What is the contents of /opt/local/lib/python2.5/site-packages/S3/?
  1. From Python console print the contents of sys.path
import sys
print sys.path

comment:3 in reply to:  2 Changed 16 years ago by i@…

Replying to 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
  1. 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
>>>
  1. 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
$

  1. 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']
>>>

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Seems fine with current versions.

Note: See TracTickets for help on using tickets.