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

Postseason fix #19

Closed
cptrguru opened this issue Feb 5, 2014 · 2 comments
Closed

Postseason fix #19

cptrguru opened this issue Feb 5, 2014 · 2 comments

Comments

@cptrguru
Copy link

cptrguru commented Feb 5, 2014

First things first... I REALLY appreciate you putting this together! I'm a stats geek and love not having to maintain code to screen-scrape data from multiple websites to get less data than you're providing. You're awesome!

I had a working nfldb installation and all ninjas were happy. Downloaded the 1.3 files, copied them into C:\Python27\Lib\site-packages\nfldb and C:\Python27\Scripts (over-wrote old files, no other files removed or changed), then ran the nfldb-update with the following results:

/* BEGIN OUTPUT */

python ./Scripts/nfldb-update

STARTING NFLDB UPDATE AT 2014-02-05 11:17:28.334000
Connecting to nfldb... done.
Setting timezone to UTC... done.
Locking write access to tables... done.
Updating season phase, year and week... FAILED!
done.
Updating schedule JSON database...
C:\Python27\python.exe: No module named nflgame.update_sched
C:\Python27\python.exe -m nflgame.update_sched failed (exit status 1)
done.
Updating schedule for (Regular, 2013, 17)
Traceback (most recent call last):
File "./Scripts/nfldb-update", line 440, in
doit()
File "./Scripts/nfldb-update", line 430, in doit
update(db, player_interval=args.player_interval)
File "./Scripts/nfldb-update", line 350, in update
update_current_week_schedule(db)
File "./Scripts/nfldb-update", line 282, in update_current_week_schedule
for gsis_id, info in nflgame.sched.games.iteritems():
AttributeError: 'module' object has no attribute 'sched'
/* END OUTPUT */

Did I fail to do something correctly or did I find a bug?

@BurntSushi
Copy link
Owner

Looks like you have an old version of nflgame installed. Try updating it first.

In general, I recommend that you use pip to manage nflgame and nfldb (and any Python package really). pip will make sure you have the right versions installed.

@cptrguru
Copy link
Author

cptrguru commented Feb 5, 2014

Used Pip... go it going! Thank you, Sir!

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