ADMIN: pyweek-upload.py bugfix!

The uploader had a bug! I didn't test it!

Bad Richard.

The fixed version is pyweek-upload.py.

A number of bugs in the uploader handler on the server have been fixed, including the reporting of "301" responses and "not an image file".

(log in to comment)

Comments

I'm having trouble with this richard:

python pyweek-upload.py -ubencoder -ppassword -d"Final Version of Lunar Delivery" -cLunarDelivery-1.0.zip -eLunarDelivery -f

Traceback (most recent call last):
  File "pyweek-upload.py", line 197, in
    http_request(data, host, port, url)
  File "pyweek-upload.py", line 135, in http_request
    h.progress_send(data)
  File "pyweek-upload.py", line 112, in progress_send
    sent += self.sock.send(chunk)
socket.error: (32, 'Broken pipe')


any ideas?
that's on ubuntu 8.04 by the way
hmm I'm on ubuntu 8.04 too (32 bit) and it works for me.
os/x 10.5.4 intel. I'm having the same problem.

and I can't tag an entry as "final" when I use the upload web page
From ubuntu v8.04 I got a similar error:
Traceback (most recent call last):                                         
  File "pyweek-upload.py", line 197, in 
    http_request(data, host, port, url)
  File "pyweek-upload.py", line 135, in http_request
    h.progress_send(data)
  File "pyweek-upload.py", line 112, in progress_send
    sent += self.sock.send(chunk)
socket.error: (104, 'Connection reset by peer')
ah... the -e argument must match the name of your game entry.
oh... doh! thanks riq!
What's the expected output of the script for a file marked final? Gord tried uploading once and I've also tried twice and we keep getting '301 PERMANENTLY MOVED' as the output and no file on our entry page. We've uploaded our entry for now using the webform but it's not marked final and we're not sure how this will work.
mine said "200 OK\n" "not an image" worked fine
'Connection reset by peer' or 'Broken pipe' means your net connection is flaking out during the upload.

I'm looking into the other issues.

The message "not an image" may be ignored.
Thanks for the fix richard!