Welcome, Guest
Username: Password: Remember me

TOPIC: Resolved: PostTelemac import gdal error

Resolved: PostTelemac import gdal error 3 years 4 months ago #38813

Hi,

With the recent releases of QGIS, I got a Python error when I tried to open the PostTelemac plugin. The cause for the error seems to stem from the
import gdal
statement in the
posttelemac_hdf_parser.py
. Here my troubleshoot, just in case this may help anyone (it might also be a good idea to adapt the PostTelemac plugin accordingly):

On Windows, the
posttelemac_hdf_parser.py
script may live in a directory such as
C:\Users\USERNAME\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\PostTelemac\meshlayerparsers\
. Thus:
  • Find and open
    posttelemac_hdf_parser.py
  • Replace
    import gdal
    (i.e., import gdal) with
    from osgeo import gdal
  • Save and close
    posttelemac_hdf_parser.py

Retry to start the PostTelemac plugin. It should run without issues now.

Best,
Sebastian
The administrator has disabled public write access.

Resolved: PostTelemac import gdal error 3 years 4 months ago #38817

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Hi Sebastian,

I fix this (and few other issues) on a local repo, I will PR a fix in next days.
The administrator has disabled public write access.

Resolved: PostTelemac import gdal error 3 years 4 months ago #38818

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
The administrator has disabled public write access.

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.