SyntaxError: Non-UTF-8 code starting with '\xcf' in file gyb on line 1
See original GitHub issueUsing GYB 1.0 on Mac OS 10.11.6 with Python 3.5.2 installed.
In Terminal, I entered the command:
python3 gyb --email youremail@gmail.com --action estimate
using my email address. (I did’nt use gyb.py
as that returned a “No such file” error.)
I received the following error message:
File "gyb", line 1
SyntaxError: Non-UTF-8 code starting with '\xcf' in file gyb on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Issue Analytics
- State:
- Created 7 years ago
- Comments:7
Top Results From Across the Web
Non-UTF-8 code starting with '\xcf' in file gyb on line 1 ... - GitHub
Using GYB 1.0 on Mac OS 10.11.6 with Python 3.5.2 installed. In Terminal, I entered the command: python3 gyb --email youremail@gmail.com ...
Read more >Python SyntaxError: Non-UTF-8 - Stack Overflow
1 Answer 1 ... Python 3 uses UTF-8 as default encoding. This simplify the codes you get from Internet (and other packages). \xcf...
Read more >SyntaxError: Non-UTF-8 code - Google Groups
SyntaxError : Non-UTF-8 code starting with '\xcf' in file gyb on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details.
Read more >Issue: Getting it working Key skill: problem decomposition
SyntaxError : Non-UTF-8 code starting with '\xff' in file HelloWorld.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for ...
Read more >Non-UTF-8 code starting with '\xd1', but no encoding declared
After building the version with the entry point as a rust binary, when I try to run it I get this error message:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1, I’m experiencing this exact issue as well on OS X 10.10.5 and Python 2.7.10.
EDIT sorry, I’m dumb and I need a few days off. Assuming the current directory is that where
gyb
is located, the way to get it to work is to:chmod +x gyb
and then changing the command line to:
./gyb --email youremail@gmail.com --action estimate
If this is the actual way to do it, though, the Wiki would need to be fixed.
@amandelman would you mind giving this a shot and reporting back?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.