Reputation: 11
File "C:\Users\Narahari\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/D_volume_ADE/Aircraft_Design_course/MDO_Aerospace/OpenAeroStruct-master/openaerostruct/examples/run_aerostruct_uCRM_multipoint.py", line 28, in from openmdao.api import IndepVarComp, Problem, ScipyOptimizeDriver, pyOptSparseDriver, SqliteRecorder, ExecComp, SqliteRecorder
ImportError: cannot import name 'pyOptSparseDriver' from 'openmdao.api' (C:\Users\Narahari\Anaconda3\lib\site-packages\openmdao\api.py)
Not sure what is going wrong, any help will be greatly appreciated Thanks in advance Narahari
Upvotes: 0
Views: 87
Reputation: 5710
it looks like example requires pyoptsparse to run. You need to install pyoptsparse from here. However, the latest master branch of OpenAeroStruct has updated this example to not require that driver, using the scipy driver instead. So if you pull down the commit #8cee773 or newer you should be able to run it.
Upvotes: 0