[Qgis-developer] Spatialite in QGIS master

David Marteau dmarteau at 3liz.com
Mon Jan 30 05:32:51 PST 2017


PySpatialite is a totally obsoleted python package: you must explicitely load the mod_spatialite extension using the spatialite load_extension(..).

Qgis use its own version of pyspatialite, but you must enable it in the build configuration as stated by Matthias. 



> Le 30 janv. 2017 à 13:10, Saber Razmjooei <saber.razmjooei at lutraconsulting.co.uk> a écrit :
> 
>  sudo pip3 install pyspatialite ?
> 
> Cheers
> Saber
> 
> On 30 January 2017 at 10:48, matteo <matteo.ghetta at gmail.com <mailto:matteo.ghetta at gmail.com>> wrote:
> Hi all,
> 
> I don't know if a miss some older discussion on this topic but I'm not
> able to load SpatiaLite databases in QGIS 3.
> 
> It seems there there is no pyspatialite for python3:
> 
> Traceback (most recent call last):
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 598, in spatialite_connect
>     from pyspatialite import dbapi2
>   File
> "/home/matteo/lavori/QGIS/build-qgis3/output/python/qgis/utils.py", line
> 647, in _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named 'pyspatialite'
> 
> 
> I checked around on the web and I found an issue the github repo [0]
> 
> Has anyone a working SpatiaLite db on QGIS?
> 
> Thanks to all
> 
> Matteo
> 
> 
> [0] https://github.com/lokkju/pyspatialite/issues/27 <https://github.com/lokkju/pyspatialite/issues/27>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org <mailto:Qgis-developer at lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> 
> 
> -- 
> Saber Razmjooei
> www.lutraconsulting.co.uk <http://www.lutraconsulting.co.uk/>
> +44 (0)7568 129733
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170130/01a8b384/attachment-0001.html>


More information about the Qgis-developer mailing list