lamm-mit / PDF2Audio

Apache License 2.0
796 stars 86 forks source link

Encountering SyntaxError message when running the last command from the instruction #7

Open hinlawrtai opened 2 days ago

hinlawrtai commented 2 days ago

After following the instruction, and when I type the last command "python app.py", it generates the following error: SyntaxError: Non-UTF-8 code starting with '\xe0' in file C:\Users\hinla\Downloads\PDF2Audio\app.py on line 370, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details

Thank you.

aymiee commented 9 hours ago

I came across this same error and placed the above before all lines and it appears to be working: # -*- coding: utf-8 -*-