-
Notifications
You must be signed in to change notification settings - Fork 416
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
ImportError: cannot import name load_dotenv #6
Comments
@sirvon well make sure you have activated your |
@sirvon Please re-open this issue if the above solution doesn't work for you. Make sure, you have installed python dotenv and/or activated virtualenv. |
The issue is still present even in Debian Jessie. Please re-open it. |
Ok for future peoples that get here, the Do this instead :
|
@cnicodeme that's kind of strange as It would really helpful if you can post the output of your
Thanks, |
Yes of course, But I'm also suspecting it's not the same "dotenv"? I installed it using Here's the And the |
@cnicodeme the correct install command is:
You can simply fix this by
Let me know if that helps! Cheers! |
Thank you. I already fixed my issue by doing what I indicated before (my second comment). Cheers :) |
why isnt this working on mac os el cap.... from dotenv import load_dotenv
ImportError: cannot import name 'load_dotenv' |
I think this has changed again... has changed from "load_dotenv" to "load"
|
hi @waltertschwe, it has always been the same. I would suggest you run the following and see what's the output:
there is a high chance of library mismatch. |
Hi @theskumar I'm getting this error whenever i try to import dotenv:
|
After uninstall dotenv, for my case it still didn't work. However, it works after I reinstall python-dotenv.
|
@shlinx solution of uninstalling However, tools like What can be the long term solution? |
Hey, I'm having a similar issue on an Ubuntu 16.04. The |
@shaunakmukherjee try uninstalling and installing Best option would be to create and try inside a virtualenv. |
@theskumar have already done them, as the picture shows. |
Try in the
what do you see? |
|
@shaunakmukherjee you have dotenv installed which is not |
Well, I have python-dotenv installed as well. |
@shaunakmukherjee It seems that having python-dotenv and dotenv packages causes issues... I had the two installed and run into the same issue. I fixed it uninstalling dotenv and leaving python-dotenv instaled |
I also got the error I gave up and tried https://github.com/mattseymour/python-env version 1.0.0 instead, which I installed with
|
Traceback (most recent call last): after |
@djdeo |
@theskumar thanks, I tried |
|
@ltfschoen thanks, couldn't get the other package to work on MacOS Mojave either, that one worked perfectly! |
Uninstall dotenv and python-dotenv This really works |
This is still happening. It's so annoying. No solution yet? |
I'm having this issue as well ... never installed dotenv only python-dotenv ... Getting |
@RT-Tap Change your .py file name |
Thanks! 👍🏻 |
I've been getting this error on a python 2.7 installation:
any word on what gives?
The text was updated successfully, but these errors were encountered: