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

Oct 23 14:24:20 x270.home.lan ovos-core[177137]: AttributeError: 'TimeSkill' object has no attribute 'translate_namedvalues' #56

Closed
goldyfruit opened this issue Oct 23, 2024 · 0 comments · Fixed by #64
Assignees
Labels
bug Something isn't working

Comments

@goldyfruit
Copy link
Member

goldyfruit commented Oct 23, 2024

Triggered with "what time is it in Paris`.

Oct 23 14:24:20 x270.home.lan ovos-core[177137]: Status code 403 from https://nominatim.openstreetmap.org/search: ERROR - 403 Client Error: Forbidden for url: https://nominatim.openstreetmap.org/search?q=paris&format=jsonv2&addressdetails=1&limit=1
Oct 23 14:24:20 x270.home.lan ovos-core[177137]: 2024-10-23 14:24:20.699 - skills - ovos_utils.file_utils:resolve_resource_file:194 - WARNING - Deprecation version=0.1.0. Caller=ovos_utils.dialog:166. Expected a dict config and got None.
Oct 23 14:24:20 x270.home.lan ovos-core[177137]: 2024-10-23 14:24:20.711 - skill-ovos-date-time.openvoiceos - ERROR - 'TimeSkill' object has no attribute 'translate_namedvalues'
Oct 23 14:24:20 x270.home.lan ovos-core[177137]: Traceback (most recent call last):
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/ovos_utils/events.py", line 78, in wrapper
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     handler(message)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 312, in handle_future_time_simple
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     self.handle_query_future_time(message)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 302, in handle_query_future_time
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     self.handle_query_time(message)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 291, in handle_query_time
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     self.speak_time("time.current", location=location)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 269, in speak_time
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     current_time = self.get_spoken_time(location)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 205, in get_spoken_time
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     dt = self.get_datetime(location, anchor_date)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 190, in get_datetime
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     tz = self.get_timezone_in_location(location)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 179, in get_timezone_in_location
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     timezone = self._get_timezone_from_table(location_string)
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.12/site-packages/skill_ovos_date_time/__init__.py", line 123, in _get_timezone_from_table
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:     timezones = self.translate_namedvalues("timezone.value")
Oct 23 14:24:20 x270.home.lan ovos-core[177137]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 23 14:24:20 x270.home.lan ovos-core[177137]: AttributeError: 'TimeSkill' object has no attribute 'translate_namedvalues'
@JarbasAl JarbasAl self-assigned this Nov 4, 2024
@JarbasAl JarbasAl added the bug Something isn't working label Nov 4, 2024
JarbasAl added a commit that referenced this issue Nov 6, 2024
JarbasAl added a commit to OpenVoiceOS/ovos-skill-alerts that referenced this issue Nov 6, 2024
self.translate has been deprecated for a while and remove from ovos-workshop base class

similar to OpenVoiceOS/skill-ovos-date-time#56
JarbasAl added a commit that referenced this issue Nov 6, 2024
JarbasAl added a commit to OpenVoiceOS/ovos-skill-alerts that referenced this issue Nov 6, 2024
self.translate has been deprecated for a while and remove from ovos-workshop base class

similar to OpenVoiceOS/skill-ovos-date-time#56
JarbasAl added a commit to OpenVoiceOS/skill-ovos-parrot that referenced this issue Nov 6, 2024
self.translate has been deprecated for a while and remove from ovos-workshop base class

similar to OpenVoiceOS/skill-ovos-date-time#56
JarbasAl added a commit to OpenVoiceOS/skill-ovos-parrot that referenced this issue Nov 6, 2024
self.translate has been deprecated for a while and remove from ovos-workshop base class

similar to OpenVoiceOS/skill-ovos-date-time#56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants