python openvsp-xfoil collab installation

58 views
Skip to first unread message

Omer Kandemir

unread,
Apr 16, 2025, 7:44:52 AM4/16/25
to OpenVSP
Hi everyone,

I'm trying to create new python environment with openvsp and xfoil. My idea was to include xfoil in install_reqs of setup.py as follows:

install_requires=["numpy", "matplotlib","scipy","vtk","sympy","openpyxl","xfoil"]

Unfortunately xfoil library only works with python 3.7 and when I try to change the python version in environment.yml from 3.11 to 3.7 I get the following error:

 Building wheel for wxPython (setup.py) ... error

Has anyone tried this before and was able to successfully install it? 

Thank you for your answers in advance.

Rob McDonald

unread,
Apr 16, 2025, 11:53:23 AM4/16/25
to OpenVSP
The wxPython requirement comes from vtk.  Depending on what you're doing, you might not actually need that.

I'd suggest you remove the vtk dependency and try again.

Rob

Omer Kandemir

unread,
Apr 17, 2025, 3:33:47 AM4/17/25
to OpenVSP
Hi Rob,

Thank you for the quick reply. Unfortunately I'm using vtk too. When I try the installation with wxPython==4.0.4, the environment is initialized without errors. However, this version of  wxPython, neither spyder nor jupyter is working. 

Rob McDonald

unread,
Apr 17, 2025, 12:23:31 PM4/17/25
to OpenVSP
I think you've identified this as not an OpenVSP problem.

Rob
Reply all
Reply to author
Forward
0 new messages