-
Notifications
You must be signed in to change notification settings - Fork 425
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
Doesn't accept any pathnames nor show errors on python 3.9.2 / raspberry pi #427
Comments
I think
I'll need more time to fix that one. The behavior of
Your submission is very good, thanks! It's true that some short guidelines could help. |
I'm having the same issue on Python 3.10.9: Examples of solutions I tried:
from pathlib import Path
from dotenv import load_dotenv
dotenv_path = str(Path.cwd().absolute)
load_dotenv(dotenv_path=dotenv_path, verbose=True)
from dotenv import load_dotenv
load_dotenv(dotenv_path=".env", verbose=True) Alas, neither approach listed here (nor any others I tried) worked. I'm happy to list them all out and provide more information if needed, and potentially try looking into contributing a PR if time/skill allow (but I don't want to make any promise I can't keep on that front). |
Either running from a script, or from the command line, it doesn't accept any pathnames as valid arguments
In a script,
load_dotenv()
works if I'm in the correct directory. However,load_dotenv(dotenv_path="/home/toni/temp", verbose=True)
or any other directory falls silently without populating the relevant environment variables.The environment:
Happy to provide further debugging information as needed. Your contribution guidelines don't provide any guidance on what's useful. Perhaps that could be something to add, too, to make issue submissions easier to look at.
The text was updated successfully, but these errors were encountered: