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: 'str' object has no attribute 'phase' when using the "as_plays()" method #122

Open
BlackArbsCEO opened this issue Nov 10, 2015 · 2 comments

Comments

@BlackArbsCEO
Copy link

I'm using Windows 8.1, WinPython 2.7.

I copied the example from the NFLDB intro page.

q = nfldb.Query(db)
q.game(season_year=2012, season_type='Regular')
q.player(full_name='Tom Brady').play_player(passing_yds__ge=60)
for p in q.as_plays():
    print p

I get this error.

Traceback (most recent call last):

  File "<ipython-input-2-21e7fc427f5e>", line 6, in <module>
    print p

  File "C:\Users\Owner\Downloads\Python_Installs\WinPython-64bit-2.7.6.4\python-2.7.6.amd64\lib\site-packages\nfldb\types.py", line 1748, in __str__
    % (self.pos_team, self.yardline, self.time.phase,

AttributeError: 'str' object has no attribute 'phase'
@BlackArbsCEO
Copy link
Author

Not sure what the problem was. I updated to latest and final WinPython 2.7.10.3 version, updated my Psycopg2 install and it worked fine.

@BlackArbsCEO
Copy link
Author

This error started popping up again. I'm really not sure what the cause could be...

@BlackArbsCEO BlackArbsCEO reopened this Dec 16, 2015
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

1 participant