Closed qgib closed 5 years ago
Author Name: Jürgen Fischer (@jef-n)
Not reproducable here.
1. cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu xenial main universe
deb http://qgis.org/debian xenial main
1. apt-get install qgis
[...]
Setting up qgis-providers (1:2.16.1+24xenial) ...
Synchronizing CRS database with GDAL/PROJ definitions.
[...]
359 CRSs updated.
[...]
1. dpkg -s qgis-providers | egrep "spatialite|Version"
Version: 1:2.16.1+24xenial
Depends: [...] libspatialite7 (>= 4.0.0), libsqlite3-0 (>= 3.5.9), libstdc++6 (>= 5.2)
1. ldd /usr/lib/qgis/crssync | grep spatialite
libspatialite.so.7 => /usr/lib/x86_64-linux-gnu/libspatialite.so.7 (0x00007f4623818000)
The @libspatialite.so.5@ dependency probably comes from something qgis depends on which is outdated for some reason. It shouldn't be in xenial at all.
Author Name: Gavin Fleming (@gubuntu)
The problem arose after I upgraded from Ubuntu 14.04 to 16.04.
I have now managed to install QGIS (no problem with qgis-providers anymore) after I switched to ubuntugis-unstable and also purged all potential spatialite dependents and reinstalled.
Now QGIS starts but won't load gdal-tools [1] nor Processing [2]
I'm not seeing any option to reinstall or upgrade these plugins so I'm not sure how to solve this.
[1]
Unable to load GdalTools plugin.
The required "osgeo [python-gdal]" module is missing.
Install it and try again.
Note: I actually do have python-gdal installed
[2]
Couldn't load plugin 'processing'
ImportError: libspatialite.so.5: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 308, in loadPlugin
__import__(packageName)
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/share/qgis/python/plugins/processing/__init__.py", line 28, in
from processing.tools.dataobjects import * # NOQA
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/share/qgis/python/plugins/processing/tools/dataobjects.py", line 37, in
from processing.algs.gdal.GdalUtils import GdalUtils
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 32, in
from osgeo import gdal
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg/osgeo/__init__.py", line 21, in
_gdal = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: libspatialite.so.5: cannot open shared object file: No such file or directory
Python version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609]
QGIS version: 2.16.1-Nødebo Nødebo, 8545b3b
Python Path:
/usr/share/qgis/python
/home/gavin/.qgis2/python
/home/gavin/.qgis2/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/pymodules/python2.7
/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.7/dist-packages/wx-3.0-gtk2
/home/gavin/.qgis2//python
/home/gavin/.qgis2/python/plugins/StreamFeatureExtractor/third_party
Author Name: Jürgen Fischer (@jef-n)
Gavin Fleming wrote:
ImportError: libspatialite.so.5: cannot open shared object file: No such file or directory"
Still some indirect dependency that still requires @libspatialite.so.5@
Author Name: Giovanni Manghi (@gioman)
I have seen that before, and I had a messed/mixed up packages. I removed anything that was related or a dependency of qgis or other spatial packages, re-installed and the problem was gone.
Author Name: Giovanni Manghi (@gioman)
Closing for lack of feedback, please reopen if necessary.
Author Name: Gavin Fleming (@gubuntu) Original Redmine Issue: 15431 Affected QGIS version: 2.16.1 Redmine category:build/install
I did an update of 2.16 and got this error. The system spatialite is v7 but qgis-providers still references v5