Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subprocess issue #13

Open
benoitpaillard opened this issue Feb 8, 2019 · 2 comments
Open

subprocess issue #13

benoitpaillard opened this issue Feb 8, 2019 · 2 comments

Comments

@benoitpaillard
Copy link

Hi all,

I'm getting the crash

AttributeError: module 'subprocess' has no attribute 'STARTUPINFO'

when running

find_coefficients(airfoil='naca0012',alpha=12.)

Any idea ? Thanks !

@leal26
Copy link
Owner

leal26 commented Feb 10, 2019

Based on a quick Google search, I found the reason here. STARTUPINFO is only available in Windows. If you are using Linux OS, comment that line and rerun it.

Hopefully, it works

@carlsondev
Copy link

I've found the best way is to replace the ps declaration in xfoil_module.py to " ps = sp.Popen(['/path/to/xfoil'],
stdin=sp.PIPE,
stdout=sout,
stderr=None,
encoding='utf8')" if you are using macOS or Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants