Tuesday, 11 December, 2007

Google Chart API

Google have released their chart API. Here’s a few alternatives for Python:

See also vtk and MayaVi

Posted by simonb on 12/11 at 09:18 AM
InternetPythonPermalinkEmail this bit
Wednesday, 17 January, 2007

urllib2.URLError: urlopen error unknown url type: https

Note to self: for the following to work on a Mac with fink’s python

xml = urllib2.urlopen("https://api.del.icio.us/v1/posts/recent").read()

Your python needs ssl support.

fink install python24-socket-ssl

Phew!

Posted by simonb on 01/17 at 11:31 AM
InternetProgrammingPythonComments (0) • Trackbacks (0) • PermalinkEmail this bit
Thursday, 11 May, 2006

Django technical_500_response error

I recently switched from the Django magic-removal branch to the trunk post-magic-removal. I was getting this bizarre error:

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

  File "/sw/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/Users/simonb/src/dj/trunk/django/core/handlers/modpython.py", line 157, in handler
    return ModPythonHandler()(req)

  File "/Users/simonb/src/dj/trunk/django/core/handlers/modpython.py", line 129, in __call__
    response = self.get_response(req.uri, request)

  File "/Users/simonb/src/dj/magic-removal/django/core/handlers/base.py", line 100, in get_response

  File "/Users/simonb/src/dj/magic-removal/django/core/handlers/base.py", line 133, in get_technical_error_response

  File "/Users/simonb/src/dj/trunk/django/views/debug.py", line 115, in technical_500_response
    c = Context({

IndexError: list index out of range

Well, it took me a while to figure out. Notice that the directory name used for the Django distribution changes in the traceback - from “trunk” to “magic-removal”. After I had updated I had changed the directory name from magic-removal to trunk. Ah ha! So a quick “find -name ‘*.pyc’ -exec rm {} \;” got rid of the compiled code with the old paths names. Now, at least, the errors make sense.

Posted by simonb on 05/11 at 07:46 AM
DjangoPythonComments (0) • Trackbacks (0) • PermalinkEmail this bit
Sunday, 07 May, 2006

Django Talk Video

Jacob Kaplan-Moss gave a talk on Django at Google for BayPIGgies.

Posted by simonb on 05/07 at 03:18 AM
DjangoPythonComments (0) • Trackbacks (0) • PermalinkEmail this bit
Sunday, 08 January, 2006

Django and Rails Creators Talk Video and Audio

Snakes and Rubies Chicago, 3 Dec. 2005: The creators of Django and Rails each gave talks and discussed web frameworks. Download the video and audio here

Posted by simonb on 01/08 at 08:50 AM
DjangoProgrammingPythonComments (0) • Trackbacks (0) • PermalinkEmail this bit

Page 1 of 1 pages