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

AttributeError: module 'nflgame.live' has no attribute '_cur_season_phase' #140

Open
james-childress opened this issue Sep 9, 2020 · 5 comments

Comments

@james-childress
Copy link

Hi,

I recently updated to python3 to begin using nflgame for the new season. I've tried following the initial set up directions running:
python3 -m venv ~/python3
pip install nflgame-redux
nflgame-update-players

When I run the last command, I get:
Traceback (most recent call last):
File "/Users/jachild/python3/bin/nflgame-update-players", line 4, in <module>
nflgame.update_players.run()
File "/Users/jachild/python3/lib/python3.6/site-packages/nflgame/update_players.py", line 360, in run
phase = nflgame.live._cur_season_phase
AttributeError: module 'nflgame.live' has no attribute '_cur_season_phase'

Is this a known issue? Should I be installing a different version?

Thanks

@RoboTums
Copy link

Hi,
I have the same issue-- I dug around in the site-packages/nflgame/update_players.py, and found that I could set the command
nflgame-update-players --phase to three options: POST, PRE, and REG. However, all three fail with the same error as OP.

It seems that _cur_season_phase doesn't work when it's specified by the user.

@schoenbl
Copy link

I get the same issue. Has anyone found a solution?

@mickeelm
Copy link

See the other issues. The APIs are locked.

@schoenbl
Copy link

@mickeelm do you know of anywhere else that has access to current season play by play data?

@mickeelm
Copy link

Sorry I dont know, check the other threads/search around :)

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

4 participants