I would like to install the latest version of OpenBB, which is an open source project that is similar to Bloomberg Terminal in many ways, and remove/cleanup my old container of it. There may be a permission issue which may or may not be NixOS related (detailed below). I should say I’m attempting to learn Docker, but am making slow progress. I’ve also heard there is a way to have NixOS manage containers, but I’m not sure how to do so or if it would help in this instance.
Quite a few months ago I was able to use Docker to install OpenBB on NixOS. I currently have a container working of an older version (v1.6.0) of OpenBB working, which I run with this command, per their old instructions:
docker run -it --rm ghcr.io/openbb-finance/openbbterminal-poetry:latest
and it opens in my terminal and works as it is supposed to, albeit it is out of date and the internal update
command does not work.
I also have “docker” in extraGroups for my user as so:
extraGroups = [ "docker" "networkmanager" "wheel" ];
I just left everything as is on my system and attempted to run the new instructions, per:
https://docs.openbb.co/terminal/quickstart/installation#3-linux
When I installed the old version of OpenBB I created a director ~/Software/OpenBB
and downloaded the docker-compose.yaml to this directory. So I did the same thing for the newest version via Danglewood’s (from their Discord) suggestion:
curl -o docker-compose.yaml https://raw.githubusercontent.com/OpenBB-finance/OpenBBTerminal/main/build/docker/docker-compose.yaml
I should say, I don’t fully understand how/where Docker installs containers, but I know that I can docker images
which shows that I now have
01:31 PM zonsopkomst@weda $
(~)>>>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ghcr.io/openbb-finance/openbbterminal/openbb 2.5.1 a15a7fa3376e 12 days ago 7.48GB
ghcr.io/openbb-finance/openbbterminal-poetry latest e8ac478cf581 7 months ago 2.54GB
I tried Danglewood’s suggestions and ran docker compose run openbb
and get the following:
01:34 PM zonsopkomst@weda $
(~/Software/OpenBB)>>>docker compose run openbb
Traceback (most recent call last):
File "/home/python/terminal.py", line 5, in <module>
from openbb_terminal.terminal_helper import is_auth_enabled
File "/home/python/openbb_terminal/terminal_helper.py", line 18, in <module>
from openbb_terminal import (
File "/home/python/openbb_terminal/feature_flags.py", line 17, in <module>
paths_helper.init_userdata()
File "/home/python/openbb_terminal/core/config/paths_helper.py", line 75, in init_userdata
create_paths(dirs_list)
File "/home/python/openbb_terminal/core/config/paths_helper.py", line 27, in create_paths
dirs.mkdir(
File "/usr/local/lib/python3.10/pathlib.py", line 1175, in mkdir
self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/home/python/OpenBBUserData/styles'
He was saying there was a permission issue (last line above), but I think my user already has permission from extraGroups (above) since it works with the older version, but I could be wrong. Maybe a path issue due to the way nix installs packages?
So my old container did not update. The next attempt was running the latest instructions from the link above from their site:
docker run --rm -it \
-v ~/.openbb_terminal/:/home/python/.openbb_terminal \
-v ~/OpenBBUserData:/home/python/OpenBBUserData \
ghcr.io/openbb-finance/openbbterminal/openbb:latest
and the container does not run. I’m not in front of my PC right now, but I think it said the container or image was not found. I will gladly add the output or any other requested diagnostics a little later if it would help.
And that’s where I left off.
Here is the conversation I started on Discord for reference:
Any help is appreciated!