Coder Social home page Coder Social logo

Tzdata issue about nhl-led-scoreboard HOT 11 CLOSED

pjockey avatar pjockey commented on July 18, 2024
Tzdata issue

from nhl-led-scoreboard.

Comments (11)

falkyre avatar falkyre commented on July 18, 2024 1

Not sure what to say, I'm running multiple boards (7 or 8) and various different OSes (raspbian buster , raspbian bullseye, Alpine, Diet Pi) with the tzlocal at 4.2 and apscheduler at V3.6.3 and also 3.9.1. I'm also running different versions of Python (3.7.3 to 3.10). If you have a spare card, I'd start with a fresh install of the OS and start the install of the boards again. I don't run anything other than the NHL board so I don't know if you are clobbering what the NHL installs or vice versa.

from nhl-led-scoreboard.

falkyre avatar falkyre commented on July 18, 2024 1

Totally different issue. So the other stuff with tzlocal and apscheduler are OK? To test, update your config to not use weather, weather alerts or weather forecast and see if it works. If it does, close this issue and open another one for the Environment Canada stuff. I'm seeing the same issue on some of my boards right now. Not sure if it's an EC datamart issue or something else.

from nhl-led-scoreboard.

falkyre avatar falkyre commented on July 18, 2024

I recall coming up against this last year while developing some new functionality. It seems there's an issue with apscheduler when the OS updates the tzlocal library or python 3.7. What does this give you:

pip3 show apscheduler

and

pip3 show tzlocal

from nhl-led-scoreboard.

pjockey avatar pjockey commented on July 18, 2024
pi@Scoreboard:~ $ pip3 show apscheduler
Name: APScheduler
Version: 3.7.0
Summary: In-process task scheduler with Cron-like capabilities
Home-page: https://github.com/agronholm/apscheduler
Author: Alex Grönholm
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.7/dist-packages
Requires: pytz, setuptools, six, tzlocal
Required-by: 
pi@Scoreboard:~ $ pip3 show tzlocal
Name: tzlocal
Version: 4.2
Summary: tzinfo object for the local timezone
Home-page: UNKNOWN
Author: Lennart Regebro
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.7/dist-packages
Requires: backports.zoneinfo, pytz-deprecation-shim
Required-by: APScheduler

from nhl-led-scoreboard.

pjockey avatar pjockey commented on July 18, 2024

sudo apt upgrade showed an update to tzlocal

from nhl-led-scoreboard.

pjockey avatar pjockey commented on July 18, 2024

I uninstalled and the reinstalled the tzlocal package using pip3 and received this"

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
apscheduler 3.7.0 requires tzlocal~=2.0, but you have tzlocal 4.2 which is incompatible.

from nhl-led-scoreboard.

falkyre avatar falkyre commented on July 18, 2024

Try updating apscheduler to the last V3.x version. Don't upgrade to the V4 beta as it will break everything.

sudo pip3 install apscheduler=3.9.1

The apscheduler V3.7.0 pins it's tzlocal requirements to V2 series, whereas the 3.5.3 version I am running and any version above the 3.7.0 will work with the tzlocal V4 series. I installed the apschedular V3.9.1 and it works with tzlocal V4.2

from nhl-led-scoreboard.

pjockey avatar pjockey commented on July 18, 2024

This little mess up has taken down all of my boards. Nothing shows on the matrix, on any of the boards.

pi@Scoreboard:~/mlb-led-scoreboard $ pip3 show tzlocal
Name: tzlocal
Version: 4.2
Summary: tzinfo object for the local timezone
Home-page: UNKNOWN
Author: Lennart Regebro
Author-email: [email protected]
License: MIT
Location: /home/pi/.local/lib/python3.7/site-packages
Requires: backports.zoneinfo, pytz-deprecation-shim
Required-by: APScheduler
pi@Scoreboard:~/mlb-led-scoreboard $ pip3 show apscheduler
Name: APScheduler
Version: 3.9.1
Summary: In-process task scheduler with Cron-like capabilities
Home-page: https://github.com/agronholm/apscheduler
Author: Alex Grönholm
Author-email: [email protected]
License: MIT
Location: /home/pi/.local/lib/python3.7/site-packages
Requires: pytz, setuptools, six, tzlocal
Required-by: 
pi@Scoreboard:~/mlb-led-scoreboard $ 

from nhl-led-scoreboard.

pjockey avatar pjockey commented on July 18, 2024

This is the error I get now with the starting command:

pi@Scoreboard:~/nhl-led-scoreboard $ sudo python3 src/main.py --led-gpio-mapping=adafruit-hat-pwm --led-brightness=60 --led-slowdown-gpio=2 --led-cols=128 --led-rows=64 --led-rgb-sequence=BGR --led-row-addr-type=3
INFO: Validating config.json.....
INFO: config.json passes validation
22-10-04 17:28:00 INFO Scheduler started
22-10-04 17:28:00 DEBUG Looking for jobs to run
22-10-04 17:28:00 DEBUG No jobs; waiting until a job is added
22-10-04 17:28:00 DEBUG Starting new HTTPS connection (1): dd.weather.gc.ca:443
22-10-04 17:28:01 DEBUG https://dd.weather.gc.ca:443 "GET /citypage_weather/docs/site_list_en.csv HTTP/1.1" 200 32894
22-10-04 17:28:04 DEBUG Starting new HTTPS connection (1): dd.weather.gc.ca:443
Unable to connect to EC, try running again in a few minutes
pi@Scoreboard:~/nhl-led-scoreboard $ 

from nhl-led-scoreboard.

pjockey avatar pjockey commented on July 18, 2024

It appears another reboot seem to have fixed whatever was the problem.

from nhl-led-scoreboard.

falkyre avatar falkyre commented on July 18, 2024

There was an issue with the EC Data Mart. It was extremely slow hence the issue you were seeing. It does look like it's recovered now.

from nhl-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.