[MacPorts] #19127: s3cmd executable fails with error

MacPorts noreply at macports.org
Fri Apr 3 08:56:52 PDT 2009


#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


More information about the macports-tickets mailing list