anthonykrivonos / Quantico

🌿 (Help wanted) Live quant trading engine for Robinhood in Python 3, now with backtesting.
MIT License
17 stars 10 forks source link

Dotenv/.env loading #1

Closed pringithub closed 5 years ago

pringithub commented 5 years ago

First want to say thanks for making this - I was working on something similar and you saved me some time :)

When I try to run the main script, with dotenv installed, I get an error: ImportError: cannot import name 'Dotenv' from 'dotenv' (/usr/local/lib/python3.7/site-packages/dotenv/__init__.py)

I think you meant to have: from dotenv import load_dotenv instead of from dotenv import Dotenv

or perhaps there is a mapping you have?

anthonykrivonos commented 5 years ago

@pringithub Thanks a bunch! Mind pulling the latest commit from master and letting me know if it resolves your issue?

pringithub commented 5 years ago

yea it worked