Bug report #7899
pyspatialite module not loaded running from output dir
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Giuseppe Sucameli | ||
Category: | Python plugins | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 16771 |
Description
Here the error message:
Debug: src/core/qgsmessagelog.cpp: 45: (logMessage) 2013-05-25T12:51:36 Python[1] warning:/home/giuseppe/projects/sources/qgis/build/output/python/qgis/utils.py:452: ImportWarning: Not importing directory '/home/giuseppe/projects/sources/qgis/build/output/python/pyspatialite': missing __init__.py mod = _builtin_import(name, globals, locals, fromlist, level) traceback: File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/db_manager_plugin.py", line 66, in run from db_manager import DBManager File "/home/giuseppe/projects/sources/qgis/build/output/python/qgis/utils.py", line 452, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/db_manager.py", line 28, in <module> from .info_viewer import InfoViewer File "/home/giuseppe/projects/sources/qgis/build/output/python/qgis/utils.py", line 452, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/info_viewer.py", line 26, in <module> from .db_plugins.plugin import BaseError, DbError, DBPlugin, Schema, Table File "/home/giuseppe/projects/sources/qgis/build/output/python/qgis/utils.py", line 452, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/db_plugins/__init__.py", line 69, in <module> initDbPluginList() File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/db_plugins/__init__.py", line 43, in initDbPluginList exec( u"from .%s import plugin as mod" % name ) File "<string>", line 1, in <module> File "/home/giuseppe/projects/sources/qgis/build/output/python/qgis/utils.py", line 452, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/db_plugins/spatialite/plugin.py", line 24, in <module> from .connector import SpatiaLiteDBConnector File "/home/giuseppe/projects/sources/qgis/build/output/python/qgis/utils.py", line 452, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/giuseppe/projects/sources/qgis/build/output/python/plugins/db_manager/db_plugins/spatialite/connector.py", line 29, in <module> from pyspatialite import dbapi2 as sqlite
pyspatialite.dbapi2 module is available at pyspatialite/lib/
while running from outputdir, instead at pyspatialite/
once installed
Associated revisions
fix pyspatialite import running QGIS from output dir (fix #7899)
History
#1 Updated by Giuseppe Sucameli over 11 years ago
- Status changed from Open to Closed
Fixed in changeset 9f26f78ea7497cdf30e29c9d486f85eb81cced56.