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

Doesn't work on Cygwin either #51

Open
Sushanti99 opened this issue May 31, 2019 · 1 comment
Open

Doesn't work on Cygwin either #51

Sushanti99 opened this issue May 31, 2019 · 1 comment
Labels

Comments

@Sushanti99
Copy link

Sushanti99 commented May 31, 2019

Hey! I tried installing Cygwin and running a code with error but I get the same message that I was getting while running it on PowerShell. The error looks like this:

$ rebound error.py
Traceback (most recent call last):
  File "c:\anaconda_3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda_3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Anaconda_3\Scripts\rebound.exe\__main__.py", line 9, in <module>
  File "c:\anaconda_3\lib\site-packages\rebound\rebound.py", line 856, in main
    output, error = execute([language] + file_path) # Compiles the file and pipes stdout
  File "c:\anaconda_3\lib\site-packages\rebound\rebound.py", line 170, in execute
    bufsize=1
  File "c:\anaconda_3\lib\subprocess.py", line 624, in __init__
    "close_fds is not supported on Windows platforms"
ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr

Any solution to this?

@UchihaSR
Copy link

UchihaSR commented Aug 27, 2019

Change the value of close_fds=True to close_fds=(sys.platform != 'win32') which is inside th rebound.py

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

No branches or pull requests

3 participants