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

[Bug] ProcessLookupError on CLI command from quickstart #7005

Open
fleimgruber opened this issue Jan 18, 2025 · 3 comments
Open

[Bug] ProcessLookupError on CLI command from quickstart #7005

fleimgruber opened this issue Jan 18, 2025 · 3 comments

Comments

@fleimgruber
Copy link

fleimgruber commented Jan 18, 2025

Describe the bug

Python traceback after CLI command from quickstart.

To Reproduce

  1. openbb
  2. equity RET
  3. price RET
  4. historical --symbol SPY --start_date 2024-01-01 --provider yfinance

Screenshots

2025 Jan 18, 06:41 (🦋) /equity/price/ $ historical --symbol SPY --start_date 2024-01-01 --provider yfinance


2025 Jan 18, 06:41 (🦋) /equity/price/ $ Exception in callback Process.terminate()
handle: <Handle Process.terminate()>
Traceback (most recent call last):
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/subprocess.py", line 140, in terminate
    self._transport.terminate()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/base_subprocess.py", line 149, in terminate
    self._check_proc()eturn to previous menu    [e] exit the program    [cmd -h] see usage and available options    Price (cmd/menu) Documentation
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/base_subprocess.py", line 142, in _check_proc
    raise ProcessLookupError()
ProcessLookupError
Exception in callback Process.kill()
handle: <Handle Process.kill()>
Traceback (most recent call last):
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/subprocess.py", line 143, in kill
    self._transport.kill()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/base_subprocess.py", line 153, in kill
    self._check_proc()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/base_subprocess.py", line 142, in _check_proc
    raise ProcessLookupError()
ProcessLookupError
Exception in thread Thread-3 (run):
Traceback (most recent call last):
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/site-packages/pywry/core.py", line 349, in run_backend
    await self.runner.stdin.drain()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/streams.py", line 371, in drain
    await self._protocol._drain_helper()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/streams.py", line 167, in _drain_helper
    raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/site-packages/pywry/core.py", line 384, in run
    asyncio.run(self.run_backend())
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/site-packages/pywry/core.py", line 358, in run_backend
    await self.run_backend()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/site-packages/pywry/core.py", line 339, in run_backend
    await self.runner.stdin.drain()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/streams.py", line 371, in drain
    await self._protocol._drain_helper()
  File "/home/pbz/micromamba/envs/obb/lib/python3.10/asyncio/streams.py", line 167, in _drain_helper
    raise ConnectionResetError('Connection lost')
ConnectionResetError: Connection lost

Desktop (please complete the following information):

  • OS: NixOS 24.11
  • Python version: 3.10

Additional context

Installed from source using micromamba for env creation and installed via python dev_install.py -e --cli.

@deeleeramone
Copy link
Contributor

deeleeramone commented Jan 20, 2025

Hi, thanks for this. We can't directly support this OS, specifically, but did you also install the Linux-specific components?

https://docs.openbb.co/cli/installation#linux-requirements

Additionally, CLI is not really suitable for VMs or Docker.

@fleimgruber
Copy link
Author

Thanks for checking back.

I would look into it myself, but I don't get any promising lead from the traceback - I would not even know where to begin, probably starting from the pywry dependency? Regarding Linux-specific components: Yes, Rust and Webkitgtk are both installed system-wide.

CLI is not really suitable for VMs or Docker.

Thanks for mentioning. Just to be clear, I am not running this in a VM or Docker.

@deeleeramone
Copy link
Contributor

It's going to be something related to PyWry - window creation - or environment contamination via $PATH priorities of Python libraries and executables

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