pyweek-upload.py TypeError: 'int' object is unscriptable
Doubtless I am being dumb, but I'm trying out pyweek-upload.py and I get the following:$ python pyweek-upload.py -u tartley -p xxx -d test -c test-0.1.zip -e shortname Traceback (most recent call last): File "pyweek-upload.py", line 198, in http_request(data, host, port, url) File "pyweek-upload.py", line 129, in http_request data = mimeEncode(data) File "pyweek-upload.py", line 37, in mimeEncode if value and value[-1] == '\r': TypeError: 'int' object is unsubscriptable'value' is an integer
Looking into the source, value is populated by this line:
for key, value in data.items()and 'data' is initialised using this:
data = dict(version=2)It is this int '2' value which is causing the problem.
Am I doing it wrong, or does pyweek-upload.py not work right now? What is this 'version' value? Should I just change it to string '2' instead?
Thanks for any advice,
Jonathan
(log in to comment)