在最新版仓库中,QGIS存在插件无法加载的情况。从报错的情况来看,是yaml没有正常识别。
Couldn't load plugin 'processing'
ModuleNotFoundError: No module named 'yaml'
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 401, in loadPlugin
__import__(packageName)
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/init.py", line 24, in
from processing.tools.general import \* # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/tools/general.py", line 30, in
from processing.core.Processing import Processing
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line 55, in
from processing.algs.qgis.QgisAlgorithmProvider import QgisAlgorithmProvider # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py", line 30, in
from .BarPlot import BarPlot
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/algs/qgis/BarPlot.py", line 29, in
from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/algs/qgis/QgisAlgorithm.py", line 24, in
from processing.algs.help import shortHelp
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/qgis/python/plugins/processing/algs/help/init.py", line 28, in
import yaml
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'yaml'
Python version: 3.11.5 (main, Sep 25 2023, 14:00:08) [GCC 13.2.1 20230906]
QGIS version: 3.32.2-Lima Lima, exported
Python Path:
/usr/share/qgis/python
/home/loongarch/.local/share/QGIS/QGIS3/profiles/default/python
/home/loongarch/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python311.zip
/usr/lib/python3.11
/usr/lib/python3.11/lib-dynload
/usr/lib/python3.11/site-packages
/home/loongarch/.local/share/QGIS/QGIS3/profiles/default/python