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

Docker: update installation instruction #3692

Merged
merged 26 commits into from
Dec 5, 2022

Conversation

Chavithra
Copy link
Contributor

Description

Updating the installation instructions for Docker.

@Lukazcreations : can you validate the macOS instructions?
@hjoaquim : can you validate the instructions for Linux distributions?

Thanks

@reviewpad reviewpad bot added the feat S Small T-Shirt size Feature label Dec 3, 2022
@hjoaquim
Copy link
Contributor

hjoaquim commented Dec 5, 2022

@Chavithra
When using docker compose run openbb
I got PermissionError: [Errno 13] Permission denied: '/home/python/OpenBBUserData/logs/808cdb43-7316-49e4-86d1-6d13ccc763f8/gst_docker_1670233023' --> should be hjoaquim instead of python

Then I tried docker run --rm -it \ -v ~/.openbb_terminal/:/home/python/.openbb_terminal \ -v ~/OpenBBUserData:/home/python/OpenBBUserData \ ghcr.io/openbb-finance/openbbterminal/openbb:latest
and got Unable to find image. Changing the openbb:latest to openbb:2.0.0 I also got the error above (Permission denied).

@luqmanbello
Copy link
Contributor

@Chavithra
After I ran this command docker compose run -e DISPLAY=$IP:0 openbb

Traceback (most recent call last): File "/home/python/terminal.py", line 2, in <module> from openbb_terminal import terminal_controller File "/home/python/openbb_terminal/terminal_controller.py", line 27, in <module> from openbb_terminal.terminal_helper import is_packaged_application File "/home/python/openbb_terminal/terminal_helper.py", line 22, in <module> from openbb_terminal import thought_of_the_day as thought File "/home/python/openbb_terminal/thought_of_the_day.py", line 11, in <module> from openbb_terminal.helper_funcs import get_user_agent File "/home/python/openbb_terminal/helper_funcs.py", line 55, in <module> matplotlib.use(cfgPlot.BACKEND) File "/home/python/.cache/pypoetry/virtualenvs/openbb-K8M3siuK-py3.10/lib/python3.10/site-packages/matplotlib/__init__.py", line 1146, in use plt.switch_backend(name) File "/home/python/.cache/pypoetry/virtualenvs/openbb-K8M3siuK-py3.10/lib/python3.10/site-packages/matplotlib/pyplot.py", line 282, in switch_backend class backend_mod(matplotlib.backend_bases._Backend): File "/home/python/.cache/pypoetry/virtualenvs/openbb-K8M3siuK-py3.10/lib/python3.10/site-packages/matplotlib/pyplot.py", line 283, in backend_mod locals().update(vars(importlib.import_module(backend_name))) File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/python/.cache/pypoetry/virtualenvs/openbb-K8M3siuK-py3.10/lib/python3.10/site-packages/matplotlib/backends/backend_qt5agg.py", line 7, in <module> from .backend_qtagg import ( # noqa: F401, E402 # pylint: disable=W0611 File "/home/python/.cache/pypoetry/virtualenvs/openbb-K8M3siuK-py3.10/lib/python3.10/site-packages/matplotlib/backends/backend_qtagg.py", line 9, in <module> from .qt_compat import QT_API, _enum, _setDevicePixelRatio File "/home/python/.cache/pypoetry/virtualenvs/openbb-K8M3siuK-py3.10/lib/python3.10/site-packages/matplotlib/backends/qt_compat.py", line 142, in <module> raise ImportError("Failed to import any qt binding") ImportError: Failed to import any qt binding

Copy link
Contributor

@hjoaquim hjoaquim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - we'll address linux charts later.

@Chavithra Chavithra marked this pull request as ready for review December 5, 2022 13:05
Copy link
Contributor

@luqmanbello luqmanbello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally got it working on M1 Mac. The error I was getting was due to an edit on the .env file.

@Chavithra Chavithra merged commit 9add3e6 into OpenBB-finance:main Dec 5, 2022
@Chavithra Chavithra deleted the docker_doc branch December 5, 2022 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat S Small T-Shirt size Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants