pacificclimate / pdp

The PCIC Data Portal - Server software to run the entire web application
GNU General Public License v3.0
1 stars 2 forks source link

Wrong dash used in files #260

Closed corviday closed 2 years ago

corviday commented 2 years ago

While attempting to deploy the PDP*

pdp_frontend_dev | 2021-11-19T22:43:29.853624908Z     import portals.bccaq2_downscale as bccaq2
pdp_frontend_dev | 2021-11-19T22:43:29.853628588Z   File "/opt/dockremap/pdp/portals/bccaq2_downscale.py", line 15
pdp_frontend_dev | 2021-11-19T22:43:29.853632458Z SyntaxError: Non-ASCII character '\xe2' in file /opt/dockremap/pdp/portals/bccaq2_downscale.py on line 15, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

and

pdp_backend_dev | 2021-11-19T22:43:29.933851120Z   File "/opt/dockremap/pdp/portals/bccaq2_downscale.py", line 15
pdp_backend_dev | 2021-11-19T22:43:29.933855573Z SyntaxError: Non-ASCII character '\xe2' in file /opt/dockremap/pdp/portals/bccaq2_downscale.py on line 15, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

\xe2 is a dash, so I think what probably happened here is that I copied the new titles for the portals pages from an email and pasted them into code, and got a smartdash that Microsoft had "helpfully" added to the email. Hopefully a quick fix.