mycroftai / fallback-wolfram-alpha Goto Github PK
View Code? Open in Web Editor NEWMycroft AI official Wolfram Alpha Skill - used as a fallback if an Intent is not matched
Home Page: https://mycroft.ai/skills
License: Apache License 2.0
Mycroft AI official Wolfram Alpha Skill - used as a fallback if an Intent is not matched
Home Page: https://mycroft.ai/skills
License: Apache License 2.0
As noted in:
#42
We currently catch a 401 error returned by the server error. Should really be checking if the device is paired before attempting to make a call. Or disable intents unless the device is paired.
If a user is using their own API key this would not be required. Need to handle both scenarios.
When I run msm update
, I get the following error for this skill:
"ERROR - Error running update_skill on fallback-wolfram-alpha: GitException(Git command failed: GitCommandError(['git', 'fetch'], 255, b'error: cannot open .git/FETCH_HEAD: Permission denied\n', b''))"
Anything I am doing wrong?
As I noticed the Wolfram Alpha skill was blacklisted, and a "fallback"-version was available, I installed it.
Asking "what is 2 times 2" gets me this error, and no "4":
- DEBUG - {"type": "recognizer_loop:utterance", "data": {"lang": "en-us", "utterances": ["what is 2 times 2"]}, "context": null}
mycroft.skills.intent_service - ERROR -
Traceback (most recent call last):
File "/home/bokkie/programming/Github/MyCroft/mycroft-core/mycroft/skills/intent_service.py", line 239, in handle_utterance
context_manager=self.context_manager))
StopIteration
- DEBUG - {"type": "intent_failure", "data": {"lang": "en-us", "utterance": "what is 2 times 2"}, "context": null}
mycroft.skills.padatious_service - DEBUG - Padatious fallback attempt: what is 2 times 2
mycroft.skills.core - INFO - Exception in fallback: max() arg is an empty sequence
fallback-wolfram-alpha__init__ - DEBUG - WolframAlpha fallback attempt: what is 2 times 2
fallback-wolfram-alpha__init__ - DEBUG - Falling back to WolframAlpha: what is 2 times 2
Display Manager (mycroft.client.enclosure) - DEBUG - Setting active skill to WolframAlphaSkill
- DEBUG - {"type": "enclosure.mouth.think", "data": {}, "context": null}
requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/wa?input=what+is+2+times+2 HTTP/1.1" 200 417
fallback-wolfram-alpha__init__ - ERROR - Error 1: Invalid appid
Traceback (most recent call last):
File "/opt/mycroft/skills/fallback-wolfram-alpha/__init__.py", line 156, in handle_fallback
res = self.client.query(query)
File "/opt/mycroft/skills/fallback-wolfram-alpha/__init__.py", line 82, in query
return wolframalpha.Result(StringIO(data.content))
File "/home/bokkie/.virtualenvs/mycroft/local/lib/python2.7/site-packages/wolframalpha/__init__.py", line 178, in __init__
super(Result, self).__init__(doc)
File "/home/bokkie/.virtualenvs/mycroft/local/lib/python2.7/site-packages/wolframalpha/__init__.py", line 62, in __init__
self._handle_error()
File "/home/bokkie/.virtualenvs/mycroft/local/lib/python2.7/site-packages/wolframalpha/__init__.py", line 69, in _handle_error
raise Exception(template.format(**self))
Exception: Error 1: Invalid appid
mycroft.skills.core - WARNING - No fallback could handle intent.
Mycroft still doesn't know the speed of light or 2 + 2 even after install.
question parser needs some work
02:57:44.023 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: When will the world end?
02:57:44.024 - WolframAlphaSkill - DEBUG - Non-question, ignoring: When will the world end?
02:52:10.739 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: What is the speed of light?
02:52:10.739 - WolframAlphaSkill - DEBUG - Non-question, ignoring: What is the speed of light?
this is when i type in the cli, if i do it lower case it works
02:57:56.123 - WolframAlphaSkill - DEBUG - WolframAlpha fallback attempt: when will the world end 02:57:56.123 - WolframAlphaSkill - DEBUG - Querying WolframAlpha: when will the world end
e.g. How tall is mount everest
returns
~~~~| INFO | 607 | Skill Recommendations Fallback | fallback-wolfram-alpha
~~~~croft_skills_manager | Best match (1.0): fallback-wolfram-alpha by mycroftai
^--- NEWEST ---^
but then replies with 'I'm not sure I understand'.
I am running
***********************************************************************
** Picroft enclosure platform version: Buster Keaton - Pork Pi
** mycroft-core: 20.2.4 ( master )
***********************************************************************
I'm a little new to this, what additonal information can i provide?
Where do I find a tall building?
>> Data not available
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.