bowhead icon indicating copy to clipboard operation
bowhead copied to clipboard

Streaming.py gives an error regarding dotenv

Open techguysimon opened this issue 8 years ago • 2 comments
trafficstars

Traceback (most recent call last): File "streaming.py", line 90, in main() File "streaming.py", line 86, in main demo(displayHeartbeat) File "streaming.py", line 56, in demo response = connect_to_stream() File "streaming.py", line 28, in connect_to_stream dotenv.load() AttributeError: 'module' object has no attribute 'load'

Any idea of how to fix this? I have attempted on my Mac and on an Ubuntu VPS

techguysimon avatar Jun 23 '17 04:06 techguysimon

I made this tons easier See the Docker section https://medium.com/@joeldg/an-advanced-tutorial-a-new-crypto-currency-trading-bot-boilerplate-framework-e777733607ae

Joel De Gan

On Thu, Jun 22, 2017 at 9:47 PM, Simon Brumfield [email protected] wrote:

Traceback (most recent call last): File "streaming.py", line 90, in main() File "streaming.py", line 86, in main demo(displayHeartbeat) File "streaming.py", line 56, in demo response = connect_to_stream() File "streaming.py", line 28, in connect_to_stream dotenv.load() AttributeError: 'module' object has no attribute 'load'

Any idea of how to fix this? I have attempted on my Mac and on an Ubuntu VPS

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/joeldg/bowhead/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0MvEdOjux_OPPa_a9S-TFpL3dVxbtzks5sG0NGgaJpZM4ODIVe .

joeldg avatar Jun 23 '17 07:06 joeldg

You probably installed the wrong dotenv for python. I had the same issue, it was resolved by uninstalling my previously installed dotenv and using this command (as described in the readme): pip install python-env.

JeppeKnockaert avatar Dec 28 '17 13:12 JeppeKnockaert