Page MenuHomeSolus

QGIS missing pyython-gdal
Closed, ResolvedPublic

Description

Currently, the version of QGIS that is in the repo has a problem with the dependency GDAL. While the result does not render the entire application unable to run, it does prevent key functionality from working. Upon running, these errors appear:

Unable to load GdalTools plugin. 
The required "osgeo [python-gdal]" module is missing. 
Install it and try again.
Couldn't load plugin 'processing' 

ImportError: No module named osgeo 
Traceback (most recent call last):
  File "/usr/share/qgis/python/qgis/utils.py", line 308, in loadPlugin
    __import__(packageName)
  File "/usr/share/qgis/python/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/share/qgis/python/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/share/qgis/python/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/share/qgis/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named osgeo

Related Objects

Event Timeline

Try updating please. We just synced the repo in the past half hour and I fixed it in unstable a few days ago. Thanks.

It loos like the error is no longer popping up, but all the raster and vector tools are missing from the menus. Is there another package I'm missing?

DataDrake claimed this task.Feb 2 2017, 4:21 AM
DataDrake triaged this task as Normal priority.
DataDrake added a project: Software.
DataDrake moved this task from Backlog to Package Fixes on the Software board.

I'm guessing it's missing some libs. I'll take a closer look and update it too.

@mangopuncher I have looked into this some more and it looks like there are a few python bits that might not be installed, so I am enabling those right now. However, as far as some of the tools go, you may have to enable the plugins for them to be available:

DataDrake closed this task as Resolved.Mar 29 2017, 6:25 PM

Since I haven't heard back, I'm marking this as resolved. Please reopen if the problem persists after enabling the plugins.

Geotig added a subscriber: Geotig.Sep 8 2017, 11:10 PM

Hi, i don't know if it's the exactly same issue, but the Python Console is unavailable in QGIS. In the plugins menu, there should be a Python Console entry, and in the Manage Plugins > Settings tab, you can see a message telling that Python support is not available.