Closed enritoomey closed 7 years ago
Thanks for taking the time to mention the issue. The executables are a bit of a mess, as you need different ones for every platform... ideally xfoil is compiled from source, but that would be another mess altogether, and would add dependencies on compilers.
A good short-term solution would be to detect the operating system and then choose the correct binary, should be pretty easy. I currently have a million other projects going on but if anyone is interested in implementing this, feel free :)
@enritoomey You may have a try by changing the following line of Xfoil class in xfoil.py
self.xfinst = subp.Popen(os.path.join(path, 'xfoil'), stdin=subp.PIPE, stdout=subp.PIPE, stderr=subp.PIPE)
to:
self.xfinst = subp.Popen(os.path.join(path, 'xfoil.exe'), stdin=subp.PIPE, stdout=subp.PIPE, stderr=subp.PIPE)
I encountered the same problem(say not a valid win32..) and fixed this but now some other problems show
I've submitted a pull request to select binary by OS.
Nice work, thanks! Merged it.
i was checking your project, running
example_naca4_drag.py
in my windows machine when i got the following error:The problem was solved by changing the executable name in init() module of Xfoil class from
xfoil
toxfoil.exe
. I'm using W10 os.