NeonGeckoCom / skill-weather

Mycroft AI official Weather Skill, providing weather conditions and forecasts.
https://mycroft.ai/skills
Apache License 2.0
1 stars 1 forks source link

[BUG] Trying to query weather forecast failed #48

Closed Lilja closed 6 months ago

Lilja commented 1 year ago

Description

I asked my mark 2, "hey neon, tell me about tomorrow's weather forecast". It tried to query that information from wikipedia.

Steps to Reproduce

Relevant Code

No response

Other Notes

https://matrix.to/#/!ZhEZYNzKBfpEAhtQIz:matrix.org/$4RGxN1mYABoU0M5GkkYAMqp_LvF-MN8wUXPlk49tHQI?via=matrix.org&via=strugee.net&via=beeper.com

voice.log

2023-08-31 03:26:33.341 - skills - neon_core.skills.intent_service:handle_utterance:229 - INFO - ["tell me about tomorrow's weather forecast"]
2023-08-31 03:26:34.562 - skills - ovos_utils.gui:_normalize_page_name:835 - WARNING - Deprecation version=0.1.0. Caller=skill_wikipedia:71. GUI resources should exclude gui-specific file extensions. This call should probably pass `SYSTEM_AnimatedImageFrame`, instead of `SYSTEM_AnimatedImageFrame.qml`
2023-08-31 03:26:35.970 - skills - ovos_utils.file_utils:resolve_resource_file:152 - WARNING - Deprecation version=0.1.0. Caller=ovos_utils.dialog:166. Expected a dict config and got None.
2023-08-31 03:26:36.190 - skill-wikipedia.neongeckocom - ERROR - string indices must be integers
Traceback (most recent call last):
  File "/home/neon/venv/lib/python3.10/site-packages/ovos_utils/messagebus.py", line 554, in wrapper
    handler(message)
  File "/home/neon/venv/lib/python3.10/site-packages/skill_wikipedia/__init__.py", line 83, in handle_wiki_query
    self._speak_wiki(data, get_message_user(message))
  File "/home/neon/venv/lib/python3.10/site-packages/skill_wikipedia/__init__.py", line 117, in _speak_wiki
    self.current_picture = data["images"]
TypeError: string indices must be integers
NeonDaniel commented 6 months ago

"tell me tomorrow's forecast" and "tell me tomorrow's weather" worked for me, but adding "about" still results in a wikipedia match

NeonDaniel commented 6 months ago

This bug is related to wikipedia as removing that skill resolves the issue