DLL load failed while importing opensees

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
mohammmad
Posts: 45
Joined: Tue Aug 21, 2018 4:10 am
Contact:

DLL load failed while importing opensees

Post by mohammmad » Thu Aug 20, 2020 6:21 am

I try to run an example of the openseespy. I have installed openseespy. I use python 3.8.5
I got the following error:

from openseespy.opensees.win.py38.opensees import *
ImportError: DLL load failed while importing opensees: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Example4a.py", line 25, in <module>
import openseespy.opensees as op
File "C:\Users\meach\AppData\Roaming\Python\Python38\site-packages\openseespy\opensees\__init__.py", line 39, in <module>
raise RuntimeError(
RuntimeError: Failed to import openseespy on Windows for Python 3.8

mhscott
Posts: 874
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: DLL load failed while importing opensees

Post by mhscott » Thu Aug 20, 2020 7:42 am

Have you upgraded openseespy to 3.2.2.3? If you're using 3.2.2.1, it will not work with Python 3.8.

mohammmad
Posts: 45
Joined: Tue Aug 21, 2018 4:10 am
Contact:

Re: DLL load failed while importing opensees

Post by mohammmad » Thu Aug 20, 2020 11:06 pm

Yes, I updated openseespy.
Note: I use Notepad++ for running pyhthon code

mhscott
Posts: 874
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: DLL load failed while importing opensees

Post by mhscott » Fri Aug 21, 2020 9:52 am

Do you get the same error if you import openseespy from an Anaconda environment instead of Notepad++?

Post Reply