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

Dotenv syntax warning on fresh install #289

Open
enzedonline opened this issue Mar 9, 2021 · 2 comments
Open

Dotenv syntax warning on fresh install #289

enzedonline opened this issue Mar 9, 2021 · 2 comments

Comments

@enzedonline
Copy link

Hi,
Just followed through the installation instructions, installed into venv environment.
I get a warning message:

C:\Django\wagtail-bakery-project\.venv\lib\site-packages\dotenv.py:104: SyntaxWarning: Line 'ÿþD\x00J\x00A\x00N\x00G\x00O\x00_\x00S\x00E\x00T\x00T\x00I\x00N\x00G\x00S\x00_\x00M\x00O\x00D\x00U\x00L\x00E\x00=\x00b\x00a\x00k\x00e\x00r\x00y\x00d\x00e\x00m\x00o\x00.\x00s\x00e\x00t\x00t\x00i\x00n\x00g\x00s\x00.\x00l\x00o\x00c\x00a\x00l\x00' doesn't match format
  warnings.warn(
C:\Django\wagtail-bakery-project\.venv\lib\site-packages\dotenv.py:104: SyntaxWarning: Line '\x00' doesn't match format
  warnings.warn(

Win10 environment.

@nRookie
Copy link

nRookie commented Mar 30, 2021

Hi @enzedonline ,
I encounter the same warning here in Win10.

In my case, the .env file encoding is utf-16. after I change the .env file encoding to the utf-8. the problem is solved.

@enzedonline
Copy link
Author

@nRookie - thanks. Tried that with the same issue but then just created a new .env file and works fine now. Cheers.

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