Git Product home page Git Product logo

mycroftai / fallback-duckduckgo Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 19.0 99 KB

Mycroft AI official Duck Duck Go Skill - used as a fallback if an Utterance can't be matched to an Intent

Home Page: https://mycroft.ai/skills

License: Apache License 2.0

Python 55.61% Gherkin 13.18% QML 31.21%
mycroft mycroft-skill mycroftai mycroft-fallback duckduckgo duckduckgo-api duckduckgo-search hacktoberfest

fallback-duckduckgo's Introduction

DuckDuckGo

Use DuckDuckGo to answer questions

About

Query DuckDuckGo as a fallback when no other Skill can answer the question.

Uses the DuckDuckGo API to provide information.

Examples

  • "Who is George Washington?"
  • "What is plasma?"
  • "Who's Madonna?"

Credits

Mycroft AI (@MycroftAI)

Category

Information

Tags

#duckduckgo #query #fallback #search-engine #searchengine

fallback-duckduckgo's People

Contributors

chrisveilleux avatar dave-esch avatar devs-mycroft avatar forslund avatar kathyreid avatar ken-mycroft avatar krisgesling avatar learnedvector avatar luke5sky avatar matthewscholefield avatar penrods avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fallback-duckduckgo's Issues

Duckduckgo before Wolfram Alpha?

I'm having trouble getting this to work...
Even uninstalling "fallback-wolfram-alpha" does not seem to remove the seemingly ever-present skill, and duckduckgo does not seem to get a chance.

"Who is" vs "Tell me about"

Companion issue to: MycroftAI/skill-wiki#58

Is your feature request related to a problem? Please describe.
"Who is" requests don't seem to trigger the Wikipedia Skill - or DDG is just way quicker?
Alternatively - "tell me about" directly triggers the Wikipedia Skill but not DDG.

Describe the solution you'd like
Either of these question bases should trigger the Common Query Framework - and both DDG and Wikipedia should be returning it's confidence quickly enough that it can attempt to answer.

loading of skill fails on Pi3b+ fresh install

error remains after restarting pi or reloading skills

18:10:45.824 | INFO     |  6203 | mycroft.skills.skill_loader:load:185 | ATTEMPTING TO LOAD SKILL: mycroft-fallback-duck-duck-go.mycroftai
 18:10:45.918 | INFO     |  6203 | mycroft.skills.settings:get_local_settings:83 | /home/pi/.config/mycroft/skills/mycroft-fallback-duck-duck-go.mycroftai/settings.json
 18:10:45.927 | ERROR    |  6203 | mycroft.skills.skill_loader:_create_skill_instance:295 | Skill __init__ failed with TypeError('expected str, bytes or os.PathLike object, not NoneType')
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/skill_loader.py", line 292, in _create_skill_instance
    self.instance = skill_module.create_skill()
  File "/opt/mycroft/skills/mycroft-fallback-duck-duck-go.mycroftai/__init__.py", line 294, in create_skill
    return DuckduckgoSkill()
  File "/opt/mycroft/skills/mycroft-fallback-duck-duck-go.mycroftai/__init__.py", line 54, in __init__
    super(DuckduckgoSkill, self).__init__()
  File "/home/pi/mycroft-core/mycroft/skills/common_query_skill.py", line 71, in __init__
    with open(noise_words_filename) as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType
 18:10:45.935 | ERROR    |  6203 | mycroft.skills.skill_loader:_communicate_load_status:351 | Skill mycroft-fallback-duck-duck-go.mycroftai failed to load

New issue comming on new version of mycroft 18.2.5

screenshot_20180514_093017
09:27:44.897 - mycroft.skills.core:load_skill:144 - ERROR - Failed to load skill: mycroft-fallback-duck-duck-go.mycroftai
Traceback (most recent call last):
File "/home/hellcatvn/mycroft-core/mycroft/skills/core.py", line 115, in load_skill
('.py', 'rb', imp.PY_SOURCE)
File "/usr/lib/python3.6/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "", line 684, in _load
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/opt/mycroft/skills/mycroft-fallback-duck-duck-go.mycroftai/init.py", line 16, in
import duckduckgo as ddg
ModuleNotFoundError: No module named 'duckduckgo'

ParseError from specific utterances

Describe the bug
Certain utterances result in ParseError

To Reproduce

  1. "Hey Mycroft, what is four score and seven years ago"
  2. See error:
2021-04-28 01:45:30.463 | ERROR | 804 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:835 | An error occurred while processing a request in Duckduckgo Skill
Traceback (most recent call last):
File “/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py”, line 66, in wrapper
handler(message)
File “/home/pi/mycroft-core/mycroft/skills/common_query_skill.py”, line 76, in __handle_question_query
result = self.CQS_match_query_phrase(search_phrase)
File “/opt/mycroft/skills/mycroft-fallback-duck-duck-go.mycroftai/init.py”, line 133, in CQS_match_query_phrase
answer = self.respond(query[len(test):])
File “/opt/mycroft/skills/mycroft-fallback-duck-duck-go.mycroftai/init.py”, line 109, in respond
r = ddg.query(query)
File “/home/pi/mycroft-core/.venv/lib/python3.7/site-packages/ddg3.py”, line 29, in query
xml = ElementTree.fromstring(response)
File “/usr/lib/python3.7/xml/etree/ElementTree.py”, line 1315, in XML
parser.feed(text)
File “”, line None

Environment (please complete the following information):

  • Device type: Mark II
  • Mycroft-core version: 20.8.1
  • Mycroft container: 2021-04-08

Thanks to Wallyllama for reporting this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.