-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Bug] Import Error: using obb.equity.price.historical()
#7113
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
Comments
I am on the latest openbb, and I am running into the same issue when using |
I created a new virtual environment with micromamba on Python 3.12.10. I installed poetry and installed a new project with openbb: 4.4.4 Reproduce:
I am also getting this error:
|
Similar to #7114 |
``
Something is not right with this process. What are you creating the environment from? Micromamba doesn't ship Python, so where is it coming from? What are you installing with What does |
|
I am installing the project from the |
According to your environment package list, you don't have any |
This is
|
poetry env info
Virtualenv
Python: 3.12.8
Implementation: CPython
Path: /Users/jjfantini/github/humblFINANCE-org/humblAPI/menv
Executable: /Users/jjfantini/github/humblFINANCE-org/humblAPI/menv/bin/python
Valid: True
Base
Platform: darwin
OS: posix
Python: 3.12.8
Path: /Users/jjfantini/github/humblFINANCE-org/humblAPI/menv
Executable: /Users/jjfantini/github/humblFINANCE-org/humblAPI/menv/bin/python3.12 |
I have tried using |
This is all very confusing. In your initial post, you said the steps to recreate were to use a Conda Python environment, with UV installed, to create a new environment and add openbb to that. Can we isolate only for the initial reported conditions? Remove poetry out of the equation entirely. Substitute the Clean Conda/Mamba cache conda clean --all -y Create Python environment for 3.12 with Conda/Mamba conda create -n test python=3.12 -y Activate Conda environment conda activate test Install UV pip install uv Clean UV cache uv cache clean Create new environment with UV uv venv new Activate new UV environment source new/bin/activate Use UV to install openbb into environment. uv pip install "openbb[all]" --prerelease=allow Deactivate Conda environment. conda deactivate Start Python and import OpenBB python This should be the first thing you see. >>> from openbb import obb
Extensions to add: alpha_vantage@1.4.1, biztoc@1.4.2, cboe@1.4.1, deribit@1.0.1, ecb@1.4.2, econometrics@1.5.3, finra@1.4.1, finviz@1.3.1, government_us@1.4.1, multpl@1.1.1, nasdaq@1.4.1, openbb_charting@2.3.4, quantitative@1.4.3, seeking_alpha@1.4.1, stockgrid@1.4.1, technical@1.4.3, tmx@1.3.2, tradier@1.3.1, wsj@1.4.1, yfinance@1.4.6
Extensions to remove: yfinance@1.4.3
Building...
>>> The first command will take a bit longer to run because the pycache will be getting created. >>> obb.equity.price.historical("AAPL", provider="yfinance")
OBBject
id: 068226d4-c800-72c0-8000-11130c0664a5
results: [{'date': datetime.date(2024, 5, 13), 'open': 185.44000244140625, 'high': ...
provider: yfinance
warnings: None
chart: {'content': {'data': [{'close': [185.86000061035156, 187.38249588012695, 188...
extra: {'metadata': {'arguments': {'provider_choices': {'provider': 'yfinance'}, 's...
>>> |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When I create a new environment with UV and add openbb to the env. Upon import and using the obb module, I get a weird Import error.
To Reproduce
Install uv and python 3.12.10 in a micromamba env
Create a uv .venv using Python in the menu environment
import obb from openbb
run obb.equity.price.historical()
Screenshots
Desktop (please complete the following information):
I have this logic working on another project, what could the issue be?
The text was updated successfully, but these errors were encountered: