uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
374 stars 100 forks source link

"Global name 'memoryview' is not defined" error with Python 2.6.6 #60

Closed gvonbergen closed 11 years ago

gvonbergen commented 11 years ago

root@debian:~/src/amazon-glacier-cmd-interface# glacier-cmd upload --partsize 1 test1 ../spl-0.6.0-rc10.tar.gz Wrote 0.0 bytes of 510.9 KB (0%). Rate 286.90 MB/s, average 0.00 bytes/s, eta Unknown. Traceback (most recent call last): File "/usr/local/bin/glacier-cmd", line 8, in load_entry_point('glacier==0.2dev', 'console_scripts', 'glacier-cmd')() File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glacier.py", line 797, in main args.func(args) File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glacier.py", line 334, in putarchive writer.close() File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glaciercorecalls.py", line 331, in close self.send_part() File "/usr/local/lib/python2.6/dist-packages/glacier-0.2dev-py2.6.egg/glacier/glaciercorecalls.py", line 279, in send_part buf = memoryview("".join(self.buffer)) NameError: global name 'memoryview' is not defined

gburca commented 11 years ago

Should be fixed by: https://github.com/gburca/amazon-glacier-cmd-interface/commit/72008556d5726c3cea56a713593db7faa0795f5c once it gets pulled in.

offlinehacker commented 11 years ago

Let's just remove it. Vwmarle patch should have fixed this anyway.

On Thu, Oct 4, 2012 at 6:16 PM, JanKraljic notifications@github.com wrote:

I think i still have this problem, even with python 2.7.3, with latest pull from GIT. I tried on Debian/Unstable and Ubuntu 12.04

~/$ glacier-cmd upload personal 20121003.tar "My test"

Traceback (most recent call last): File "/usr/local/bin/glacier-cmd", line 9, in load_entry_point('glacier==0.2dev', 'console_scripts', 'glacier-cmd')() File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glacier.py", line 818, in main args.func(args) File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glacier.py", line 325, in putarchive writer.write(part) File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glaciercorecalls.py", line 340, in write self.send_part() File "/usr/local/lib/python2.7/dist-packages/glacier-0.2dev-py2.7.egg/glacier/glaciercorecalls.py", line 294, in send_part buf = memoryview("".join(self.buffer)) TypeError: sequence item 0: expected string, memoryview found

— Reply to this email directly or view it on GitHubhttps://github.com/uskudnik/amazon-glacier-cmd-interface/issues/60#issuecomment-9147242.