• 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.

Hello-Lucy installation troubles

Scheduled Pinned Locked Moved Unsolved Troubleshooting
31 Posts 4 Posters 7.5k Views 4 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.
  • S Offline
    SSkull995
    last edited by Feb 24, 2020, 7:28 AM

    Hello MMM community!

    Hope you can help me out:
    As already mentioned on GitHub, I am having some problems during Lucy installation. The problems rely one on the fact that some npm packages are missing and had to install manually. The second is that Lucy does not recognize my microphone, even if the pi does (alsamixer finds the card and the mic can record). I set the card as in the readme: 0,0 is the card and the device.
    No clue why this happens, why both the things happen actually.

    I also asked the holo to Mykle1, so I have a question for him: I saw you put the MM on a Windows machine. Is the AI model developed by HackeShackOfficial? I wanted the holo to make the mirror more smart, but I saw they installed it on a Mac based machine, not raspi.
    Do you think it could be set for a raspi?

    Thanks for the help, any help is much appreciated!!!

    M 1 Reply Last reply Feb 24, 2020, 10:33 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @SSkull995
      last edited by Feb 24, 2020, 10:33 PM

      @SSkull995

      Ok, and thanks for bringing your issue here. It’s just easier to troubleshoot here than github.

      After installation, did you cd Hello-Lucy/installers and then run bash dependencies.sh in your terminal? You should not have to install any dependencies manually after that.

      Lucy does not recognize my microphone

      Did you follow the directions here?
      https://github.com/mykle1/Hello-Lucy/blob/master/piAudioSetup.md

      Please run this command in your terminal. arecord -ls and post the result here (in a code block).

      I saw you put the MM on a Windows machine

      All my machines are running Ubuntu

      Lucy (the holo) is an animated gif file. It doesn’t matter what platform you are running MagicMirror on. It will work. I will supply you with the gif but I have to warn you. A Pi will struggle to run that gif smoothly, if at all, and it will certainly be to the detriment of the Pi’s performance and almost certainly create a heat issue. You will already experience some lag just running Hello-Lucy on a Pi. However, the choice is yours.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S Offline
        SSkull995
        last edited by Feb 25, 2020, 2:05 PM

        Hi Mykle!
        First, thank you for the response! Second, I just reinstalled Lucy and the whole MM from the beginning. I still get an error while launching MM with Lucy, the pocket sphinx-continuous module is missing. I tried to install it via npm, but nothing. I do not know if I need to install it in a specific directory, like the Hello-Lucy one, or not.

        For the microphone let’s see because I made a change, but until the module starts I cannot see if it is working or not.

        What do you suggest to do now? I follow the guide, step by step, I really do not know what is missing right now.
        Many thanks and have a nice day!

        S 1 Reply Last reply Feb 25, 2020, 3:54 PM Reply Quote 0
        • S Away
          sdetweil @SSkull995
          last edited by Feb 25, 2020, 3:54 PM

          @SSkull995 pocketsphinx is installed by the installers/dependencies.sh script

          YOU have to run that manually, as the readme says

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 3 Replies Last reply Feb 25, 2020, 4:31 PM Reply Quote 0
          • S Offline
            SSkull995 @sdetweil
            last edited by SSkull995 Feb 25, 2020, 4:44 PM Feb 25, 2020, 4:31 PM

            @sdetweil hey man, as I wrote I already ran the dependencies.sh in the installer directory. I have the log, everything went fine.
            Still don’t have the module in the system

            1 Reply Last reply Reply Quote 0
            • S Offline
              SSkull995 @sdetweil
              last edited by SSkull995 Feb 25, 2020, 4:44 PM Feb 25, 2020, 4:42 PM

              @sdetweil So I just ran again the installer, weird thing happens. I don’t know why, the package.json is not present in the directory. So this message comes up:
              npm WARN saveError ENOENT: no such file or directory, open ‘/root/pocketsphinx/package.json’
              npm WARN enoent ENOENT: no such file or directory, open ‘/root/pocketsphinx/package.json’
              npm WARN pocketsphinx No description
              npm WARN pocketsphinx No repository field.
              npm WARN pocketsphinx No README data
              npm WARN pocketsphinx No license field.

              That is why I don’t have it installed! Should I generate a random package.json with the npm init command?

              1 Reply Last reply Reply Quote 0
              • S Offline
                SSkull995 @sdetweil
                last edited by Feb 25, 2020, 4:57 PM

                @sdetweil
                This is the output error when I run npm start. I generated the config.json with the npm init, no more errors during dependencies installation.

                [17:54:16.999] [ERROR] App threw an error during load
                [17:54:17.000] [ERROR] Error: Cannot find module ‘pocketsphinx-continuous’
                at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                at Function.Module._resolveFilename (/home/pi/MM/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                at Function.Module._resolveFilename (/home/pi/MM/node_modules/module-alias/index.js:49:29)
                at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                at Module.require (internal/modules/cjs/loader.js:658:17)
                at require (internal/modules/cjs/helpers.js:20:18)
                at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:2:13)
                at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:410:3)
                at Module._compile (internal/modules/cjs/loader.js:711:30)
                at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10)
                [17:54:17.002] [LOG] Whoops! There was an uncaught exception…
                [17:54:17.002] [ERROR] { Error: Cannot find module ‘pocketsphinx-continuous’
                at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                at Function.Module._resolveFilename (/home/pi/MM/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                at Function.Module._resolveFilename (/home/pi/MM/node_modules/module-alias/index.js:49:29)
                at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                at Module.require (internal/modules/cjs/loader.js:658:17)
                at require (internal/modules/cjs/helpers.js:20:18)
                at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:2:13)
                at Object. (/home/pi/MM/modules/Hello-Lucy/node_helper.js:410:3)
                at Module._compile (internal/modules/cjs/loader.js:711:30)
                at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10) code: ‘MODULE_NOT_FOUND’ }

                There still is this:
                [STEP 3/5] Installing pocketsphinx | Done
                [STEP 4/5] Exporting paths
                [STEP 4/5] Exporting paths | Done
                [STEP 5/5] Installing npm dependencies
                dependencies.sh: line 89: cd: /root/MagicMirror/modules/Hello-Lucy: No such file or directory

                Why no directory in root? Many thanks and sorry!

                S 1 Reply Last reply Feb 25, 2020, 5:03 PM Reply Quote 0
                • S Away
                  sdetweil @SSkull995
                  last edited by Feb 25, 2020, 5:03 PM

                  @SSkull995 you have to

                  cd ~/MagicMirror/modules/MMM-Hello-Lucy/installers
                  ./dependencies.sh
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Feb 25, 2020, 5:04 PM Reply Quote 0
                  • S Away
                    sdetweil @sdetweil
                    last edited by sdetweil Feb 25, 2020, 5:04 PM Feb 25, 2020, 5:04 PM

                    AND NOT sudo
                    And logged on as normal user, not root

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Feb 25, 2020, 5:29 PM Reply Quote 0
                    • S Offline
                      SSkull995 @sdetweil
                      last edited by Feb 25, 2020, 5:29 PM

                      @sdetweil man, I never ran sudo.
                      And I still don’t know why the program gives me the error about the config.json file and the dependencies.sh
                      Btw, ./dependencies is no command

                      S S 2 Replies Last reply Feb 25, 2020, 5:34 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 4
                      1 / 4
                      • First post
                        4/31
                        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