Solved EXT-MusicPlayer Installed no error. I can see the animated icon. But it exit wothout playing music.
-
HI, Thanks for the great module. I have installed the module with no issue and error.
When I say Music play I can see the animated Logo and then its gone. No music.
I can see : [02.04.2024 12:29.53.083] [ERROR] [MUSIC] ./components/playerLib.js Loading error! Error: No native build was found for platform=linux arch=arm runtime=electron abi=118 uv=1 armv=default libc=glibc node=18.17.1 electron=27.2.0I am new to this so not sure how to fix that issue.
Here is the config and log from my setup.
// Google Assistant { module: "MMM-GoogleAssistant", configDeepMerge: true, config: { assistantConfig: { lang: "en-US", latitude: 28.794304, longitude: -81.317518, }, //website: { //use: true, //username: "admin", //password: "admin", //CLIENT_ID: null //}, recipes: [ "../../EXT-MusicPlayer/recipe/EXT-MusicPlayer.js", ], } } //EXT-MusicPlayer for Google Assistant to play from local directory { module: 'EXT-MusicPlayer', animateIn: "flipInX", animateOut: "flipOutX", position: 'top_left', config: { debug: true, useUSB: false, musicPath: "/home/sumon/Music", checkSubDirectory: false, random: false, autoStart: false, minVolume: 30, maxVolume: 100 } },
Log :
> magicmirror@2.26.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [02.04.2024 12:29.42.110] [LOG] Starting MagicMirror: v2.26.0 [02.04.2024 12:29.42.114] [LOG] Loading config ... [02.04.2024 12:29.42.118] [DEBUG] config template file not exists, no envsubst [02.04.2024 12:29.42.123] [LOG] Loading module helpers ... [02.04.2024 12:29.42.126] [LOG] No helper found for module: alert. [02.04.2024 12:29.42.164] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.165] [LOG] Module helper loaded: updatenotification [02.04.2024 12:29.42.167] [LOG] No helper found for module: clock. [02.04.2024 12:29.42.174] [LOG] No helper found for module: MMM-Worldclock. [02.04.2024 12:29.42.187] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.189] [LOG] Module helper loaded: MMM-GoogleAssistant [02.04.2024 12:29.42.198] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.198] [LOG] Module helper loaded: EXT-Detector [02.04.2024 12:29.42.200] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.201] [LOG] Module helper loaded: EXT-MusicPlayer [02.04.2024 12:29.42.212] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.213] [LOG] Module helper loaded: EXT-Motion [02.04.2024 12:29.42.446] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.446] [LOG] Module helper loaded: MMM-Screencast [02.04.2024 12:29.42.701] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.701] [LOG] Module helper loaded: calendar [02.04.2024 12:29.42.703] [LOG] No helper found for module: compliments. [02.04.2024 12:29.42.704] [LOG] No helper found for module: weather. [02.04.2024 12:29.42.706] [LOG] No helper found for module: MMM-IPT. [02.04.2024 12:29.42.870] [LOG] Initializing new module helper ... [02.04.2024 12:29.42.871] [LOG] Module helper loaded: newsfeed [02.04.2024 12:29.42.871] [LOG] All module helpers loaded. [02.04.2024 12:29.42.877] [LOG] Starting server on port 8080 ... [02.04.2024 12:29.43.144] [LOG] Server started ... [02.04.2024 12:29.43.145] [LOG] Connecting socket for: updatenotification [02.04.2024 12:29.43.146] [LOG] Starting module helper: updatenotification [02.04.2024 12:29.43.146] [LOG] Connecting socket for: MMM-GoogleAssistant [02.04.2024 12:29.43.147] [LOG] Connecting socket for: EXT-Detector [02.04.2024 12:29.43.148] [LOG] Connecting socket for: EXT-MusicPlayer [02.04.2024 12:29.43.149] [LOG] Connecting socket for: EXT-Motion [02.04.2024 12:29.43.149] [LOG] Starting module helper: EXT-Motion [02.04.2024 12:29.43.150] [LOG] Connecting socket for: MMM-Screencast [02.04.2024 12:29.43.150] [LOG] Connecting socket for: calendar [02.04.2024 12:29.43.151] [LOG] Starting node helper for: calendar [02.04.2024 12:29.43.151] [LOG] Connecting socket for: newsfeed [02.04.2024 12:29.43.152] [LOG] Starting node helper for: newsfeed [02.04.2024 12:29.43.152] [LOG] Sockets connected & modules started ... [02.04.2024 12:29.43.163] [LOG] Launching application. [27483:0402/122944.778763:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.780251:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.780738:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.781257:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.781953:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.782576:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.783212:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.804516:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.804822:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.805202:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.805482:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.805768:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.806195:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [27483:0402/122944.806742:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [02.04.2024 12:29.46.760] [LOG] [GA] MMM-GoogleAssistant Version: 6.2.4 rev: 240319 [02.04.2024 12:29.46.762] [LOG] [GA] [SECURE] Check digital footprint... [02.04.2024 12:29.47.008] [LOG] [GA] [SECURE] Happy use ! [02.04.2024 12:29.47.011] [LOG] [GA] [CONFIG_MERGE] Perfect ConfigDeepMerge activated! [02.04.2024 12:29.49.724] [LOG] [GA] [LIB] All GA libraries loaded! [02.04.2024 12:29.49.734] [LOG] [GA] [RECIPES] LOADED: ../../EXT-MusicPlayer/recipe/EXT-MusicPlayer.js [02.04.2024 12:29.49.734] [LOG] [GA] Recipes loaded! [02.04.2024 12:29.49.778] [LOG] Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 604800000 [02.04.2024 12:29.49.970] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [02.04.2024 12:29.49.986] [INFO] updatenotification: Updater Class Loaded! [02.04.2024 12:29.49.989] [INFO] updatenotification: Checking PM2 using... [02.04.2024 12:29.49.994] [INFO] Checking git for module: MMM-Worldclock [02.04.2024 12:29.50.098] [LOG] [GA] ALL Modules scanned [02.04.2024 12:29.50.102] [LOG] [GA] Assistant Ready! [02.04.2024 12:29.50.106] [LOG] [GA] [HyperWatch] Logger is now enabled [02.04.2024 12:29.52.184] [LOG] [GA] [LIB] All website libraries loaded! [02.04.2024 12:29.52.190] [LOG] [GA] Loading Website... [02.04.2024 12:29.52.198] [LOG] [GA] [WEBSITE] [TRANSLATION] [HOME] Use: default.home [02.04.2024 12:29.52.291] [INFO] Checking git for module: MMM-GoogleAssistant [02.04.2024 12:29.52.510] [LOG] [GA] [WEBSITE] Detected: EXT-MusicPlayer [02.04.2024 12:29.52.555] [LOG] [GA] [WEBSITE] Detected: EXT-Motion [02.04.2024 12:29.52.664] [INFO] Checking git for module: EXT-Detector [02.04.2024 12:29.52.764] [INFO] updatenotification: You are not using pm2 [02.04.2024 12:29.52.915] [LOG] [DETECTOR] EXT-Detector Version: 2.6.0 rev: 240322 [02.04.2024 12:29.52.921] [LOG] [MUSIC] EXT-MusicPlayer Version: 1.3.1 rev: 240321 [02.04.2024 12:29.53.083] [ERROR] [MUSIC] ./components/playerLib.js Loading error! Error: No native build was found for platform=linux arch=arm runtime=electron abi=118 uv=1 armv=default libc=glibc node=18.17.1 electron=27.2.0 loaded from: /home/sumon/MagicMirror/modules/EXT-MusicPlayer/node_modules/usb at load.resolve.load.path (/home/sumon/MagicMirror/modules/EXT-MusicPlayer/node_modules/node-gyp-build/node-gyp-build.js:60:9) at load (/home/sumon/MagicMirror/modules/EXT-MusicPlayer/node_modules/node-gyp-build/node-gyp-build.js:22:30) at Object.<anonymous> (/home/sumon/MagicMirror/modules/EXT-MusicPlayer/node_modules/usb/dist/usb/bindings.js:8:38) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/home/sumon/MagicMirror/modules/EXT-MusicPlayer/node_modules/usb/dist/usb/device.js:4:13) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) [02.04.2024 12:29.53.104] [LOG] [MOTION] EXT-Motion Version: 1.3.0 rev: 240308 [02.04.2024 12:29.54.508] [LOG] [DETECTOR] [LIBRARY] All libraries loaded! [02.04.2024 12:29.54.508] [ERROR] [MUSIC] Warning: 1 @bugsounet library not loaded ! [02.04.2024 12:29.54.509] [ERROR] [MUSIC] Try to solve it with `npm run rebuild` in EXT-MusicPlayer directory [02.04.2024 12:29.54.512] [LOG] [DETECTOR] [DATA] Snowboy is initialized with 1 Models: jarvis [02.04.2024 12:29.54.513] [LOG] [DETECTOR] [DATA] Initialized [02.04.2024 12:29.54.547] [LOG] [GA] [WEBSITE] Detected: EXT-Detector [02.04.2024 12:29.54.562] [LOG] [GA] [WEBSITE] [PM2] checking PM2 using... [02.04.2024 12:29.54.576] [INFO] Checking git for module: EXT-MusicPlayer [02.04.2024 12:29.54.984] [INFO] Checking git for module: EXT-Motion [02.04.2024 12:29.55.422] [INFO] Calendar-Fetcher: Broadcasting 8 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics. [02.04.2024 12:29.55.986] [LOG] [DETECTOR] [RULES] Start listening. 1 Models [02.04.2024 12:29.55.992] [ERROR] [MOTION] DiffCamEngine initialize failed: NotFoundError: Requested device not found [02.04.2024 12:29.56.003] [INFO] Checking git for module: MMM-Screencast [02.04.2024 12:29.56.357] [LOG] [GA] [WEBSITE] [PM2] You don't use PM2 [02.04.2024 12:29.56.738] [INFO] Checking git for module: MMM-IPT [02.04.2024 12:29.59.608] [INFO] Checking git for module: MagicMirror [02.04.2024 12:30.00.309] [INFO] Newsfeed-Fetcher: Broadcasting 25 items. [02.04.2024 12:30.02.012] [LOG] [GA] [SYSTEMINFO] Read Uptimed [02.04.2024 12:30.02.013] [LOG] [GA] [SYSTEMINFO] Initialized [02.04.2024 12:30.02.013] [WARN] [GA] WARN: You are using default username or default password [02.04.2024 12:30.02.014] [WARN] [GA] WARN: Don't forget to change it! [02.04.2024 12:30.02.065] [LOG] [GA] Website Ready! [02.04.2024 12:30.02.118] [LOG] [GA] Loading Server... [02.04.2024 12:30.03.622] [LOG] [GA] [WEBSITE] [SERVER] Start listening on port 8081 [02.04.2024 12:30.03.622] [LOG] [GA] [WEBSITE] [SERVER] Available locally at http://192.168.86.245:8081 [02.04.2024 12:30.03.623] [LOG] [GA] Server Ready! [02.04.2024 12:30.03.749] [LOG] [DETECTOR] [RULES] Stop listening. [02.04.2024 12:30.03.749] [LOG] [DETECTOR] [RULES] Detected: jarvis from: Snowboy [02.04.2024 12:30.09.153] [LOG] [DETECTOR] [RULES] Start listening. 1 Models Warning: terminator_CreateInstance: Failed to CreateInstance in ICD 2. Skipping ICD. Warning: Vulkan fullDrawIndexUint32 feature required. - While initializing adapter (backend=BackendType::Vulkan) at InitializeImpl (../../third_party/dawn/src/dawn/native/vulkan/PhysicalDeviceVk.cpp:170) at Initialize (../../third_party/dawn/src/dawn/native/PhysicalDevice.cpp:35) [02.04.2024 12:31.49.689] [LOG] [DETECTOR] [RULES] Stop listening. [02.04.2024 12:31.49.692] [LOG] [DETECTOR] [RULES] Detected: jarvis from: Snowboy [02.04.2024 12:31.54.576] [LOG] [DETECTOR] [RULES] Start listening. 1 Models ^C[02.04.2024 12:32.07.132] [LOG] Shutting down server... /home/sumon/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
-
Hi, do you try to run
npm run rebuild
insideEXT-MusicPlayer
folder ? -
Yes Here is the rebuild log.:
> EXT-MusicPlayer@1.3.1 rebuild > installer/rebuild.sh Welcome to EXT-MusicPlayer v1.3.1 rebuild script This script will erase current build and reinstall it Do you want to continue ? [Y/n] Your choice: y Deleting: package-lock.json node_modules Done. Updating... HEAD is now at f93e68d v1.3.1 Already up to date. Done Reinstalling... npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs > EXT-MusicPlayer@1.3.1 preinstall > installer/preinstall.sh -d 'libudev-dev' Welcome to EXT-MusicPlayer v1.3.1 No root checking... Checking EXT-MusicPlayer: sumon/sumon Checking MagicMirror: sumon/sumon Checking OS... OS Detected: linux-gnueabihf (raspbian 12 armv7l) Checking all dependencies... All Dependencies needed are installed ! > EXT-MusicPlayer@1.3.1 postinstall > installer/postinstall.sh -r -m -b Minify Main code... Found: 4 files to minify Process File: ../EXT-MusicPlayer.js Process File: ../node_helper.js Process File: ../components/playerLib.js Process File: ../components/musicplayer.js Done Rebuild MagicMirror... ✔ Rebuild Complete Done Support is now moved in a dedicated Server: https://forum.bugsounet.fr @bugsounet EXT-MusicPlayer is now installed ! added 459 packages in 1m 132 packages are looking for funding run `npm fund` for details
Still seeing same issue
-
I will inspect in a pi
-
I have the same issue
-
Hi, @razibul
With Inspect, I see that
usb
npm library was not builded
why ? I don’t know
It seams to be a bug inside this npm libraryWe can try to build it with command line (works for me):
Go to
EXT-MusicPlayer
foldercd ~/MagicMirror/modules/EXT-MusicPlayer
Go to
usb
npm library foldercd node_modules/usb
Rebuild this library
npm run rebuild
restart MM² and test
-
@bugsounet issue resolved. You are the Best. Thank you so much for the quick fix.
-