Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while import a python package called h5py #61

Open
minguyen1984 opened this issue Mar 14, 2023 · 2 comments
Open

Error while import a python package called h5py #61

minguyen1984 opened this issue Mar 14, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@minguyen1984
Copy link

Good morning,
I try to use C++ demo20 to test the import of lib H5PY but I have the following message from console when I execute these lines;
"import os
import time
import copy
import numpy as np
np.set_printoptions(precision=6, threshold=20, suppress=True, linewidth=100)

import h5py"

Error message is:
Traceback (most recent call last):
File "", line 7, in
File "C:\Anaconda3\lib\site-packages\h5py_init_.py", line 33, in
from . import version
File "C:\Anaconda3\lib\site-packages\h5py\version.py", line 15, in
from . import h5 as _h5
File "h5py\h5.pyx", line 1, in init h5py.h5
ImportError: DLL load failed while importing defs: La procédure spécifiée est introuvable.

Any idea on how to fix it please?

@lmbelo lmbelo self-assigned this Mar 29, 2023
@lmbelo lmbelo added the question Further information is requested label Mar 29, 2023
@lmbelo
Copy link
Member

lmbelo commented Mar 29, 2023

Did you set the Python engine correctly?

@minguyen1984
Copy link
Author

Hi @lmbelo, As I used directly the demo20, the engine is set correctly. There is no import issue when I load only "numpy" or with another python package i used. I knew there is an issue with scientific python lib so i applied the function "MaskFPUExceptions(true);".

The problem concerns clearly "h5py".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants