-
Notifications
You must be signed in to change notification settings - Fork 3
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
Failed mumps.mumps_context import #1
Comments
Does |
Here's the output: Only the first link looks a little out of place. |
I have tested installing This is a path problem. If you move away from MUMPS.py source directory and try: python -c "from mumps.mumps_context import MUMPSContext" then it is working. I need to find a way of make the tests pass. Maybe I'll switch to |
|
I can confirm your fix. If I run the tests away from the source directory, e.g., MUMPS.py/tests/test_mumps_with_cysparse.py ssssssssssssssssssssssssssss I think there's still some work to do in setting up the tests correctly for pytest. |
What do you mean? ======================================= test session starts =======================================
platform linux2 -- Python 2.7.12, pytest-3.0.3, py-1.4.31, pluggy-0.4.0
rootdir: /media/syarra/DATAPART1/work/.virtualenvs/NLP.py/programs/MUMPS.py, inifile:
collected 56 items
tests/test_mumps_with_cysparse.py ............................
tests/test_mumps_with_numpy.py ............................
==================================== 56 passed in 0.81 seconds ==================================== Isn't it for you? |
It might be a bad build or merge on my end. Let me get back to you... |
Should I be testing on the master branch or the develop branch? The mumps_context.py file seems to have gone missing in the master branch. EDIT: I just did a clean clone and build of the master branch and the error I get now is "No module named mumps_context", which is why I'm asking. |
Ok try is now on |
I get the same issue as the original message. (I even upgraded to pytest 3.0.3 so our module versions are identical.) I'm also running it in a virtual environment so I don't know what's going on. UPDATE: I can import the module if I go to the folder where it is stored, but as soon as I leave that folder, the import fails. Maybe it's the order in which the paths are being checked? |
I'm compiling and installing MUMPS.py under Ubuntu 16.04 and the Anaconda Python distribution. The code builds and installs without issue, and "import mumps" succeeds in the python shell, but both unit tests fail with the following error:
mumps/mumps_context.py:6: in
from mumps.src.numpy_mumps_INT32_COMPLEX64 import NumpyMUMPSSolver_INT32_COMPLEX64
E ImportError: No module named numpy_mumps_INT32_COMPLEX64
The numpy_mumps_INT32_COMPLEX64.so library is available in the installed python egg, but the import still fails. I suspect it's something in the build process, but it's hard to pinpoint at the moment. Any suggestions would be helpful.
The text was updated successfully, but these errors were encountered: