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

Linux: opensees.so: cannot open shared object file: No such file or directory #123

Open
ChuandongXie opened this issue Nov 4, 2023 · 5 comments

Comments

@ChuandongXie
Copy link
Contributor

I tried to use openseespy in ubuntu via an anaconda environment with python version of 3.10. The openseespy was installed by
pip install openseespy
and there is openness.so in theopenseespylinux folder.

However, when I import openseespy.opensees, an error message appeared:

>>> import openseespy.opensees as op
Traceback (most recent call last):
  File "/home/[user]/anaconda3/envs/py310/lib/python3.10/site-packages/openseespylinux/__init__.py", line 12, in <module>
    from openseespylinux.opensees import *
ImportError: /home/[user]/anaconda3/envs/py310/lib/python3.10/site-packages/openseespylinux/opensees.so: 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 "/home/[user]/anaconda3/envs/py310/lib/python3.10/site-packages/openseespy/opensees/__init__.py", line 11, in <module>
    from openseespylinux.opensees import *
  File "/home/[user]/anaconda3/envs/py310/lib/python3.10/site-packages/openseespylinux/__init__.py", line 14, in <module>
    raise RuntimeError('Failed to import openseespy on Linux.')
RuntimeError: Failed to import openseespy on Linux.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/[user]/anaconda3/envs/py310/lib/python3.10/site-packages/openseespy/opensees/__init__.py", line 14, in <module>
    raise RuntimeError('Failed to import openseespy on Linux.')
RuntimeError: Failed to import openseespy on Linux.
>>> 

I used print(os.path.isfile(/home/[user]/anaconda3/envs/py310/lib/python3.10/site-packages/openseespylinux/opensees.so)) and the return was true. The installed openseespy version is 3.5.1.3. How to resolve this problem?

Below is the screenshot.
image

@zhuminjie
Copy link
Owner

upgrade to 3.11

@ChuandongXie
Copy link
Contributor Author

upgrade to 3.11

Same results. Still not working.

image

@zhuminjie
Copy link
Owner

Does it work now? We have published newer version.

@felipecordero
Copy link

felipecordero commented May 24, 2024

Hi everyone and thank you very much for this library. It is running without any problem for me, but I would like to know if are you going to do a new release soon? I would like to be able to use save and restore for ShellDKT elements (it was added some weeks ago to the OpenSees repo).

Thank you very much in advance!

@ChuandongXie
Copy link
Contributor Author

Does it work now? We have published newer version.

It's python 3.12 now, but the same results.

image

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

No branches or pull requests

3 participants