OpenSeesPy icon indicating copy to clipboard operation
OpenSeesPy copied to clipboard

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

Open ChuandongXie opened this issue 1 year ago • 5 comments

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

ChuandongXie avatar Nov 04 '23 06:11 ChuandongXie

upgrade to 3.11

zhuminjie avatar Nov 04 '23 16:11 zhuminjie

upgrade to 3.11

Same results. Still not working.

image

ChuandongXie avatar Nov 05 '23 07:11 ChuandongXie

Does it work now? We have published newer version.

zhuminjie avatar Dec 20 '23 00:12 zhuminjie

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!

felipecordero avatar May 24 '24 01:05 felipecordero

Does it work now? We have published newer version.

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

image

ChuandongXie avatar May 25 '24 05:05 ChuandongXie