Plan day one

Since I've used Python+pygame quite a lot in combination with py2exe before, to create a distributable .zip for windows, I'm quite comfortable with starting out coding only on Ubuntu.

So today I'll try to get a pygame window up, extending the skellington-project. Then I'll try to make an upload to this site, and a screenshot.

I'm happy if I get that far today, since I've got some other things to attend to also.

(log in to comment)

Comments

Downloaded the skellington.zip, unpacked it, and used the create_upload.py to create a "skellington" upload. Really intuitive and nice!

But I failed to upload:

$ python pyweek-upload.py -u objarni -p [censored] -d "Empty skellington upload" -c empty-skellington.zip -e skellington
Traceback (most recent call last):
  File "pyweek-upload.py", line 196, in <module>
    http_request(data, host, port, url)
  File "pyweek-upload.py", line 127, in http_request
    data = mimeEncode(data)
  File "pyweek-upload.py", line 35, in mimeEncode
    if value and value[-1] == '\r':
TypeError: 'int' object is unsubscriptable
Is there a chance that "empty-skellington.zip" is empty?
Nope:

$ ls -sh empty-skellington.zip
4,0K empty-skellington.zip
I still cannot upload neither screenshots nor archives. :( Wonder what I'm doing wrong...

For example, screenshot upload row:

$ python pyweek-upload.py -uobjarni -p*********** -dUpload -cscreenshot1.png -eob01 -s

.. gives me:

Traceback (most recent call last):
  File "pyweek-upload.py", line 196, in <module>
    http_request(data, host, port, url)
  File "pyweek-upload.py", line 127, in http_request
    data = mimeEncode(data)
  File "pyweek-upload.py", line 35, in mimeEncode
    if value and value[-1] == '\r':
TypeError: 'int' object is unsubscriptable

I must be making some really silly mistake. Oh well, should have tried this out *before* the challenge week. Kind of frustrating.
I never bothered to try pyweek-upload.py. You can just upload through the web interface.
For images, I know there is one (in this editor). But for zip files?

Just go to your entry page and pick "Upload File". Then don't check the box that says it's a screenshot.
Ah! Thanks. Now I can't blame that script anymore for not getting anything done ;)
Sorry objarni, it looks like I have modified pyweek-upload to work better than you're experiencing, but not distributed the working version.

I've just released skellington 1.9 which has the fixed pyweek-upload.py script. The fixed script is also available on the help page.
richard; thanks! I still hope to finish a game, but I have gotten off to a lousy start so maybe I will have to admit to beeing too time optimistic this time around. I think PyWeek is a great, and I imagine it is doing tons in spreading the "word" about python aswell as improving several libraries for multimedia python programming.