<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">PySpatialite is a totally obsoleted python package: you must explicitely load the mod_spatialite extension using the spatialite load_extension(..).</div><div class=""><br class=""></div><div class="">Qgis use its own version of pyspatialite, but you must enable it in the build configuration as stated by Matthias. </div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">Le 30 janv. 2017 à 13:10, Saber Razmjooei <<a href="mailto:saber.razmjooei@lutraconsulting.co.uk" class="">saber.razmjooei@lutraconsulting.co.uk</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""> sudo pip3 install pyspatialite ?<br class=""><br class=""></div>Cheers<br class=""></div>Saber<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 30 January 2017 at 10:48, matteo <span dir="ltr" class=""><<a href="mailto:matteo.ghetta@gmail.com" target="_blank" class="">matteo.ghetta@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br class="">
<br class="">
I don't know if a miss some older discussion on this topic but I'm not<br class="">
able to load SpatiaLite databases in QGIS 3.<br class="">
<br class="">
It seems there there is no pyspatialite for python3:<br class="">
<br class="">
Traceback (most recent call last):<br class="">
  File<br class="">
"/home/matteo/lavori/QGIS/<wbr class="">build-qgis3/output/python/<wbr class="">qgis/utils.py", line<br class="">
598, in spatialite_connect<br class="">
    from pyspatialite import dbapi2<br class="">
  File<br class="">
"/home/matteo/lavori/QGIS/<wbr class="">build-qgis3/output/python/<wbr class="">qgis/utils.py", line<br class="">
647, in _import<br class="">
    mod = _builtin_import(name, globals, locals, fromlist, level)<br class="">
ImportError: No module named 'pyspatialite'<br class="">
<br class="">
<br class="">
I checked around on the web and I found an issue the github repo [0]<br class="">
<br class="">
Has anyone a working SpatiaLite db on QGIS?<br class="">
<br class="">
Thanks to all<br class="">
<br class="">
Matteo<br class="">
<br class="">
<br class="">
[0] <a href="https://github.com/lokkju/pyspatialite/issues/27" rel="noreferrer" target="_blank" class="">https://github.com/lokkju/<wbr class="">pyspatialite/issues/27</a><br class="">
______________________________<wbr class="">_________________<br class="">
Qgis-developer mailing list<br class="">
<a href="mailto:Qgis-developer@lists.osgeo.org" class="">Qgis-developer@lists.osgeo.org</a><br class="">
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/<wbr class="">mailman/listinfo/qgis-<wbr class="">developer</a><br class="">
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" class="">https://lists.osgeo.org/<wbr class="">mailman/listinfo/qgis-<wbr class="">developer</a></blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Saber Razmjooei<br class=""></div><div class=""><a href="http://www.lutraconsulting.co.uk/" target="_blank" class="">www.lutraconsulting.co.uk</a><br class=""><span class="">+44 (0)7568 129733</span><br class=""></div></div></div></div></div></div></div></div></div></div>
</div>
_______________________________________________<br class="">Qgis-developer mailing list<br class=""><a href="mailto:Qgis-developer@lists.osgeo.org" class="">Qgis-developer@lists.osgeo.org</a><br class="">List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer<br class="">Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer</div></blockquote></div><br class=""></body></html>