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

'what is the weather in baltimore' returns an error #30

Closed
goldyfruit opened this issue Mar 28, 2023 · 2 comments
Closed

'what is the weather in baltimore' returns an error #30

goldyfruit opened this issue Mar 28, 2023 · 2 comments

Comments

@goldyfruit
Copy link
Member

2023-03-28 15:55:03.544 - skill-ovos-weather.openvoiceos - ERROR - Unexpected error retrieving weather
Traceback (most recent call last):
  File "/home/ovos/.local/share/mycroft/skills/skill-ovos-weather.openvoiceos/__init__.py", line 1042, in _get_weather
    latitude, longitude = self._determine_weather_location(intent_data)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.local/share/mycroft/skills/skill-ovos-weather.openvoiceos/__init__.py", line 1086, in _determine_weather_location
    latitude = intent_data.geolocation["latitude"]
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.local/share/mycroft/skills/skill-ovos-weather.openvoiceos/skill/intent.py", line 56, in geolocation
    self._geolocation = get_geolocation(self.location)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.local/share/mycroft/skills/skill-ovos-weather.openvoiceos/skill/util.py", line 105, in get_geolocation
    geolocation = geolocation_api.get_geolocation(location)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/mycroft/deprecated/api.py", line 184, in get_geolocation
    return self._real_api.get_geolocation(location)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_backend_client/api.py", line 351, in get_geolocation
    return self.backend.geolocation_get(location)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_backend_client/backends/offline.py", line 171, in geolocation_get
    "code": details["addresstags"].get("postcode") or details["calculated_postcode"] or "",
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
@emphasize
Copy link
Member

emphasize commented Apr 3, 2023

can you please reopen in ovos_backend_client?

note: some intents require("Location") - emphasis on uppercase - which creates a uppercase "Location" key in message.data and thus None with message.data.get("location") , but this is not the case here

@goldyfruit
Copy link
Member Author

can you please reopen in ovos_backend_client?

Done.

Thanks for the explaination.

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

No branches or pull requests

2 participants