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 OverflowError: long too big to convert #14

Open
pintokoaji opened this issue Mar 13, 2019 · 2 comments
Open

subprocess OverflowError: long too big to convert #14

pintokoaji opened this issue Mar 13, 2019 · 2 comments

Comments

@pintokoaji
Copy link

Hi, I'm trying to use the find_coefficients method from xfoil_module. But I faced this error :

<type 'float'>

Traceback (most recent call last):
  File "C:/Users/PINTO ASU PETHUK/Desktop/TugasAkhir/pinto.py", line 2, in <module>
    find_pressure_coefficients(airfoil='naca0012', Reynolds = 1e6, alpha=12.,NACA=True)
  File "C:/Users/PINTO ASU PETHUK/Desktop/TugasAkhir\xfoil_module.py", line 853, in find_pressure_coefficients
    NACA=NACA, PANE=PANE)
  File "C:/Users/PINTO ASU PETHUK/Desktop/TugasAkhir\xfoil_module.py", line 207, in call
    startupinfo = startupinfo)
  File "C:\Python27\lib\subprocess.py", line 386, in __init__
    errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
  File "C:\Python27\lib\subprocess.py", line 536, in _get_handles
    c2pwrite = self._make_inheritable(c2pwrite)
  File "C:\Python27\lib\subprocess.py", line 570, in _make_inheritable
    _subprocess.DUPLICATE_SAME_ACCESS)
OverflowError: long too big to convert

Here's my source code :

from xfoil_module import find_coefficients
find_coefficients(airfoil='naca0012',alpha=12.)

I need it to work for my thesis :(

Thanks!

@leal26
Copy link
Owner

leal26 commented Mar 16, 2019

Hello,

I do not have this error on my computer. Could you provide more information regarding your install, OS, and where you are running this? Just from the Error message, I am not able to figure out what the problem is. I am using Python 3.7 on Windows OS.

Thanks,

Pedro

@pintokoaji
Copy link
Author

Hi,

I'm sorry, but i think that you use Python 2.7 in your programs. And now I have new problem with your print syntax without using "()" after print.

Thanks!
Pinto

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

2 participants