-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named '_gdal' #55519
Comments
Also tried using a flatpak with the same error |
Out of curiosity, have you enabled the Processing plugin (in Plugins Manager)? |
Yup, gives me the same error |
It looks like a packaging issue for Arch Linux / EndevourOS: please see https://gitlab.archlinux.org/archlinux/packaging/packages/qgis/-/issues/1 |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. |
I had this issue in my Manjaro install. The steps to fix it in my case was installing the arrow package and its dependencies. See OSGeo/gdal#6281. To verify it is fixed, try running
If you still see errors on the form A final note is that QGIS opens fine even if the output from |
I tried installing the missing files, in my case mariadb and libheif, but I am still getting No module named gdal |
Sorry, I don't remember having that issue. Try checking gdal in your repos. As a last resort work-around, you can try installing QGIS using Conda. The dependencies are handled in a different way in Conda, which solved some of the issues I had. |
What is the bug or the crash?
I am running Arch linux and updated qgis to the latest release. Since, it hasn't been able to locate gdal. It's the first time I have this kind of problem, what can I do?
`Couldn't load plugin 'processing'
ModuleNotFoundError: No module named '_gdal'
Traceback (most recent call last):
File "/home/adrian/.local/lib/python3.11/site-packages/osgeo/init.py", line 30, in swig_import_helper
return importlib.import_module(mname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 676, in _load_unlocked
File "", line 573, in module_from_spec
File "", line 1233, in create_module
File "", line 241, in _call_with_frames_removed
ImportError: libgdal.so.33: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
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 45, in
from .HypsometricCurves import HypsometricCurves
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/HypsometricCurves.py", line 25, in
from osgeo import gdal, ogr, osr
File "/usr/lib/python3.11/site-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adrian/.local/lib/python3.11/site-packages/osgeo/init.py", line 35, in
_gdal = swig_import_helper()
^^^^^^^^^^^^^^^^^^^^
File "/home/adrian/.local/lib/python3.11/site-packages/osgeo/init.py", line 32, in swig_import_helper
return importlib.import_module('_gdal')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_gdal'
Python version: 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801]
QGIS version: 3.34.1-Prizren Prizren, exported
Python Path:
/usr/share/qgis/python
/home/adrian/.local/share/QGIS/QGIS3/profiles/default/python
/home/adrian/.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
/home/adrian/.local/lib/python3.11/site-packages
/usr/lib/python3.11/site-packages
/home/adrian/.local/share/QGIS/QGIS3/profiles/default/python`
Steps to reproduce the issue
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
db_manager
0.1.20
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: