-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems running the test suite locally #86
Comments
Hi @dyve , You can run the test locally (and install the dependencies) with the following commands (run them in a virtualenv): $ pip install -e '.[field]'
$ pip install Django==1.10.6
$ python quicktest.py djgeojson You will also need spatialite to run the tests. There are more information about it in the Django documentation. |
I know it's not a django-geojson issue, but perhaps someone here know. Installing spatialite through brew works just fine (spatialite command work), but running the tests gives Any clues? |
Are you using python2 or 3? For 2 you need to install pysqlite with the extension support: I don't think I had anything to do with python3. It depends on how it was compiled I guess. |
Tried both 2 and 3. Seems to be some issue with sqlite on Mac and homebrew. Will try another method. |
Stuck on this. Asked on StackOverflow, I'm probably missing something. http://stackoverflow.com/questions/42780960/stuck-on-pyenv-with-django-sqlite-and-pysqlite-with-spatialite |
Hi @dyve , Had the same issue on Opensuse Leap (bug : https://bugzilla.opensuse.org/show_bug.cgi?id=999296 ) with Python 3. The problem (at least in my case) is a specific Python compilation flag which can be missing on some distros (Opensuse Leap is missing it, however Opensuse Tumbleweed, Debian and Centos have it) |
My issue is specifically on Mac. I don't mind hacking some stuff together with brew etc, but I'm completely and utterly stooped at how hard it is to get spatialite running. BTW, what I intend to contribute to this project is to make the GeoJsonView work more like a regular view, so take querysets and other lists instead of just a model. |
I'm trying to make a PR for more flexible GeoJSON views, but the there is no description on how to run local tests.
Apparently
tox
needs all sorts of additional installs. If you could document or automate the process, that would be much appreciated.The text was updated successfully, but these errors were encountered: