OpenBB-finance / OpenBB

Investment Research for Everyone, Everywhere.
https://openbb.co
Other
31.83k stars 2.9k forks source link

[Bug] ImportError #6636

Closed Kediel closed 1 month ago

Kediel commented 1 month ago

Describe the bug Can't import the openbb library due to the following message (see screenshot).

To Reproduce Install with pip or pip3, start python, try to import library. Following instructions from documentation.

Screenshots

Screenshot 2024-08-21 at 16 10 55

Desktop (please complete the following information):

Additional context First time i'm trying so I'm not sure if older versions worked.

deeleeramone commented 1 month ago

Hi there, this is an environment error and not a bug.

You have installed this to your base Anaconda environment, which has resulted in incorrect versions and PATH links to important packages like Pydantic and anyio.

Always create new environments for installing projects and check that your $PATH is correctly targeting the right Python environment.

Never install things with pip3 or python3.

Kediel commented 1 month ago
Screenshot 2024-08-22 at 15 36 25

Still experiencing an issue even in an isolate ENV.

deeleeramone commented 1 month ago

This is not a bug, otherwise nothing would work at all for anyone.

This will display all "openbb" packages installed in your environment: pip list | grep openbb

If it shows as being installed, then you have a local configuration in your shell profile that is erasing your PATH.

Kediel commented 1 month ago

Yes, i'm an idiot (Haven't used environments in a long time.). Disregard and thanks for the support!