Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error Encoding issue #4

Open
dlman opened this issue May 15, 2017 · 1 comment
Open

Syntax Error Encoding issue #4

dlman opened this issue May 15, 2017 · 1 comment

Comments

@dlman
Copy link

dlman commented May 15, 2017

After cloning, installing all the modules from requirements and trying out the first example:

(venv) dl-MacBook-Pro:basketball_reference dl$ python match_generator.py --league nba --seasons 2003-2004
Traceback (most recent call last):
  File "match_generator.py", line 7, in <module>
    from nba import NbaBRefSeason
  File "/Users/dl/nba/basketball_reference/nba.py", line 6, in <module>
    from base import BRefMatch, BRefSeason
  File "/Users/dl/nba/basketball_reference/base.py", line 78
SyntaxError: Non-ASCII character '\xe2' in file /Users/dl/nba/basketball_reference/base.py on line 78, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Should maybe include encoding at top of base.py?

@ahwolf
Copy link

ahwolf commented Feb 1, 2018

Include # -- coding: utf-8 -- at the top of base.py

From: https://stackoverflow.com/a/24221963

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants