-
Notifications
You must be signed in to change notification settings - Fork 67
Description
I am having an issue when initializing an XFoil object, after a successful installation of the package. Here is the error:
from xfoil import XFoil
xf = XFoil()
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Guido\anaconda3\envs\optCourse36\lib\site-packages\xfoil\xfoil.py", line 56, in init
self._lib = cdll.LoadLibrary(self.lib_path)
File "C:\Users\Guido\anaconda3\envs\optCourse36\lib\ctypes_init.py", line 426, in LoadLibrary
return self.dlltype(name)
File "C:\Users\Guido\anaconda3\envs\optCourse36\lib\ctypes_init.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
Any idea what could be causing it? I have cmake and Mingw installed and in Path. The installation was successful both using pip install xfoil or from the Github repository, but always lead to the same error. I tried python versions 3.6, 3.7 and 3.8, always with the same result.
How can I fix it?
Thanks,
Guido