When I try to run QGIS, I get the following errors at startup:
An error occured during execution of following code:
import pyplugin_installer
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named pyplugin_installer
Python version:
2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010]
QGIS version:
2.12.1-Lyon 'Lyon', exported
Python path:
['/usr/share/qgis/python', u'/home/jesse/.qgis2/python', u'/home/jesse/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/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', '/home/jesse/.local/lib/python2.7/site-packages', '/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', u'/home/jesse/.qgis2//python']
##################################
An error occured during execution of following code:
pyplugin_installer.initPluginInstaller()
Traceback (most recent call last):
File "", line 1, in
NameError: name 'pyplugin_installer' is not defined
Python version:
2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010]
QGIS version:
2.12.1-Lyon 'Lyon', exported
Python path:
['/usr/share/qgis/python', u'/home/jesse/.qgis2/python', u'/home/jesse/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/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', '/home/jesse/.local/lib/python2.7/site-packages', '/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', u'/home/jesse/.qgis2//python']
After this, QGIS starts up. I then get в сходную ошибку message when I try to open up the Пайтон я утешил or plugins меню.
гve tried apt-get purge qgis
and then re-installing it with apt-get install qgis -f
. But I get the following ошибка messages when trying to purge/install:
Processing triggers for man-db (2.7.4-1) ...
Setting up qgis-providers-common (1:2.12.1+git20151211+80c5cb6+23wily) ...
cp: cannot stat ‘/usr/share/qgis/resources/srs-template.db’: No such file or directory
dpkg: error processing package qgis-providers-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of qgis-providers:
qgis-providers depends on qgis-providers-common (= 1:2.12.1+git20151211+80c5cb6+23wily); however:
Package qgis-providers-common is not configured yet.
dpkg: error processing package qgis-providers (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
qgis-providers-common
qgis-providers
E: Sub-process /usr/bin/dpkg returned an error code (1)
Obviously, the problem seems related to Пайтон, but I can't фигурировал out how to diagnose what is wrong here. Does anyone have any ты разрабатываешь about how to fix this, or идеи about other ты нравишься to look for clues эксперт to what is happening? Thanks.
У меня была та же проблема, но она работает снова теперь.
Это было зафиксировано в этом обновлении, которое я смог установить сегодня: