MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Wit.ai Parsing error



  • So,
    I have looked on Google and various repos but my problem still stands,
    Wit.ai failed parsing app.json
    I edited this because another person said to but there is still the problem. I pasted app.json into JSONLint and it was valid. Please help

    on raspberry pi3 btw



  • @Mahieedaboss

    Maybe I should have explained a bit more:

    I was following the yt vid by HackerShack and got to the bit where he creates an app using wit.ai. In this, he presses New app+ and then types a name, description and as his bkup file, inserts wit_training_data.zip
    this can be found at
    https://github.com/HackerShackOfficial/AI-Smart-Mirror/tree/master/models
    I pressed +create app and then the error popped up “failed parsing app.json”
    I troubleshooted and found this:
    https://github.com/wit-ai/wit/issues/1538
    I try to change
    “zip-command”: “zip smart-mirror.zip smart-mirror/app.json smart-mirror/entities/.json smart-mirror/actions.json smart-mirror/stories.json smart-mirror/expressions.json”,
    to
    “zip-command”: “zip smart-mirror.zip smart-mirror/app.json smart-mirror/entities/.json smart-mirror/actions.json smart-mirror/stories.json smart-mirror/expressions.json”,
    but i still get the error notification. any suggestion?

    Like many others, this change did not work.
    I copied the saved contents off app.json into
    https://jsonlint.com/
    and the json was valid

    what do i do??



  • Right,Update

    I solved this issue

    1.Extract files from “smart-mirror”
    2.edit app.json:
    {
    “version” : 20160513,
    “zip-command” : “zip smart-mirror.zip smart-mirror/app.json smart-mirror/entities/*.json smart-mirror/actions.json smart-mirror/stories.json smart-mirror/expressions.json”,
    “data” : {
    “name” : “smart-mirror”,
    “description” : “smart mirror assistant”,
    “lang” : “en”
    }
    }

    BECOMES

    {
    “version” : 20160513,
    “zip-command” : “zip smart-mirror.zip smart-mirror/app.json smart-mirror/entities/*.json smart-mirror/actions.json smart-mirror/stories.json smart-mirror/expressions.json”,
    “data” : {
    “name” : “smart-mirror”,
    “description” : “smart mirror assistant”,
    “lang” : “en”,
    “timezone”: “Europe/London”
    }
    }

    1. Compress the newly updated “smart-mirror” file
    2. Do the whole wit.ai thing but insert this new zip

    I’m pretty sure this should work

    New problem

    Failed parsing entities/

    I guess we have to edit some more but what exactly??



  • @Mahieedaboss is the entities folder in the new zip file?



  • yes it is



  • hey, so I did what you said to do and got the error parsing app.json could you leave a direct link to the compressed file, it would help a lot Thanks!


Log in to reply