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

VisIt 3.4.2 Ubuntu 24 Install Failed to import numpy #20189

Open
JustinPrivitera opened this issue Jan 14, 2025 · 3 comments
Open

VisIt 3.4.2 Ubuntu 24 Install Failed to import numpy #20189

JustinPrivitera opened this issue Jan 14, 2025 · 3 comments
Labels
bug Something isn't working impact medium Productivity partially degraded (not easily mitigated bug) or improved (enhancement) likelihood medium Neither low nor high likelihood

Comments

@JustinPrivitera
Copy link
Member

I installed using the 3.4.2 ubuntu 24 release tarball and the visit install script.

I see this when I run in CLI mode and attempt to import numpy:

$ /usr/local/visit/bin/visit -nowin -cli
Running: cli3.4.2 -nowin
Running: viewer3.4.2 -nowin -noint -host 127.0.0.1 -port 5600
>>> import numpy
Traceback (most recent call last):
  File "/usr/local/visit/3.4.2/linux-x86_64/lib/python/lib/python3.9/site-packages/numpy/core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/usr/local/visit/3.4.2/linux-x86_64/lib/python/lib/python3.9/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/usr/local/visit/3.4.2/linux-x86_64/lib/python/lib/python3.9/site-packages/numpy/core/overrides.py", line 8, in <module>
    from numpy.core._multiarray_umath import (
ImportError: libblas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/visit/3.4.2/linux-x86_64/lib/python/lib/python3.9/site-packages/numpy/__init__.py", line 139, in <module>
    from . import core
  File "/usr/local/visit/3.4.2/linux-x86_64/lib/python/lib/python3.9/site-packages/numpy/core/__init__.py", line 49, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.9 from "/usr/bin/python3"
  * The NumPy version is: "1.25.1"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libblas.so.3: cannot open shared object file: No such file or directory

>>>
@JustinPrivitera JustinPrivitera added bug Something isn't working likelihood medium Neither low nor high likelihood impact medium Productivity partially degraded (not easily mitigated bug) or improved (enhancement) labels Jan 14, 2025
@JustinPrivitera
Copy link
Member Author

importing numpy works fine with an install of 3.4.1 using the ubuntu 22 tarball. I suspect something is wrong with the ubuntu 24 3.4.2 release tarball.

@cyrush
Copy link
Member

cyrush commented Jan 14, 2025

Do you have libblas installed on your system? I don't think we bundle blas.

@JustinPrivitera
Copy link
Member Author

I do not have libblas. Why would 3.4.1 work without it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working impact medium Productivity partially degraded (not easily mitigated bug) or improved (enhancement) likelihood medium Neither low nor high likelihood
Projects
None yet
Development

No branches or pull requests

2 participants