Git Product home page Git Product logo

Comments (9)

ty-porter avatar ty-porter commented on June 20, 2024 1

@stsmith313 this should be fixed on the dev branch, if you want to try it out we can release it

git checkout dev

Then run it, if it works for you we can go ahead and cut the actual release

from mlb-led-scoreboard.

WardBrian avatar WardBrian commented on June 20, 2024

Try the name D-backs

from mlb-led-scoreboard.

stsmith313 avatar stsmith313 commented on June 20, 2024

Try the name D-backs

Yea I've tried every iteration you can think of and same issue. Done the same thing with Arizona as well.

from mlb-led-scoreboard.

WardBrian avatar WardBrian commented on June 20, 2024

The error you originally posted is coming from this file, which uses D-backs. Does the error change if you use that name?

"D-backs": "Arizona Diamondbacks",

from mlb-led-scoreboard.

stsmith313 avatar stsmith313 commented on June 20, 2024

Looks like the error does change.

ERROR (10:05:45): Untrapped error in main!
Traceback (most recent call last):
File "/home/sam/mlb-led-scoreboard/main.py", line 168, in
main(matrix, config)
File "/home/sam/mlb-led-scoreboard/main.py", line 70, in main
data = Data(config)
File "/home/sam/mlb-led-scoreboard/data/init.py", line 37, in init
self.headlines: Headlines = Headlines(config, self.schedule.date.year)
File "/home/sam/mlb-led-scoreboard/data/headlines.py", line 106, in init
self.__compile_feed_list()
File "/home/sam/mlb-led-scoreboard/data/headlines.py", line 183, in __compile_feed_list
self.feed_urls.append(self.__mlb_url_for_team(team))
File "/home/sam/mlb-led-scoreboard/data/headlines.py", line 191, in __mlb_url_for_team
return "{}/{}/{}".format(MLB_BASE, MLB_FEEDS[team_name], MLB_PATH)
KeyError: 'D-backs'

from mlb-led-scoreboard.

ty-porter avatar ty-porter commented on June 20, 2024

What version of the scoreboard is this running? To output:

sudo python3 version.py

from mlb-led-scoreboard.

ty-porter avatar ty-porter commented on June 20, 2024

It looks like the headline keys mismatch:

"D-Backs": "dbacks",

from mlb-led-scoreboard.

stsmith313 avatar stsmith313 commented on June 20, 2024

What version of the scoreboard is this running? To output:

sudo python3 version.py

v6.3.1

I did see the keys mismatched but didn't know if that was intentional or not based on their API

from mlb-led-scoreboard.

stsmith313 avatar stsmith313 commented on June 20, 2024

@ty-porter Yes! That worked. Thanks so much for everyone's help!

from mlb-led-scoreboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.