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

Auth and such are using subprocesses that invoke cmd and tasklist, so windows only. #2

Open
automata-studio opened this issue Jan 24, 2022 · 5 comments

Comments

@automata-studio
Copy link

automata-studio commented Jan 24, 2022

Are there no options to use this library on mac / UNIX?
Or do I have to change all the subprocess windows commands to UNIX equivalents?

e.g. FileNotFoundError: [Errno 2] No such file or directory: 'tasklist' when trying to see if there is an active running gateway...

Kind regards,
Kristof

@automata-studio
Copy link
Author

If you want I extend this on another branch and open a PR for you....

@maxwhoppa
Copy link

Also running into this issue, would love that pr

@Cass0wary
Copy link

Hi @areed1192 I just hit this issue, should this work with osx?

J$ python3 test.py 
Traceback (most recent call last):
  File "/Users/username/Documents/python/ibkr/interactive-brokers-api/test.py", line 29, in <module>
    auth_service.login()
  File "/Users/username/Documents/python/ibkr/interactive-brokers-api/ibc/utils/auth.py", line 47, in login
    is_running_response = self._is_already_running()
  File "/Users/username/Documents/python/ibkr/interactive-brokers-api/ibc/utils/auth.py", line 90, in _is_already_running
    content = subprocess.run(
  File "/usr/local/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'tasklist'

@TomsonReuters
Copy link

Hey! I've got the same issue, anyone know how to change all the subprocess commands? Thanks!

@awebisam
Copy link

I didn't see any PR for posix support so, I created it myself.
Do check it out. I understand it was way back in the past so, might not be relevant to you anymore.
#6

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

5 participants