- changed title to DLL ImportError for h5py
-
assigned issue to
- edited description
DLL ImportError for h5py
h5py is an optional dependency required for reading PRISMA products.
Installing h5py via the EnMAP-Box PIP Package Installer causes problems unter QGIS for Windows.
- You need to manually delete the PIP installation of h5py from your user folder, e.g.
C:\Users\USER\AppData\Roaming\Python\Python39\site-packages\h5py - Run the OSGeo4W Setup and install h5py package:
Comments (17)
-
reporter -
reporter In future versions of the EnMAP-Box, the h5py installation via PIP will be blocked:
-
I have installed the h5py package since the Osgeo4w Shell setup but when I go to the Appdata folder I can’t find the installed folder and so it always gives me the same error (DLL ImportError for h5py) when I try to convert data to enmapbox.
-
reporter Hi Giuseppe,
let’s have a video call with shared-screen for getting this solved. Just write me an email (andreas.janz@geo.hu-berlin.de).
-
As you can see from the second image, it is still the old installation of the h5py package. The newly installed folder from the setup does not appear.
-
reporter You need to manually delete the h5py folder here:
Have you done that?
-
Should I delete it before installing the new h5py package ?
-
reporter It doesn’t matter. This version of h5py was created by the EnMAP-Box PIP Installer, which causes all the problems. Just delete this folder:
The OSGeo4W Setup installs h5py into another folder below your QGIS folder, e.g.
C:\QGIS3.22\apps\Python39\lib\site-packages\h5pyNow your QGIS should use the correct h5py version. You can check this in the QGIS Python Console:
-
Perfect, I managed to solve. I really thank you very much for your help. You were very kind.
-
reporter You are very wellcome .
And also, solving Python dependencies in QGIS can be very frustrating from time to time -
Yes, I notice that.
-
Hi Andreas,
I am also struggling with this issue. I have deleted the h5py map from Appdata\Roaming\Python\Python39\site-packages\. Then, I used the OSGeo shell to reïnstall it. I checked it with the Python Console in QGIS:
Which shows it is installed in the right location. However, when I try to load PRISMA data, I still get an error:
(QGIS 3.22.3, EnMAP-Box 3 3.920211123T125541)
-
reporter Oh no, you are one of the rare cases, where even this workaround fails.
I changed the PRISMA IO for the next release. If you want to test it:
https://bitbucket.org/hu-geomatics/enmap-box/downloads/enmapboxplugin.3.10.0.20220222T163058.TEST.zip
-
reporter - changed status to resolved
-
Hi Andreas,
I have the same problem as Tom Flipsen when I try to load PRISMA data. The source you linked is no longer available. Could you help me in some way?
Thanks in advance!
Gabriele
-
The source you linked is no longer available.
Please update to QGIS 3.28, install the EnMAP-Box v3.11 and try again.
-
Ok, I have no more errors by importing PRISMA L2D with QGIS 3.28 and EnMAP-Box v3.11
Thank you very much for your help!
- Log in to comment