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 21 17:33:09 x270.home.lan ovos-core[432445]: AttributeError: 'NoneType' object has no attribute 'split' #36

Open
goldyfruit opened this issue Oct 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@goldyfruit
Copy link
Member

Oct 21 17:33:09 x270.home.lan ovos-core[432445]: 2024-10-21 17:33:09.387 - skills - padacioso:calc_intent:255 - DEBUG - {'entities': {'keyword': 'Microsoft OS'}, 'conf': 0.96, 'name': 'question'}
Oct 21 17:33:09 x270.home.lan ovos-core[432445]: 2024-10-21 17:33:09.388 - skills - skill_ovos_ddg:match_infobox_intent:116 - DEBUG - DDG Intent: question Keyword: Microsoft OS - Confidence: 0.96
Oct 21 17:33:09 x270.home.lan ovos-core[432445]: 2024-10-21 17:33:09.681 - skills - ovos_workshop.skills.common_query_skill:__get_cq:169 - ERROR - error matching what is Microsoft OS with skill-ovos-ddg.openvoiceos
Oct 21 17:33:09 x270.home.lan ovos-core[432445]: Traceback (most recent call last):
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_workshop/skills/common_query_skill.py", line 167, in __get_cq
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     result = self.CQS_match_query_phrase(search_phrase)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/skill_ovos_ddg/__init__.py", line 388, in CQS_match_query_phrase
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     summary = self.ask_the_duck(sess)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:               ^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/skill_ovos_ddg/__init__.py", line 412, in ask_the_duck
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     results = self.duck.long_answer(query, lang=sess.lang, units=sess.system_unit)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_plugin_manager/templates/solvers.py", line 133, in func_wrapper
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     return func(*args, **kwargs)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:            ^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_plugin_manager/templates/solvers.py", line 100, in func_wrapper
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     return func(*args, **kwargs)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:            ^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_plugin_manager/templates/solvers.py", line 27, in func_wrapper
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     return func(*args, **kwargs)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:            ^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_plugin_manager/templates/solvers.py", line 391, in long_answer
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     steps = _call_with_sanitized_kwargs(self.get_expanded_answer, query, lang=lang, units=units)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/ovos_plugin_manager/templates/solvers.py", line 711, in _call_with_sanitized_kwargs
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     return func(*args, **kwargs)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:            ^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/skill_ovos_ddg/__init__.py", line 318, in get_expanded_answer
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     infobox, _ = self.get_infobox(query)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:                  ^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/skill_ovos_ddg/__init__.py", line 172, in get_infobox
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     data = self.extract_and_search(query, lang=lang, units=units)  # handles translation
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/skill_ovos_ddg/__init__.py", line 209, in extract_and_search
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     kw = self.extract_keyword(query, lang=lang)
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:   File "/home/goldyfruit/.venvs/ovos/lib64/python3.11/site-packages/skill_ovos_ddg/__init__.py", line 70, in extract_keyword
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:     lang = lang.split("-")[0]
Oct 21 17:33:09 x270.home.lan ovos-core[432445]:            ^^^^^^^^^^
Oct 21 17:33:09 x270.home.lan ovos-core[432445]: AttributeError: 'NoneType' object has no attribute 'split'
@goldyfruit goldyfruit added the bug Something isn't working label Oct 21, 2024
@JarbasAl JarbasAl self-assigned this Oct 21, 2024
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

No branches or pull requests

2 participants