On 03/17/2011 04:54 AM, Jude Mwenda wrote:
> Hi,
> I would like to use some of geodjango's functions on my intance. On adding
> at the installed apps 'django.contrib.gis' i get the error
> Only versions of pysqlite 2.5+ are compatible with SpatiaLite and GeoDjango.
> Any pointers on how to upgrade pysqlite to 2.5+? or is there an alternative
> to doing geometry functions saved on the sqlite database? such as extent()
> 
> Regards
> 

I can answer your original question. The problem is that the default
sqlite lib in python ships with load extensions disabled.
You need to install pysqlite from source and change one flag before
installing it.
Download the source:
Edit setup.cfg

comment out (ADD # at the beginning of this line)
define=SQLITE_OMIT_LOAD_EXTENSION

The run python setup.py install

That should solve the issue, Geodjango knows to look for pysqlite
installed aside from the built in connector.

Thanks,
Alex

Reply via email to