Files
OpenBB/website/content/sdk/faqs/import_errors.md
jose-donato 6e9fefce9e Adds bot documentation to docusaurus and changes for hub (#4409)
* feat: adds bot docs to docu

* fix: file structure

* fix: brings changelog and switch platform button

* adding available options and changing Example text

* fix: detect whether iframe, fix availableoptions component, dynamic update third friday for options component

* fix: updated readme to reflect new changes

* fix: made it so from iframe only shows relevant sidebar

* PLAY BUTTON WOOO - works on discord/charting/chart

* comment

* fix: search bar, improve search

* fix: hijacks ctrl+k from iframe, adds visit to hub link

* about

* setting up play button for all images on Discord

* Bot docs updates

* terminal/faqs

* update main page

* add changelog to terminal

* SDK refactoring

* minor reordering

* bot struct in place

* move bot faqs over

* updating bot index and installation

* add new letterings

* fix: adds new navbar

* fix: new bot images and layouts

* updating installation and flow

* black linter

* spelling

* spelling

* The best commit

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-16 16:29:57 +00:00

2.2 KiB
Vendored

title, sidebar_position, description, keywords
title sidebar_position description keywords
Import Errors 2 TBD
installation
installer
install
guide
mac
windows
linux
python
github
macos
how to
explanation
openbb terminal

Import Errors

ModuleNotFoundError: No module named '______'

Before troubleshooting please verify that the recommended installation instructions were followed. These errors often can occur when the virtual environment has not been activated, or the poetry install command was skipped. Activate the OpenBB virtual environment created during the installation process prior to launching or importing the SDK.

Terminal:

conda activate obb
python terminal.py

SDK:

conda activate obb
ipython
from openbb_terminal.sdk import openbb

Jupyter:

Check that the kernel selected for the session is the OpenBB virtual environment created during the installation process and then re-run the cell.

from openbb_terminal.sdk import openbb

There is also a possibility that a new dependency has been added to the code and it has not yet been installed in the environment. This may happen after updating the code from GitHub, but before running the poetry install install command.

poetry install -E all
SSL certificates fail to authorize
SSL: CERTIFICATE_VERIFY_FAILED

An error message, similar to above, is usually encountered while attempting to use the OpenBB Platform from behind a firewall. A workplace environment is typically the most common occurrence. Try connecting to the internet directly through a home network to test the connection. If using a work computer and/or network, we recommend speaking with the company's IT department prior to installing or running any software.

A potential solution is to try:

pip install pip-system-certs
Cannot connect due to proxy connection.

Find the .env file (located at the root of the user account folder: (~/.openbb_terminal/.env), and add a line at the bottom of the file with:

HTTP_PROXY="<ADDRESS>" or HTTPS_PROXY="<ADDRESS>”