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

NameError: global name 'matchup_info' is not defined #21

Closed
tjhall9 opened this issue Jul 25, 2021 · 5 comments · Fixed by #23
Closed

NameError: global name 'matchup_info' is not defined #21

tjhall9 opened this issue Jul 25, 2021 · 5 comments · Fixed by #23

Comments

@tjhall9
Copy link
Contributor

tjhall9 commented Jul 25, 2021

Getting the following traceback upon running
sudo python main.py --led-gpio-mapping=adafruit-hat --led-cols 64

INFO (22:57:16): Sleeper FF Scoreboard - v0.0.5 (64x32)
INFO (22:57:17): getting teams
INFO (22:57:18): getting avatars
INFO (22:57:20): render draft info
INFO (22:57:20): 459797164151795712
INFO (22:57:20): getting draft
INFO (22:57:20): getting list of players
uh oh?
Traceback (most recent call last):
File "main.py", line 29, in
MainRenderer(matrix, data).render()
File "/home/pi/fantasy-football-scoreboard/renderer/main.py", line 35, in render
self.__render_draft()
File "/home/pi/fantasy-football-scoreboard/renderer/main.py", line 76, in __render_draft
self.data.refresh_draft()
File "/home/pi/fantasy-football-scoreboard/data/data.py", line 60, in refresh_draft
self.draft = sleeper.get_draft(self.league_id)
File "/home/pi/fantasy-football-scoreboard/data/sleeper_api_parser.py", line 132, in get_draft
return matchup_info
NameError: global name 'matchup_info' is not defined

I just created a league with only myself in it, nothing yet scheduled. Could this be why it's throwing errors or did Sleeper break the API during the offseason?

@mikemountain
Copy link
Owner

mikemountain commented Jul 25, 2021 via email

@morpherios
Copy link

Just wanted to chime in that I also get this error, and it's in a league in which the draft is completed and the schedule is set up.

@morpherios
Copy link

Unless I'm doing something wrong (I ran a git pull and bash update.sh) I'm still getting the same error with matchup info. Happens both with am already drafted league and a predraft league

@mikemountain
Copy link
Owner

@morpherios can you post the output when you run main.py?

@morpherios
Copy link

I am a rather complete moron. I figured it out. Had to rename config.json so the pull would complete. If you remember from last year I kinda suck at this.

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

Successfully merging a pull request may close this issue.

3 participants