• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Wit.ai Parsing error

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 929 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Mahieedaboss
    last edited by Apr 13, 2020, 3:22 PM

    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

    M 1 Reply Last reply Apr 13, 2020, 3:55 PM Reply Quote 0
    • M Offline
      Mahieedaboss @Mahieedaboss
      last edited by Apr 13, 2020, 3:55 PM

      @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??

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mahieedaboss
        last edited by Apr 13, 2020, 9:56 PM

        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??

        S 1 Reply Last reply Apr 13, 2020, 10:01 PM Reply Quote 0
        • S Away
          sdetweil @Mahieedaboss
          last edited by Apr 13, 2020, 10:01 PM

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

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mahieedaboss
            last edited by Apr 14, 2020, 9:59 AM

            yes it is

            1 Reply Last reply Reply Quote 0
            • T Offline
              thepythonscript
              last edited by Aug 18, 2020, 11:32 PM

              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!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy