Hi,
I have the same problem. Everytime I run the BWB.py tutorial I get the message "VSP import failed". I am using SUAVE 2.4.0 and already tested it with OpenVSP 3.24 (with python 3.9) as well as OpenVSP 3.25 (with python 3.6).
The conda environment vsppytools is activated. SUAVE and OpenVSP are listed there (by "conda list") and can be imported to Python.
My normal procedure is as follow:
- activate vsppytools
- navigate to: C:\Users\..\Documents\06_SUAVE\Tutorials-2.4.0\BWB_CFD
- run file: python BWB.py
C:\..\OpenVSP-3.25.0-win64\python\openvsp\openvsp
When running it there, I get the following message:
Reseting OpenVSP Model in Memory
VSPAERO solver not found in C:\ProgramData\Miniforge3\envs\vsppytools.
VSPAERO viewer not found in C:\ProgramData\Miniforge3\envs\vsppytools.
VSPAERO slicer not found in C:\ProgramData\Miniforge3\envs\vsppytools.
Writing main_wing to OpenVSP Model
Writing horizontal_stabilizer to OpenVSP Model
Writing vertical_stabilizer to OpenVSP Model
Writing turbofan to OpenVSP Model
Traceback (most recent call last):
File "C:\ProgramData\Miniforge3\envs\vsppytools\lib\site-packages\suave-2.4.0-py3.6.egg\SUAVE\Core\Data.py", line 59, in __getattribute__
return dictgetitem(self,k)
KeyError: 'inlet_diameter'
I know that's not the way to go ;) But it seems like SUAVE is now able to import VSP.
Has anyone an idea to fix it? Is my normal procedure the correct way?
best regards,
Sam