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

ValueError: Extra data #187

Closed
danielcroona opened this issue Sep 11, 2016 · 3 comments
Closed

ValueError: Extra data #187

danielcroona opened this issue Sep 11, 2016 · 3 comments

Comments

@danielcroona
Copy link

danielcroona commented Sep 11, 2016

Hi!

When running the update script during todays games I keep getting this error. Tried to update all python packages with pip but that made no difference. Is there anyone else getting this?

$ sudo nfldb-update
Traceback (most recent call last):
File "/usr/local/bin/nfldb-update", line 5, in
import nfldb.update
File "/usr/local/lib/python2.7/dist-packages/nfldb/update.py", line 15, in
import nflgame
File "/usr/local/lib/python2.7/dist-packages/nflgame/init.py", line 114, in
players = nflgame.player._create_players()
File "/usr/local/lib/python2.7/dist-packages/nflgame/player.py", line 21, in _create_players
data = json.loads(open(jsonf).read())
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 369, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 111228 column 8 - line 111238 column 2 (char 3415175 - 3415465)

@danielcroona
Copy link
Author

Apparently I did not update nfldb properly. I am closing this issue.

@BurntSushi
Copy link
Owner

@danielcroona What did you do to fix it?

@danielcroona
Copy link
Author

I just upgraded nfldb, and then I had to remove my entry for the LA Rams from the team database that I had made previously.

The update command:
sudo pip install nfldb --upgrade

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