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

Works but getting the error output below on every invocation #1

Closed
luckman212 opened this issue Apr 15, 2024 · 4 comments
Closed

Works but getting the error output below on every invocation #1

luckman212 opened this issue Apr 15, 2024 · 4 comments

Comments

@luckman212
Copy link
Contributor

I installed fastmask today in a new venv using Python 3.12.3 on macOS 14.4.1

It works, but I'm getting the error output below on every invocation:

$ fastmask list --active
Python-dotenv could not parse statement starting at line 1
Python-dotenv could not parse statement starting at line 17
Python-dotenv could not parse statement starting at line 18
Python-dotenv could not parse statement starting at line 19
Python-dotenv could not parse statement starting at line 20
Python-dotenv could not parse statement starting at line 21
Python-dotenv could not parse statement starting at line 22
Python-dotenv could not parse statement starting at line 23

Is it required that I create an .env file somewhere to store account, apikey etc?

@hdb
Copy link
Owner

hdb commented Apr 16, 2024

Is it possible you have a .env file somewhere in a parent directory that python-dotenv is unable parse? If that is indeed the issue then I can add an option to skip the .env parsing.

But no, the .env file is not required - it should work as long as the environment variables are set for account and API key.

@luckman212
Copy link
Contributor Author

Thanks - no I don't have any .env files in the current or any parent dir. As a test I changed to the / dir just in case. Still got the errors. Strange...

@hdb
Copy link
Owner

hdb commented Apr 28, 2024

I'm still not sure of the source of the error, but in any case I added an option to skip parsing .env by setting the environment variable SKIP_PYTHONDOTENV=1.

@hdb
Copy link
Owner

hdb commented Oct 3, 2024

I think this is resolved in 92e9dcf so I am going to close this, but feel free to re-open if it is not working as expected. There is an open upstream issue requesting this feature, though it doesn't look like there is currently a plan to add a standard method of disabling python-dotenv .env parsing.

@hdb hdb closed this as completed Oct 3, 2024
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