2

I have tries every combination of brew, Django, python and sqlite I can think of. Possible the built-in version of sqlite is messing with me.

I am trying to run the test suite for django-geojson (https://github.com/makinacorpus/django-geojson).

The instructions are here: https://github.com/makinacorpus/django-geojson/issues/86

I keep running into this error:

django.core.exceptions.ImproperlyConfigured: The pysqlite library does not support C extension loading. Both SQLite and pysqlite must be configured to allow the loading of extensions to use SpatiaLite.

I use macOS Sierra with brew, pyenv, various Python versions. Ask me if you need more info. I found several Google results from years ago that got me nowhere.

dyve
  • 5,893
  • 2
  • 30
  • 44
  • Tell use which Python version you are using, and if you could compile it yourself. – CL. Mar 14 '17 at 08:25
  • Have you tried [this answer?](http://stackoverflow.com/questions/11093593/python-the-pysqlite-library-does-not-support-c-extension-loading) - what happens when you update the .cfg and recompile - per [instructions here](http://technotes.tumblr.com/post/40838871308/django-with-sqlite-as-a-geospatial-database). – Withnail Mar 14 '17 at 10:35
  • Where can I find the .cfg when installed through brew? – dyve Mar 15 '17 at 09:11
  • I used Python 2.7.10 and 3.4.6 – dyve Mar 15 '17 at 09:20

0 Answers0