Opened 4 years ago

Closed 4 years ago

#2405 closed defect (fixed)

wrong import of gdal in wcst_import?

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: critical Milestone: 10.0
Component: wcst_import Version: 9.8
Keywords: Cc: Bang Pham Huu
Complexity: Medium

Description

An error has occured in the execution of the program. Error Message: No module named 'gdal'
Stack Trace: Traceback (most recent call last):
  File "/opt/rasdaman/share/rasdaman/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 457, in _create_coverage_slices
    self.data_type = self.evaluator_slice.get_data_type(self)
  File "/opt/rasdaman/share/rasdaman/wcst_import/master/evaluator/evaluator_slice.py", line 154, in get_data_type
    band_data_type = GDALGmlUtil.data_type_to_gdal_type(netcdf_data_type)
  File "/opt/rasdaman/share/rasdaman/wcst_import/util/gdal_util.py", line 384, in data_type_to_gdal_type
    import gdal
ModuleNotFoundError: No module named 'gdal'

However, this works:

from osgeo import gdal

Change History (1)

comment:1 by Dimitar Misev, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.