fatiharaci / spotweety

spotweety.club - a twitter analyzer for spotify
http://spotweety.club/
0 stars 0 forks source link

Prod Deployment Character Error #20

Closed fatiharaci closed 7 years ago

fatiharaci commented 7 years ago

In my apiwrapper file following error is given on deployment:

File "/opt/myenv/SpoTweetyMaster/api/apiwrapper.py", line 68 SyntaxError: Non-ASCII character '\xe2' in file /opt/myenv/SpoTweetyMaster/api/apiwrapper.py on line 68, but no encod ing declared; see http://www.python.org/peps/pep-0263.html for details

this is no problem on localhost

fatiharaci commented 7 years ago

searching q="#NowPlaying open.spotify ♫",

happens to create error

fatiharaci commented 7 years ago

Changing encoding scheme solved this problem on prod.

Windows creates no issue however ubuntu does.

# encoding=utf8