I am using dynamo sandbox 3.4 and it uses python 3.9.12
i recently downloaded the opensees
when i am trying to import the package it says “Failed to import openseespy on Windows”
Lots of python modules have to be installed in specific ways, therefore did you install it in the official method that OpenSeeSpy indicate?
If not then follow the post somewhere on the forum for how to utilise PIP in dynamo to install a module.
See discussion here Using matplotlib in dynamo to create images for Openseespy and Opsvis and How to install Python modules in Dynamo Core Runtime 2.8.0? - #80 by Mike.Buttery
@Mike.Buttery @Brendan_Cassidy
thank you for your response
i did what the openseespy installation requirements want but it returned different error
it says python 3.10 is needed
while i checked cpython 3 is using python 3.9.12
is there any workaround or upgrading python for dynamo to run this package on dynamo
Think you need to use an olderversion of OpenSeesPy. Their GitHub indicates they work with Python versions as far back as 3.4.
thanks a lot
that worked well
for anyone how is reading this comment at the time i am writing this,
the latest version of python for dynamo is 3.9.12
the latest version of openseespy you can work on is 3.4.0.8 (for dynamo)
you need the following steps
install python 3.9.0 for windows (insure that this is the current version in your system)
write in cmd the following code
pip install openseespy==3.4.0.8
the package should be successfully installed and you need to get its path ,again write in cmd the following code
pip -v list
copy the path for openseespy 3.4.0.8
add the path in your python node (in dynamo) with the following code after importing sys
sys.path.append(r’PUT HERE THE COPPIED PATH’)
in file explorer go to this path open the openseespywin folder (which is inside this path)
open the file named init.py
replace line number 14 with the following code (pay attention to not deleting existing spaces before code)
if ‘Tcl86’ in path:
download and install tcl86 from the following link
add the path of tcl86 to your dynamo python script
sys.path.append(r’C:\Users(YOUR COMPUTER NAME)\AppData\Local\Apps\Tcl86\bin’)
and i hope anyone who want to integrate opensees into revit best wishes
so far the above workflow i suffered to understand for 1 week until i successfully imported openseespy in my dynamo python node