-
Notifications
You must be signed in to change notification settings - Fork 51
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
test_ndarray fails in anaconda #25
Comments
I have not encountered this problem yet, thanks for posting the issue. It's strange that it fails in the second case, probably an import error? I assume that you did Maybe for debugging purposes you can try to replace the Does ignoring Python warnings help? with Which OS and anaconda version are you using? Maybe I can reproduce the error somehow. |
I am using conda 4.8.3 on CentOS-7. In conda I have the pygimli environment activated. Numpy version is 1.18.5. Ignoring Python warnings did not help. I am pasting the full error message after replacing ./test_ndarray During handling of the above exception, another exception occurred: Traceback (most recent call last): IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for We have compiled some common reasons and troubleshooting tips at:
Please note and check the following:
and make sure that they are the versions you expect. Original error was: /home/user/miniconda3/envs/pg/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-x86_64-linux-gnu.so: undefined symbol: PyExc_RecursionError |
Could be a problem with the anaconda install. It looks like libpythonX.Y is not loaded (see [1]). [1] https://stackoverflow.com/questions/49784583/numpy-import-fails-on-multiarray-extension-library-when-called-from-embedded-pyt |
This is the output of You are right libpythonX.Y is not loaded. I added the path to libpython3.so to Thanks for your help. |
Glad that it worked. Which link command did you use in the end? |
I only changed
Linking |
Thanks for sharing. I compared the output of |
Adding the additional flags also works for me. |
I am getting some errors when running tests in linux with anaconda.
I solved the lto-wrapper error by updating the conda base environment. However, I get the following error
./test_ndarray
/home/user/miniconda3/lib/python3.7/site-packages/numpy/init.py:140: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
from . import _distributor_init
Initialisation of forpy failed!!! Can not test. Errorcode = 2
mkl-service is installed and importing numpy in a script works.
in a not updated conda environment with a version of numpy that does not use mkl-service, I need to use -fno-lto to solve the lto-wrapper problem. However I still get the error:
./test_ndarray
Initialisation of forpy failed!!! Can not test. Errorcode = 2
None of the previous tests fails in both cases.
The text was updated successfully, but these errors were encountered: