--- a/Beremiz_service.py Thu Jul 15 11:48:02 2021 +0200
+++ b/Beremiz_service.py Thu Jul 15 11:50:44 2021 +0200
@@ -31,6 +31,7 @@
from threading import Thread, Semaphore, Lock, currentThread
from builtins import str as text
from past.builtins import execfile
@@ -614,8 +615,11 @@
plcobj = runtime.GetPLCObjectSingleton()
+ print(traceback.format_exc()) --- a/runtime/PLCObject.py Thu Jul 15 11:48:02 2021 +0200
+++ b/runtime/PLCObject.py Thu Jul 15 11:50:44 2021 +0200
@@ -113,7 +113,9 @@
+ self._fail(_("Problem autostarting PLC : can't load PLC")) self.PLCStatus = PlcStatus.Empty
self.CurrentPLCFilename = None
@@ -269,7 +271,12 @@
- self.PythonRuntimeInit()
+ self.PythonRuntimeInit() + self._loading_error = traceback.format_exc() + PLCprint(self._loading_error) @@ -680,9 +687,9 @@
self.PLCStatus = PlcStatus.Stopped
- self.PLCStatus = PlcStatus.Broken
+ self._fail(_("Problem installing new PLC : can't load PLC")) return self.PLCStatus == PlcStatus.Stopped