Files
OpenBB/website/content/sdk/faqs/import_errors.md
Danglewood 757fc57174 docs/fix-urls: Updates the Terminal About URLs to match /develop (#5720)
* update Terminal about URLs and some other broken links

* ruff

* intro

* changing the heading levels

* dependency management sections

* structure

* developer guides

* structure

* contributor guides

* keywords and descriptions

* broken urls

* cool cards

* Cool cards (#5727)

* tidy up terminal/content

* some more tidy up

* fix styling for platform that was missing

* more tidy up

* improve color for dark and light mode

* create new reference card for more basic cards

* rename back to menus

* implement all index.md for terminal, except reference

* improve bot title

* more refactoring

* fix remaining index

* header styling

* more styling

* heheheheheheeh

* Revert "heheheheheheeh"

This reverts commit 7d095fcfd2.

* Ccards (#5733)

* links

* more links

* improved styling and chevron aligned to title

* fix index.mdx urls for Terminal

* update package.json

* update index.mdx

* fix generation

* spelling

* toolkit_extensions

* update data extensions

* couple of links

* add tiingo to data extensions list

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
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-11-16 17:02:59 -05:00

2.9 KiB
Vendored

title, sidebar_position, description, keywords
title sidebar_position description keywords
Import Errors 2 This page provides solutions for common import errors when installing the OpenBB SDK, including guidance on managing virtual environments, handling ModuleNotFoundError, dealing with SSL certificate authorization, and configuring proxy connections.
Import Errors
SciPy
ModuleNotFoundError
virtual environment
poetry install
conda activate
Jupyter
GitHub
SSL certificates
firewall
pip-system-certs
proxy connection
.env file

import HeadTitle from '@site/src/components/General/HeadTitle.tsx';

When packages not included in the OpenBB installation are installed to the same environment as the SDK, it is possible that an incompatible build of a specific library (like SciPy) has overwritten the existing and creating a conflict. In this event, try creating a new environment containing only the OpenBB dependencies.

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>”