[Import PRISMA L1 algo] problem with new h5py version in OSGeo4W

Issue #1317 resolved
Andreas Rabe created an issue

Reported by @Matthias Wocher .

Traceback (most recent call last):

  File "E:\Repositories\enmap-box\enmapboxprocessing\algorithm\importprismal1algorithm.py", line 410, in utilsReadAsArray

    import h5py

  File "D:\OSGeo4W\apps\qgis\python\qgis\utils.py", line 888, in _import

    mod = _builtin_import(name, globals, locals, fromlist, level)

  File "D:\OSGeo4W\apps\Python39\lib\site-packages\h5py\__init__.py", line 33, in <module>

    from . import version

  File "D:\OSGeo4W\apps\qgis\python\qgis\utils.py", line 888, in _import

    mod = _builtin_import(name, globals, locals, fromlist, level)

  File "D:\OSGeo4W\apps\Python39\lib\site-packages\h5py\version.py", line 15, in <module>

    from . import h5 as _h5

  File "D:\OSGeo4W\apps\qgis\python\qgis\utils.py", line 888, in _import

    mod = _builtin_import(name, globals, locals, fromlist, level)

  File "h5py\h5.pyx", line 1, in init h5py.h5

  File "D:\OSGeo4W\apps\qgis\python\qgis\utils.py", line 888, in _import

    mod = _builtin_import(name, globals, locals, fromlist, level)

ImportError: DLL load failed while importing defs: Die angegebene Prozedur wurde nicht gefunden.

Comments (2)

  1. Andreas Rabe reporter

    I also have a problem, but I get a different error:

    Traceback (most recent call last):
      File "D:\source\QGISPlugIns\enmap-box\enmapboxprocessing\algorithm\importprismal1algorithm.py", line 411, in utilsReadAsArray
        with h5py.File(filename, 'r') as file:
      File "C:\QGIS\apps\Python39\lib\site-packages\h5py\_hl\files.py", line 406, in __init__
        fid = make_fid(name, mode, userblock_size,
      File "C:\QGIS\apps\Python39\lib\site-packages\h5py\_hl\files.py", line 173, in make_fid
        fid = h5f.open(name, flags, fapl=fapl)
      File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
      File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
      File "h5py\h5f.pyx", line 88, in h5py.h5f.open
    OSError: Unable to open file (file close degree doesn't match)
    

  2. Log in to comment