From: SourceForge.net <no...@so...> - 2008-06-19 01:57:45
|
Bugs item #1997141, was opened at 2008-06-19 06:44 Message generated for change (Comment added) made by ludvigm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=887015&aid=1997141&group_id=178907 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: s3cmd Group: Malfunction >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Kenneth Thorman (kenneth_thorman) Assigned to: Nobody/Anonymous (nobody) Summary: Error during a get from S3 Initial Comment: Attemping to retrieve a file from S3 using. I have tried using different filenames it simply will not retrieve a file s3cmd get s3://XXX/XXX/XXX/mysql/2008-06-18_14h30m.sql.bz2 s3cmd get s3://XXX/XXX/XXX/mysql/2008061814h31m.txt Traceback (most recent call last): File "/usr/bin/s3cmd", line 766, in ? cmd_func(args) File "/usr/bin/s3cmd", line 244, in cmd_object_get response = s3.object_get_uri(uri, destination) File "/usr/lib/python2.4/site-packages/S3/S3.py", line 182, in object_get_uri response = self.recv_file(request, stream) File "/usr/lib/python2.4/site-packages/S3/S3.py", line 400, in recv_file info("Receiving file '%s', please wait..." % stream.name) AttributeError: 'str' object has no attribute 'name' .s3cfg [default] access_key = XXXXXXXXXXXXXXXXXXxx acl_public = False bucket_location = US default_mime_type = binary/octet-stream delete_removed = False dry_run = False encrypt = False force = False gpg_command = /usr/bin/gpg gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passph rase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passph rase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s gpg_passphrase = XXXXX guess_mime_type = False host_base = s3.amazonaws.com host_bucket = %(bucket)s.s3.amazonaws.com human_readable_sizes = False preserve_attrs = True proxy_host = proxy_port = 0 recv_chunk = 4096 secret_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx send_chunk = 4096 use_https = True verbosity = WARNING ---------------------------------------------------------------------- >Comment By: Michal Ludvig (ludvigm) Date: 2008-06-19 13:57 Message: Logged In: YES user_id=344740 Originator: NO Oh, wait, it looks like yours /usr/bin/s3cmd comes from a different s3cmd version than /usr/lib/python2.4/site-packages/S3/S3.py. Did you have an RPM version before and now updated it via setup.py perhaps? It's possible that the new s3cmd command ended up in /usr/local/bin instead. Make sure you're invoking the right s3cmd. ---------------------------------------------------------------------- Comment By: Michal Ludvig (ludvigm) Date: 2008-06-19 13:51 Message: Logged In: YES user_id=344740 Originator: NO I can't reproduce that behaviour. What version of s3cmd do you use? And what platform are you on? I tried s3cmd 0.9.8-rc3 with Python 2.5 on OpenSUSE 10.3 and with Python 2.4 on CentOS 5 and get works just fine in both of them. ---------------------------------------------------------------------- Comment By: Kenneth Thorman (kenneth_thorman) Date: 2008-06-19 07:09 Message: Logged In: YES user_id=1858845 Originator: YES DEBUG: Updating verbosity -> 30 DEBUG: Command: get DEBUG: String 'XXX/XXX/mysql/2008061814h31m.txt' encoded to 'XXX/XXX/mysql/2008061814h31m.txt' DEBUG: SignHeaders: 'GET\n\n\n\nx-amz-date:Wed, 18 Jun 2008 19:03:19 +0000\n/XXX/XXX/XXX/mysql/2008061814h31m.txt' DEBUG: CreateRequest: resource[uri]=/XXX/XXX/mysql/2008061814h31m.txt Traceback (most recent call last): File "/usr/bin/s3cmd", line 766, in ? cmd_func(args) File "/usr/bin/s3cmd", line 244, in cmd_object_get response = s3.object_get_uri(uri, destination) File "/usr/lib/python2.4/site-packages/S3/S3.py", line 182, in object_get_uri response = self.recv_file(request, stream) File "/usr/lib/python2.4/site-packages/S3/S3.py", line 400, in recv_file info("Receiving file '%s', please wait..." % stream.name) AttributeError: 'str' object has no attribute 'name' ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=887015&aid=1997141&group_id=178907 |