-
Notifications
You must be signed in to change notification settings - Fork 413
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
2017 week 1 data is missing #331
Comments
My Site has an auto NFL importer but its broken and I couldn't work out why, maybe this is it! http://www.thesportsdb.com/league/4391 Hope it gets fixed. |
Not an issue I'm seeing. import nflgame
games = nflgame.games(2017)
print len(games)
That's 15 games for week 1 + 15 games played as of Sunday night in week 2. Try updating 2017 with
|
Perfect! works again now. Did I just miss something in the documentation? I had no idea this needed to be done. Thanks again. |
You didn't miss anything. Changing seasons has always proven to be a bit problematic. I'm not positive on this, but I think this mostly has to do with the fact that - by design - the schedule is not rebuilt every time Not sure if it would resolve this entirely, but in addition to |
I'm getting a weird issue now. It worked a few days ago for week 1 of 2017 but now nflgame.games(year=2017,week=1) returns: Traceback (most recent call last): But it works fine for other years and for week 3. Any ideas for why this would be happening? |
same problems for me, only for this year weeks I've this error |
running |
This is almost certainly an issue importing the schedule. What do you see when you run...
|
|
BadLuckRestaurant's solution worked. Thanks! |
I think I'm missing something here. I'm running a script and getting the following error. I can pull data from prior to 2016, but nothing from 2017. I have run the update_sched with the following results: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32 ======= RESTART: C:\Python27\Lib\site-packages\nflgame\update_sched.py ======= But when I run the script, I still get the following error: I also tried to pull the file that BadLuckResturant mentions, and get an error trying to locate the file. |
I had tried to pip install from git and update the schedule, as others have mentioned, but I was still having issues keeping the games up to date. Here is what I did to get it working reliably on a Heroku environment using pipenv. SolutionThere is a line in So in This issue has been addressed by someone else in the open PR #317. I believe if you do that, then it doesn't matter that you're using an older version of I ended up forking the repo and pipenv installing that version in edit mode instead. After that is installed, then you can run: |
Thank you ariannedee! Uncommenting and commenting the appropriate lines fixed the problem with update_sched.py. Unfortunately, I'm still having issues with update_players.py. I get the following (maybe it's related to the Jr.): `Loading games for REG 2017 week 11 There were some errors during the download. Usually this is a Could not get player info from roster row: 72 Leno, Charles, Jr. OT ACT 6'3" 306 10/9/1991 4 Boise StateException: Traceback (most recent call last): Sorry, I don't know how to disable the markdown. |
OK, if I install using:
on my Mac, it seems to be working. |
@ForTozs Yeah, that Leno, Charles Jr. issue has been a problem for a while. There are a few PRs to address it but I put a fix for that in my fork as well. Glad it worked! (If you add a newline above the dashes for the horizontal line, then the text above won't show up as a heading. I guess it's treating it as ReStructuredText rts headings.) |
I just installed nflgame by
but I guess I have to apply some changes to update the last season?
I ran python update_sched.py --year 2017 several times, but it didn't change the schedule at all (eventhough it said "updating (2017, Pre-Post ...) ). Any ideas what I could do? |
It's Friday during week 2 and only the data from the week 2 Thursday game is returned in the following:
Is this intended behavior, or is this an issue? Is there a way to get the week 1 data still?
Thank you!
The text was updated successfully, but these errors were encountered: