You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env python2
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
SHARE_ENDPOINTS = os.getenv("SHARE_ENDPOINTS")
print(SHARE_ENDPOINTS)
Error traceback
Traceback (most recent call last):
File "./bin/settings.py", line 5, in <module>
load_dotenv(find_dotenv())
File "/home/rolla/.local/lib/python2.7/site-packages/dotenv/main.py", line 250, in load_dotenv
return DotEnv(f, verbose=verbose).set_as_environment_variables(override=override)
File "/home/rolla/.local/lib/python2.7/site-packages/dotenv/main.py", line 97, in set_as_environment_variables
os.environ[k] = v
File "/usr/lib/python2.7/os.py", line 473, in __setitem__
putenv(key, item)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0113' in position 8: ordinal not in range(128)
Is there some options to get this working?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, seems it cannot parse unicode values
example
.env file
settings.py file
Error traceback
Is there some options to get this working?
Thanks.
The text was updated successfully, but these errors were encountered: