Read the statement by Michael Teeuw here.
MMM-ImagesPhotos issue
-
After install Magic Mirror will not auto boot after change to config file.
Receiving this when attempting to run npm run start in he Magic Mirror folder.magicmirror@2.23.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[13.06.2023 12:54.22.117] [LOG] Starting MagicMirror: v2.23.0
[13.06.2023 12:54.22.123] [LOG] Loading config …
[13.06.2023 12:54.22.126] [DEBUG] config template file not exists, no envsubst
[13.06.2023 12:54.22.132] [LOG] Loading module helpers …
[13.06.2023 12:54.22.145] [LOG] Initializing new module helper …
[13.06.2023 12:54.22.146] [LOG] Module helper loaded: MMM-PiTemp
[13.06.2023 12:54.22.146] [LOG] No helper found for module: MMM-connection-status.
[13.06.2023 12:54.22.401] [LOG] Initializing new module helper …
[13.06.2023 12:54.22.402] [LOG] Module helper loaded: MMM-nyc-transit
[13.06.2023 12:54.22.408] [ERROR] (node:6269) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
Require stack:- /home/pi/MagicMirror/modules/MMM-ImagesPhotos/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 (node:internal/modules/cjs/loader:963:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:109751)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:811:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/modules/MMM-ImagesPhotos/node_helper.js:10:15)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
at Module.load (node:internal/modules/cjs/loader:1011:32)
at Module._load (node:internal/modules/cjs/loader:846:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at loadModule (/home/pi/MagicMirror/js/app.js:184:19)
(Useelectron --trace-warnings ...
to show where the warning was created)
[13.06.2023 12:54.22.410] [ERROR] (node:6269) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
[13.06.2023 12:54.22.704] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
Any suggestions?
-
-
This might be over my head…
pi@raspberrypi:~/MagicMirror/modules/MMM-ImagesPhotos $ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: magicmirror-images-photos@0.1.1
npm ERR! Found: stylelint@14.16.1
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@“14.x” from grunt-stylelint@0.18.0
npm ERR! node_modules/grunt-stylelint
npm ERR! dev grunt-stylelint@“latest” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev stylelint-config-standard@“latest” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: stylelint@15.7.0
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@“^15.5.0” from stylelint-config-standard@33.0.0
npm ERR! node_modules/stylelint-config-standard
npm ERR! dev stylelint-config-standard@“latest” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/pi/.npm/eresolve-report.txt for a full report.npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-06-13T18_03_53_057Z-debug-0.log -
@Nneuland ok, fun stuff…
the module is so old that the development dependencies no longer exist…
so
edit the package.json
and change this
"devDependencies": {
to this.
"devDependencies1": {
the rerun npm install
another stupid thing, npm gives you the option to NOT install the dev stuff. --omit=dev, BUT it still checks them and fails if they don’t work…
so, we have to force them to not exist…
-
@sdetweil
thanks Sam. after adjusting the devDependencies in package.json then running npm install seemed to correct the install.I have auto start mirror enabled when making adjustments to config file. However after adding the config info for this module, the mirror wont start. maybe too old of a module…any suggestions on a better image viewer module?
-
@Nneuland did u fix the missing library problem??? which is why MM doesn’t start???
-
i have not yet. I’ll need to research how to do that properly…
-
@Nneuland see the link I posted on what to do. no research needed
https://forum.magicmirror.builders/topic/17845/mmm-imagesphotos-issue/2?_=1686706297079 -
Thank you Sam!!
-
@Nneuland are you back up and running?