Skip to content
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

Use SpatiaLite library path from environment variable for running tests #173

Merged
merged 1 commit into from
Jan 27, 2017
Merged

Use SpatiaLite library path from environment variable for running tests #173

merged 1 commit into from
Jan 27, 2017

Conversation

KostyaEsmukov
Copy link
Contributor

Running tests on macOS now causes the error:

django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension "/usr/local/lib/libspatialite.dylib" because: dlsym(0x7fbadca059c0, sqlite3_spatialite_init): symbol not found

With this patch one can run tests this way (without modifying the quicktest.py file itself):

export SPATIALITE_LIBRARY_PATH='/usr/local/lib/mod_spatialite.dylib'
python ./quicktest.py leaflet --db=sqlite

@leplatrem leplatrem merged commit 8cf951f into makinacorpus:master Jan 27, 2017
@leplatrem
Copy link
Collaborator

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants