Read the statement by Michael Teeuw here.
MMM-GroveGestures / Python script is terminated
-
Hello everybody,
I’ve recently had a problem with the MMM-GroveGestures module. Besides, a great module!
I get the following messages in /MagicMirror-error.log.0|MagicMirror | [21:22:51.860] [LOG] 0|MagicMirror | Keyboard Interrupted 0|MagicMirror | [21:22:51.862] [LOG] [GESTURE] Gesture script is finished. 0|MagicMirror | [21:22:52.366] [LOG] 0|MagicMirror | [GESTURE] Python script is terminated. It will restart soon.
A restart does not help.
I use a Raspberry Pi 3 Model B Rev 1.2PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" VERSION_CODENAME=stretch ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
I use the following modules:
MMM-DWD weather warning; MMM NOAA; MMM-pages; MMM Remote Control; MMM buttons; MMM Grove Gestures; MMM notification trigger; MMM-PIR sensor; MMM-NASA; MMM-page-indicator; MMM-Public Transport HafasI would be very thankful for help.
Carsten -
@MagicStarthilfe
how often did it happen? always? randomly?
When did it happen usually? soon after start? in some minutes or hours? -
too fast or too slow i2c speed could make this kind issue.
try to adjust speed to 10000 - 32000 (default might be 100000 I remembered)https://www.raspberrypi-spy.co.uk/2018/02/change-raspberry-pi-i2c-bus-speed/
-
This post is deleted! -
@Sean
Thanks for the quick answer.
Last night it started correctly for once. That was after several restarts, no idea why it suddenly worked. Then I let the system run overnight, that was no problem.
I rebooted it earlier for a test. The error did not occur then, but the module does not react now. Therefore all modules are on the first page (use MMM-GroveGestures for the page change together with MMM-pages, MMM-page-indicator and MMM notification trigger which worked otherwise). Even a restart does not help at the moment. I have increased the speed of i2c.
python gesture_print.py works.
All modules seem to be loaded correctly. (see MagicMirror-out.log
below)
Is it maybe more a problem of MMM-pages?
Today I will test the system without MMM-pages and only with the clock, if MMM-GroveGestures works I will start the other modules bit by bit. Maybe I can identify a module that causes problems.[11:32:16.198] [LOG] Starting MagicMirror: v2.10.1 [11:32:16.215] [LOG] Loading config ... [11:32:16.234] [LOG] Loading module helpers ... [11:32:16.236] [LOG] No helper found for module: alert. [11:32:16.371] [LOG] Initializing new module helper ... [11:32:16.372] [LOG] Module helper loaded: updatenotification [11:32:16.374] [LOG] No helper found for module: clock. [11:32:16.544] [LOG] Initializing new module helper ... [11:32:16.545] [LOG] Module helper loaded: MMM-Remote-Control [11:32:16.561] [LOG] Initializing new module helper ... [11:32:16.562] [LOG] Module helper loaded: MMM-GroveGestures [11:32:16.570] [LOG] Initializing new module helper ... [11:32:16.571] [LOG] Module helper loaded: MMM-NotificationTrigger [11:32:16.572] [LOG] No helper found for module: MMM-page-indicator. [11:32:16.574] [LOG] No helper found for module: MMM-pages. [11:32:16.648] [LOG] Initializing new module helper ... [11:32:16.649] [LOG] Module helper loaded: MMM-PIR-Sensor [11:32:17.647] [LOG] Initializing new module helper ... [11:32:17.648] [LOG] Module helper loaded: MMM-SystemStats [11:32:18.339] [LOG] Initializing new module helper ... [11:32:18.339] [LOG] Module helper loaded: MMM-PublicTransportHafas [11:32:18.345] [LOG] Initializing new module helper ... [11:32:18.346] [LOG] Module helper loaded: MMM-NASA [11:32:18.575] [LOG] Initializing new module helper ... [11:32:18.576] [LOG] Module helper loaded: MMM-NOAA [11:32:19.573] [LOG] Initializing new module helper ... [11:32:19.576] [LOG] Module helper loaded: MMM-DWD-WarnWeather [11:32:19.664] [LOG] Initializing new module helper ... [11:32:19.664] [LOG] Module helper loaded: newsfeed [11:32:19.665] [LOG] All module helpers loaded. [11:32:19.667] [LOG] Starting server on port 8080 ... [11:32:19.691] [LOG] Server started ... [11:32:19.693] [LOG] Connecting socket for: updatenotification [11:32:19.695] [LOG] Connecting socket for: MMM-Remote-Control [11:32:19.697] [LOG] Starting node helper for: MMM-Remote-Control [11:32:19.714] [LOG] Connecting socket for: MMM-GroveGestures [11:32:19.716] [LOG] Connecting socket for: MMM-NotificationTrigger [11:32:19.763] [LOG] Connecting socket for: MMM-PIR-Sensor [11:32:19.766] [LOG] Connecting socket for: MMM-SystemStats [11:32:19.768] [LOG] Connecting socket for: MMM-PublicTransportHafas [11:32:19.770] [LOG] Connecting socket for: MMM-NASA [11:32:19.772] [LOG] Starting node_helper for: MMM-NASA [11:32:19.774] [LOG] Connecting socket for: MMM-NOAA [11:32:19.776] [LOG] Starting module: MMM-NOAA [11:32:19.801] [LOG] Connecting socket for: MMM-DWD-WarnWeather [11:32:19.802] [LOG] MMM-DWD-WarnWeather helper started... [11:32:19.803] [LOG] Connecting socket for: newsfeed [11:32:19.805] [LOG] Starting module: newsfeed [11:32:19.805] [LOG] Sockets connected & modules started ... [11:32:20.114] [LOG] Launching application. [11:32:25.625] [LOG] Transportation fetcher for station with id '008000263' created. [11:32:26.201] [LOG] Transportation fetcher for station with id '000625258' created. [11:32:26.356] [LOG] Create new news fetcher for url: http://www.tagesschau.de/xml/rss2 - Interval: 300000
-
@MagicStarthilfe
I don’t know whether MMM-Pages would be reason or not at this moment. Your last log seems so quite normal anyway (or saying nothing important really. :D)
If you are using MMM-Pages, keep this kind of module is valid on each page. I think it’s better to keep it globally out of those kinds of suspending/resuming control. -
@Sean Hello,
the error " Python script is terminated" I could actually fix by adjusting the i2c speed. Thanks for the tip.
The subsequent errors were caused by the NOAA module.
Thanks for the help. -
Hi @MagicStarthilfe I have the same problem as you:
[04.09.2023 12:50.18.499] [LOG] [GESTURE] Gesture script is finished. [04.09.2023 12:50.19.072] [LOG] [GESTURE] Python script is terminated. It will restart soon. [04.09.2023 12:50.19.270] [LOG] [GESTURE] ORIGIN:wake-up finish. [04.09.2023 12:50.19.393] [LOG] [GESTURE] ORIGIN:Paj7620 initialize register finished. [04.09.2023 12:59.32.764] [LOG] Keyboard Interrupted
I use a Raspberry Pi 4 4GB with MagicMirror² v2.24.0 (the latest version…).
Do you remeber wich “i2c” speed you have used for fix the problem?
Thanks.
-
@Egnos
Try 10000 or 32000. -
@Egnos
However the “terminated” message itself is nothing wrong.
“Too often without any gesture triggered” cases only be the issue.