ฉันได้ติดตั้ง QGIS3 จากแพ็คเกจ AUR รวมถึงการพึ่งพาเพิ่มเติมทั้งหมด: https://aur.archlinux.org/packages/qgis/
อย่างไรก็ตามเมื่อเปิดตัวฉันได้รับข้อผิดพลาดดังต่อไปนี้:
Couldn't load plugin 'processing'
ModuleNotFoundError: No module named 'osgeo'
Traceback (most recent call last):
File "/usr/share/qgis/python/qgis/utils.py", line 311, in loadPlugin
__import__(packageName)
File "/usr/share/qgis/python/qgis/utils.py", line 664, 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/share/qgis/python/qgis/utils.py", line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/share/qgis/python/plugins/processing/tools/dataobjects.py", line 51, in
from processing.algs.gdal.GdalUtils import GdalUtils
File "/usr/share/qgis/python/qgis/utils.py", line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 35, in
from osgeo import gdal
File "/usr/share/qgis/python/qgis/utils.py", line 664, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'osgeo'
Python version: 3.6.4 (default, Jan 5 2018, 02:35:40) [GCC 7.2.1 20171224]
QGIS version: 3.0.0-Girona Girona, exported
Python Path:
/usr/share/qgis/python
/home/thiago/.local/share/QGIS/QGIS3/profiles/default/python
/home/thiago/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/usr/lib/python3.6/site-packages
/home/thiago/.local/share/QGIS/QGIS3/profiles/default/python
ดูเหมือนว่าจะเป็นปัญหาเกี่ยวกับเส้นทาง แต่ฉันไม่แน่ใจว่าจะแก้ไขได้อย่างไร Pacman แสดง gdal และ python-gdal ทั้งที่ติดตั้ง
python-gdal
แก้ไขปัญหานี้ให้ฉัน ดูเหมือนว่าพวกเขาจะลืมการพึ่งพา