Hello everyone, I have a new-bee question for you.
I am trying to use a fortran wrapper code given in https://github.com/daniel-de-vries/xfoil-python
This code take an old and well respected code (Xfoil by Prof. Mark Drela) which is written in Fortran and makes it available for Python.
Suggested building tool is MinGW-Fortran, but I like to do it by Intel Fortran -ifort.
I think I was successful in building it by either CMAKE or VS19 using ifort .
However, when I tried to use it I got following error:
>>> from xfoil import XFoil >>> xf = XFoil() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\site-packages\xfoil\xfoil.py", line 56, in __init__ self._lib = cdll.LoadLibrary(self._lib_path) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\ctypes\__init__.py", line 443, in LoadLibrary return self._dlltype(name) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\Lib\ctypes\__init__.py", line 365, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found
It looks like it cant find a related DLL file.
But I am pretty sure I put all the related folders in my PATH and PYTHONPATH.
Could this be related to the differences between ifort and MinGW-Fortran? if so, is it fixable? or should I proceed with MinGW-Fortran as suggesed?