Re: [Snowy] Crash when doing PUT



Hey Cornelius,

> after getting my head (and code) around the OAuth stuff I'm finally able
> to download notes from Snowy. Now I want to upload some notes, but
> having troubles doing so. Probably I'm doing something wrong, but I have
> no idea what it is. So if someone has an idea, please help :)
> 
<snip />
> And here is the reply from Snowy:
> 
> HTTP/1.0 200 OK
> Date: Fri, 07 Aug 2009 08:33:14 GMT
> Server: WSGIServer/0.1 Python/2.5.2
> Vary: Authorization, Accept-Language, Cookie
> Content-Type: application/json; charset=utf-8
> Content-Language: en-us
> 
> "Piston/0.2 (Django 1.1 beta 1) crash report:\n\nTraceback (most recent
> call last):\n\n  File \"/home/conny/snowy/../snowy/api/handlers.py\",
> line 50, in wrapper\n    return fn(*args, **kwargs)\n\n  File
> \"/home/conny/snowy/../snowy/api/handlers.py\", line 50, in wrapper\n
> return fn(*args, **kwargs)\n\n  File
> \"/usr/lib/python2.5/site-packages/django/db/transaction.py\", line 240,
> in _commit_on_success\n    res = func(*args, **kw)\n\n  File
> \"/home/conny/snowy/../snowy/api/handlers.py\", line 121, in update\n
> update = json.loads(request.raw_post_data)\n\nAttributeError: 'module'
> object has no attribute 'loads'\n"

This error is most likely because you're not running python 2.6, which
appears to be required by piston (the REST library Snowy uses).  Think
you can update?

Best,

-Brad



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]