Skip to content

ValueError: invalid literal for int() with base 10: '0.0' in Weather Widget causes crash #687

@sanidhyy

Description

@sanidhyy

Windows version

Windows 11

Windows OS build

26200.7705

YASB version installed

YASB Reborn v1.8.7 x64 (stable)

Describe the bug

I am encountering a crash immediately upon YASB startup related to the weather widget. The application closes without an error message window, the log file shows a ValueError.

I tried changing the city/location in config.yaml to rule out specific local weather data causing the issue. The crash persisted regardless of the location set.

The application only starts successfully if I completely remove or comment out Weather widget from config.yaml file.

Relevant log output

2026-02-06 18:34:34,966 [INFO] [MainThread] [root/log.py:69]: YASB v1.8.7
2026-02-06 18:34:34,967 [INFO] [CLIPipeServer] [cli_server/cli_server.py:215]: CLI server started v1.1.5
2026-02-06 18:34:34,967 [INFO] [MainThread] [cli_server/cli_server.py:106]: Log pipe server started
2026-02-06 18:34:34,968 [INFO] [MainThread] [root/env_loader.py:23]: Loaded environment variables from C:\Users\sanid\.config\yasb\.env
2026-02-06 18:34:34,982 [DEBUG] [MainThread] [qasync._windows._EventPoller/_windows.py:215]: Starting (proactor: <_IocpProactor overlapped#=0 result#=0>)...
2026-02-06 18:34:34,983 [DEBUG] [Dummy-3] [qasync._windows._EventWorker/_windows.py:195]: Thread started
2026-02-06 18:34:35,892 [INFO] [MainThread] [root/service.py:52]: AudioOutputService starting...
2026-02-06 18:34:36,111 [INFO] [MainThread] [root/bar_manager.py:85]: Starting KomorebiEventListener...
2026-02-06 18:34:36,112 [INFO] [MainThread] [root/watcher.py:54]: Created file watcher for path C:\Users\sanid\.config\yasb
2026-02-06 18:34:36,135 [INFO] [Dummy-8] [root/event_listener.py:51]: Created named pipe yasb-632f69c4-035c-11f1-b2cf-60452eac9b9a
2026-02-06 18:34:36,255 [INFO] [Dummy-8] [root/event_listener.py:125]: Komorebi connected to named pipe: yasb-632f69c4-035c-11f1-b2cf-60452eac9b9a
2026-02-06 18:34:36,647 [INFO] [MainThread] [root/api.py:69]: Fetching new weather data at 2026-02-06 18:34:36.647194
2026-02-06 18:34:36,651 [ERROR] [MainThread] [root/main.py:171]: Unhandled exception
Traceback (most recent call last):
  File "D:\a\yasb\yasb\src\core\widgets\yasb\weather.py", line 69, in <lambda>
  File "D:\a\yasb\yasb\src\core\widgets\yasb\weather.py", line 465, in _update_label
ValueError: invalid literal for int() with base 10: '0.0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs investigationInvestigation into the bug/feature/question raised is needed before able to respondbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions