Skip to content

[Bug] PyWry WebView Fails to Launch on Ubuntu 24.04 #7148

@shugaoye

Description

@shugaoye

Describe the bug

When launching a visualization from OpenBB Terminal (e.g., equity charts), an error occurs when trying to open the WebView window using PyWry. The application fails to display visualizations and crashes silently, with several exceptions logged in the console.

This behavior is observed on Ubuntu 24.04, Python 3.12.


Command that caused the error

/equity/fundamental/load --symbol AAPL
/equity/fundamental/overview

Or any command that triggers a WebView chart.


Error traceback

Exception in callback Process.terminate()
handle: <Handle Process.terminate()>
Traceback (most recent call last):
  File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/lib/python3.12/asyncio/subprocess.py", line 143, in terminate
    self._transport.terminate()
  File "/usr/lib/python3.12/asyncio/base_subprocess.py", line 149, in terminate
    self._check_proc()
  File "/usr/lib/python3.12/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):
  ...
  raise ProcessLookupError()
ProcessLookupError

Exception in thread Thread-6 (run):
Traceback (most recent call last):
  File "/home/openbb/.venv/lib/python3.12/site-packages/pywry/core.py", line 349, in run_backend
    await self.runner.stdin.drain()
  ...
ConnectionResetError: Connection lost

Expected behavior

WebView window should launch successfully and display the requested visualization (chart, table, dashboard).


Environment (please complete the following information):

  • OS: Ubuntu 24.04
  • Python version: 3.12
  • OpenBB version: 4.4.4
  • PyWry version: 0.6.2
  • Installation method: pip
  • Running in headless mode? No

✅ Steps to Reproduce

  1. Install OpenBB on Ubuntu 24.04
  2. Launch terminal and activate .venv
  3. Navigate to /equity/fundamental/ or another module that uses WebView
  4. Run a visualization command
  5. Observe crash and exception tracebacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions