Code Monkey home page Code Monkey logo

mycroft-sunskill's People

Contributors

forslund avatar jarbasai avatar jarbasal avatar marksev1 avatar

Watchers

 avatar  avatar

Forkers

builderjer msgpo

mycroft-sunskill's Issues

Python 3 compatibility

Mycroft core is moving to Python 3, so all skills need to be made compatible as well.

Here is the error log:

22:08:02.729 - mycroft.client.speech.main:handle_utterance:61 - INFO - Utterance: ['when is sunrise']
22:08:02.767 - SKILLS - DEBUG - {"context": null, "type": "skill.converse.request", "data": {"utterances": ["when is sunrise"], "lang": "en-US", "skill_id": "Mycroft-SunSkill"}}
22:08:02.772 - mycroft.skills.main:handle_converse_request:476 - ERROR - Error in converse method for skill Mycroft-SunSkill
Traceback (most recent call last):
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/main.py", line 470, in handle_converse_request
result = instance.converse(utterances, lang)
AttributeError: 'NoneType' object has no attribute 'converse'
22:08:02.782 - SKILLS - DEBUG - {"context": null, "type": "skill.converse.response", "data": {"result": false, "skill_id": 0}}
22:08:02.759 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
22:08:02.877 - mycroft.skills.intent_service:send_metrics:241 - DEBUG - Sending metric if opt_in is enabled
~~~~se", "Mycroft_SunSkillSunRiseKeyword"], ["sunrise", "skill_weatherSunrise"]], "match": "sunrise"}], "match": "sunrise", "key": "sunrise", "confidence": 1.0, "end_token": 2}]}}
22:08:02.892 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
22:08:02.905 - mycroft.skills.core:wrapper:607 - ERROR - An error occurred while processing a request in Sun Skill
Traceback (most recent call last):
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py", line 598, in wrapper
handler(message)
File "/opt/mycroft/skills/Mycroft-SunSkill/__init__.py", line 37, in handle_sunrise_intent
sunrise = self.schedule['sunrise'].astimezone(self.localtz)
File "/opt/mycroft/skills/Mycroft-SunSkill/__init__.py", line 30, in schedule
sun = SolarTime()
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/solartime.py", line 56, in __init__
self.solar_depression = solar_depression  # Set default depression in degrees
File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/solartime.py", line 78, in solar_depression
if isinstance(depression, basestring):
NameError: name 'basestring' is not defined
22:08:02.907 - SKILLS - DEBUG - {"context": null, "type": "mycroft.skill.handler.start", "data": {"name": "SunSkill.handle_sunrise_intent"}}
22:08:02.931 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
~~~~2120040863", "client_name": "mycroft_listener"}, "type": "speak", "data": {"utterance": "An error occurred while processing a request in Sun Skill", "expect_response": false}}
22:08:02.953 - SKILLS - DEBUG - {"context": null, "type": "mycroft.skill.handler.complete", "data": {"name": "SunSkill.handle_sunrise_intent"}}

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.