Read the statement by Michael Teeuw here.
Just updated to newest MagicMirror and now it won't load.
-
I just updated to the newest MagicMirror. I get a black screen and the following error in my error log:
Gdk-Message: 15:16:59.854: electron: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. python3: can't open file 'stats.py': [Errno 2] No such file or directory [05.11.2021 15:18.22.355] [ERROR] [31mWARNING! Could not find config file. Please create one. Starting with default configuration.[39m Gdk-Message: 15:44:39.377: electron: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. python3: can't open file 'stats.py': [Errno 2] No such file or directory [05.11.2021 15:45.58.895] [ERROR] [31mWARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'[39m [31mRequire stack:[39m [31m- /home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js[39m [31m- /home/pi/MagicMirror/js/app.js[39m [31m- /home/pi/MagicMirror/js/electron.js[39m [31m- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js[39m [31m- [39m [05.11.2021 15:45.58.920] [ERROR] App threw an error during load [05.11.2021 15:45.58.926] [ERROR] Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/MMM-CalendarExt2/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:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:4:17) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) [05.11.2021 15:45.58.932] [ERROR] Whoops! There was an uncaught exception... [05.11.2021 15:45.58.944] [ERROR] Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/MMM-CalendarExt2/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:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:4:17) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/modules/MMM-CalendarExt2/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 ] } [05.11.2021 15:45.58.946] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [05.11.2021 15:45.58.947] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
I don’t know what the stats.py file is or where it should be. I also do have a config file, which has all my code in it exactly as before I updated. I don’t know why I am getting all these errors or what many of them mean.
-
-
@sdetweil Sorry I did look at that but didn’t understand it or my logs so didn’t realize they were related. Reading it again I realized I needed install request and that fixed the issue. Thank you and sorry for posting when the question was already answered.
-
@aunrea your logs shows
Cannot find module 'request'
-
open another module directory and look for a “node_modules” folder and see if there is a “request” folder there. then copy this to your module where it is missing. that also helped and worked for me. Maybe more are missing. I searched my node_modules folder until I had everything together.
-
@bjoern said in Just updated to newest MagicMirror and now it won't load.:
open another module directory and look for a “node_modules” folder and see if there is a “request” folder there. then copy this to your module
NOOOOOOOOOO
use npm thats what it is for
follow the instructions in the linked pinned topic in troubleshooting…