-
Notifications
You must be signed in to change notification settings - Fork 100
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
Issue loading game data from 2018 season wk 4 - in py3 branch #83
Comments
getting the same error. 2018 and 2019 dont work right now. |
I just pushed some updates from dev to py3. But i think this is likely related to #68. |
nflgame._search_schedule(year=2018, week=4) is returning an empty set. Investigating.... |
The schedule data was corrupted somehow. The fix has been pushed to the dev branch. I will be deploying this fix and some other things on PyPi this week. You can install this branch locally in the meantime if you need. |
Can you confirm this is no longer happening on the latest release?
|
Ran without error! Thanks! Edit: Actually just ran into a similar error trying to load 2017 wk 1... |
Following up on this... I am now seeing two separate issues. This same code snippet works fine for 2016 For season 2017 For 2018 I'm receiving an error at a different place: |
can confirm what ryscar13 said. i scraped the csv files for 2009-2017 games if you need it. |
@pwu97 what do you mean scraped the csv files? |
I ran into the 2017 week 1 problem as well. Does it have something to do with the postponed TB@MIA game? When I try to pull data from that game specifically, it gives me the exact same AttributeError as when I pull the entire week. All of the other games work as expected. |
Using version nflgame-redux==2.0.1a1 (Python 3.7), I can run 2018 week 4 by setting week number to 4.142857142857142. 2017 week 1 also works without issue for me in this version. This returns values for games:
|
Ya these all seem to be related to the schedule being corrupt and is exposed by the recent changes in nflgame.games. You can see the latest releases here: https://pypi.org/manage/project/nflgame-redux/releases/ |
Hi, i found in the .json this "2017091006", This match not exist http://www.nfl.com/liveupdate/game-center/2017091006/2017091006_gtd.json http://www.nfl.com/liveupdate/game-center/2017111911/2017111911_gtd.json |
Ya i'll probably just have to manually correct this until I have time to adjust schedule.json dynamically. |
I Can help you to update Schedule.json |
PRs for this would be greatly appreciated. I will set aside time this week to do some pushes that i've been putting off. |
This fixes the error, but I wouldn't say it's a particularly great fix. Modification to nflgame/game.py:
|
I'll get that in there for a quick fix. I've been pulled away from this project briefly and will be fixing things before the new year/playoffs. |
closing b/c schedule. should be fixed. |
Apologies if I have missed an explanation for what is happening here, but when I try to query 2018 data week by week I keep stalling out on week 4 of 2018. When I request the bulk of 2018 I have no issues
Specifically request week 4 like:
games = nflgame.games(2018, week=4)
I get the error
'NoneType' object is not iterable
at line 224return list(games_gen(year, week, home, away, kind, started))
Am I systematically doing something wrong here? Thanks.
The text was updated successfully, but these errors were encountered: