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

Latest vectoBT encounter 'AttributeError: module 'vectoBT' has no attribute 'YFData'' #783

Open
tiger2014 opened this issue Mar 24, 2025 · 2 comments

Comments

@tiger2014
Copy link

I got the latest version(my python 3.9.13)

(vectoBT) PS C:\Develope\Stocks\VectorBT> pip install --upgrade vectorbt
Requirement already satisfied: vectorbt in c:\develope\stocks\vectorbt\vectobt\lib\site-packages (0.27.2)

but the code
price = vbt.YFData.download('BTC-USD').get('Close')
still enconter errro:
AttributeError: module 'vectoBT' has no attribute 'YFData'

@polakowo
Copy link
Owner

It says module 'vectoBT', but it must be "vectorbt" and not "vectoBT". Make sure you import the package correctly, and that you don't have directories or Python files with the name "vectorbt" inside your working directory.

@tiger2014
Copy link
Author

tiger2014 commented Mar 24, 2025

Thank you for pointing out my mistake. It is indeed resolved. But why wasn't there an error for import vectobt as vbt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants