question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SyntaxError: Non-UTF-8 code starting with '\xcf' in file gyb on line 1

See original GitHub issue

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 --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:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
walkindudecommented, Mar 7, 2017

+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?

0reactions
stale[bot]commented, Mar 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found