You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to build a headless for the CLI on MacOS, Claude Code highlighted the following:
The build failed on pywry — that's the charting GUI backend (a Rust/maturin package with no Linux-aarch64 wheel). It's pulled in by openbb-charting via the [all] extra. Since charting opens GUI windows and can't work in a headless container anyway (I'd flagged this), the right fix is to exclude charting and install the data/analysis extensions explicitly. Let me update the Dockerfile.
Edited 2 files
Now rebuild. The base image and apt layers are cached, so this is mainly the pip install.
Ran a command, used a tool
Rebuilding without the charting/pywry dependency. I'll verify the image and run the Terminal once it finishes.
Ran
Check rebuild result and image size
Still pywry — so it's a dependency of openbb-cli itself, not just charting. Let me confirm where it comes from.
Ran
Find which package requires pywry
openbb-cli hard-depends on pywry (a Rust webview package). The slim image lacks both a prebuilt wheel for linux/arm64 and the toolchain to build it. Let me check what wheels pywry actually ships before choosing the fix.
Fetched https://pypi.org/pypi/pywry/0.6.2/json
Confirmed: pywry ships a manylinux x86_64 wheel but no arm64 wheel. The clean fix is to build the image for linux/amd64 (runs under emulation on your Mac) so pip uses pywry's prebuilt wheel — no Rust toolchain needed. pywry just needs webkit/gtk runtime libs present to import. Let me check the base image's Debian version to get the right package names.
Ran
Check amd64 base Debian version and webkit package names
Debian 13 trixie; runtime package is libwebkit2gtk-4.1-0. Let me rewrite the Dockerfile to build for amd64 (using pywry's prebuilt wheel) with the webkit runtime libs so the CLI imports cleanly.
Created a file, edited a file
Now rebuild for amd64. This runs under emulation so the pip install is slower — background it.
Ran a command, used a tool
Building the amd64 image (uses pywry's prebuilt wheel, no Rust). I'll verify the image and launch the Terminal once it completes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Trying to build a headless for the CLI on MacOS, Claude Code highlighted the following:
All reactions