#17756: GeoDjango missing pyspatialite support
-----------------------------+------------------------------------
Reporter: danols | Owner: danols
Type: New feature | Status: assigned
Component: GIS | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------+------------------------------------
Comment (by danols):
Thanks for taking the time to review it; I've looked at the error logs and
the build fails as it is missing header files - unfortunately one has to
use the system package management to install those as pip won't work. Also
the branch is labeled experimental. I did an upgrade from 2.6 to this
experimental branch here and it build properly:
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-i686-2.6/src/module.o
build/temp.linux-i686-2.6/src/connection.o
build/temp.linux-i686-2.6/src/cursor.o
build/temp.linux-i686-2.6/src/cache.o
build/temp.linux-i686-2.6/src/microprotocols.o
build/temp.linux-i686-2.6/src/prepare_protocol.o
build/temp.linux-i686-2.6/src/statement.o
build/temp.linux-i686-2.6/src/util.o build/temp.linux-i686-2.6/src/row.o
build/temp.linux-i686-2.6/amalgamation/sqlite3.o
build/temp.linux-i686-2.6/amalgamation/spatialite.o
-L/Library/Frameworks/GEOS.framework/unix/lib
-L/Library/Frameworks/PROJ.framework/unix/lib -lgeos -lgeos_c -lproj -o
build/lib.linux-i686-2.6/pyspatialite/_spatialite.so
Successfully installed pyspatialite
Your second concern again results in header files missing; in this case
it's the geos package - see line amalgamation\spatialite.c:102:20: error:
geos_c.h: No such file or directory.
Both results are due to the fact PIP only does python packages and it
won't even complain if 'outside' requirements are missing, these
supporting header files would need to be installed either way to compile
sqlite3 with 'extension' support.
The patch ought to include a NOTE advising that one must install
supporting GEOS, GDAL, PROJ.4 files? Since these issues are not package
related after that it should be good for RFC. thoughts?
--
Ticket URL: <https://code.djangoproject.com/ticket/17756#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.