Read the statement by Michael Teeuw here.
Alexa not working
-
Hello. My Awesome Alexa is not working. All i see is a black screen. A dont know much of programming so please HELP.
-
@laluromeo tell me more.
was it working?
how did u install it?can you show the messages from where u start mm?
if npm start, then that terminal window
if pm2, then pm2 logs–lines=100 -
@sdetweil
Thankyou for answear.
pi@raspberrypi:~ $ cd MagicMirror
pi@raspberrypi:~/MagicMirror $ npm run startmagicmirror@2.15.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[28.06.2021 17:27.55.653] [LOG] Starting MagicMirror: v2.15.0
[28.06.2021 17:27.55.673] [LOG] Loading config …
[28.06.2021 17:27.55.692] [LOG] Loading module helpers …
[28.06.2021 17:27.58.698] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘node-pre-gyp’
Require stack:- /home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js
- /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
[28.06.2021 17:27.58.703] [LOG] Loading module helpers …
[28.06.2021 17:27.58.720] [ERROR] App threw an error during load
[28.06.2021 17:27.58.725] [ERROR] Error: Cannot find module ‘node-pre-gyp’
Require stack:- /home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js
- /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:848:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10)
[28.06.2021 17:27.58.731] [ERROR] Whoops! There was an uncaught exception…
[28.06.2021 17:27.58.749] [ERROR] Error: Cannot find module ‘node-pre-gyp’
Require stack: - /home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js
- /home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:972:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:249:921)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:848:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1032:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:1152:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1173:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/node_modules/snowboy/lib/node/index.js’,
‘/home/pi/MagicMirror/modules/MMM-awesome-alexa/node_helper.js’,
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/js/electron.js’,
‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[28.06.2021 17:27.58.757] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[28.06.2021 17:27.58.759] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[28.06.2021 17:27.59.662] [LOG] Launching application.
-
@laluromeo said in Alexa not working:
node-pre-gyp
missing dependency, sound like installation not complete
you had to do the 14 step install process listed on the wiki, right?
I have a script that does those , I just copy/pasted and made it a script so I didn’t have to type…
ignore the errors til; the last stephttps://www.dropbox.com/s/omrx3vztjp738hf/do-install.sh?dl=0
-
@sdetweil
Never worked, I just installed awesome alexa. The method to install is from MMM-awesome-alexa from modules section @ https://magicmirror.builders/ -
@laluromeo from the doc linked to at that url
3rd party takes you to the item in the list, click that link takes u to the module home page on github, thenHow to Check out the documentation for installation and usage: https://awesome-alexa.js.org
which then says
Installing First you have to setup your speakers and microphone correctly: Audio setup After you have done audio setup you can install Awesome Alexa module to your MagicMirror: Installation
which then says
Raspberry Pi Specific Dependencies If you are using Raspberry Pi install the following: $ sudo apt-get install swig3.0 python-pyaudio python3-pyaudio sox $ pip install pyaudio Copy to clipboardErrorCopied Note: You may need these to get python-pyaudio to work as mentioned here: $ sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools Copy to clipboardErrorCopied Then install the atlas matrix computing library: $ sudo apt-get install libatlas-base-dev Copy to clipboardErrorCopied Step 2. Install Module Execute the following commands to install the module: Originally from: https://github.com/dolanmiu/MMM-awesome-alexa/issues/164#issuecomment-492951739 $ cd ~/MagicMirror/modules # Navigate to module folder $ git clone https://github.com/dolanmiu/MMM-awesome-alexa.git # Clone this repository $ cd MMM-awesome-alexa # go into the module directory $ npm install --only=prod # Install depdendencies $ cd node_modules $ rm -rf snowboy # Remove the installed snowboy $ git clone https://github.com/Kitt-AI/snowboy.git # Manually get snowboy from git $ cd snowboy # Go into the /snowboy directory $ rm -rf node_modules $ npm install nan --save # Make sure you install this in the /snowboy directory $ npm install node-pre-gyp@0.12.0 --save # Make sure you install this in the /snowboy directory $ npm install # Make sure you install in the /snowboy directory $ npm run prepublish # Make sure you run this in the /snowboy directory $ npm install --save-dev electron-rebuild # Make sure you install this in the /snowboy directory $ npm install nan # Make sure you install this in the /snowboy directory $ ./node_modules/.bin/electron-rebuild # Build snowboy to your device specifications, in the /snowboy directory
-
@sdetweil Thank You. I Reinstalled for the second time. Now it work just fine.