Jaime
Hello, I received an error when I started the PLC simulation.
This error didn't appear in the old version 2025-02-14. It happened when I updated to version 2025-04-23.
 
beremiz

app-version:
3.0
Release: 2025-04-23

cwd:
/opt/OpenPLC_Editor

date:
Thu Apr 24 11:20:40 2025

e-type:
<class 'TypeError'>

e-value:
invalid argument: ex_type should be an exception type, or just supply no arguments at all

locals:
    formatRemoteTraceback: <function get_pyro_traceback.<locals>.formatRemoteTraceback at 0x7a4cc406e430>

platform:
Linux-6.12.16-1-rt9-MANJARO-x86_64-with-glibc2.41

python-version:
3.9.21

traceback:
  File "/opt/OpenPLC_Editor/editor/BeremizIDE.py", line 836, in OnMenu
    getattr(self.CTR, method)()
  File "/opt/OpenPLC_Editor/editor/ProjectController.py", line 2032, in _Run
    if (self._Transfer() is False):
  File "/opt/OpenPLC_Editor/editor/ProjectController.py", line 2237, in _Transfer
    if self._connector.NewPLC(MD5, object_blob, extrafiles):
  File "/opt/OpenPLC_Editor/editor/connectors/PYRO/__init__.py", line 82, in catcher_func
    errmess = ''.join(Pyro5.errors.get_pyro_traceback(e))
  File "/opt/OpenPLC_Editor/.venv/lib/python3.9/site-packages/Pyro5/errors.py", line 87, in get_pyro_traceback
    raise TypeError("invalid argument: ex_type should be an exception type, or just supply no arguments at all")
<class 'TypeError'>: invalid argument: ex_type should be an exception type, or just supply no arguments at all

wx-platform:
__WXGTK__

wx-version:
4.2.0
 
File "/opt/OpenPLC_Editor/editor/runtime/PLCObject.py", line 197, in _LoadPLC
    self._PLClibraryHandle = dlopen(self._GetLibFileName())
OSError: /tmp/tmpfzc0tkob/2ea8da7937e97036d8d4c616c35c98de.so: failed to map segment from shared object
 
Reply 0 0
Jaime
Hello, I received an error when I started the PLC simulation.
This error didn't appear in the old version 2025-02-14. It happened when I updated to version 2025-04-23.
 
  1. beremiz
  2. app-version:
  3. 3.0
  4. Release: 2025-04-23
  5. cwd:
  6. /opt/OpenPLC_Editor
  7. date:
  8. Thu Apr 24 11:20:40 2025
  9. e-type:
  10. <class 'TypeError'>
  11. e-value:
  12. invalid argument: ex_type should be an exception type, or just supply no arguments at all
  13. locals:
  14.     formatRemoteTraceback: <function get_pyro_traceback.<locals>.formatRemoteTraceback at 0x7a4cc406e430>
  15. platform:
  16. Linux-6.12.16-1-rt9-MANJARO-x86_64-with-glibc2.41
  17. python-version:
  18. 3.9.21
  19. traceback:
  20.   File "/opt/OpenPLC_Editor/editor/BeremizIDE.py", line 836, in OnMenu
  21.     getattr(self.CTR, method)()
  22.   File "/opt/OpenPLC_Editor/editor/ProjectController.py", line 2032, in _Run
  23.     if (self._Transfer() is False):
  24.   File "/opt/OpenPLC_Editor/editor/ProjectController.py", line 2237, in _Transfer
  25.     if self._connector.NewPLC(MD5, object_blob, extrafiles):
  26.   File "/opt/OpenPLC_Editor/editor/connectors/PYRO/__init__.py", line 82, in catcher_func
  27.     errmess = ''.join(Pyro5.errors.get_pyro_traceback(e))
  28.   File "/opt/OpenPLC_Editor/.venv/lib/python3.9/site-packages/Pyro5/errors.py", line 87, in get_pyro_traceback
  29.     raise TypeError("invalid argument: ex_type should be an exception type, or just supply no arguments at all")
  30. <class 'TypeError'>: invalid argument: ex_type should be an exception type, or just supply no arguments at all
  31. wx-platform:
  32. __WXGTK__
  33. wx-version:
  34. 4.2.0
 
  1. File "/opt/OpenPLC_Editor/editor/runtime/PLCObject.py", line 197, in _LoadPLC
  2.     self._PLClibraryHandle = dlopen(self._GetLibFileName())
  3. OSError: /tmp/tmpfzc0tkob/2ea8da7937e97036d8d4c616c35c98de.so: failed to map segment from shared object
 
Hi, I've found the problem. The TMP partition was in noexec mode. Remounting with exe enabled, problem solved.
Thanks.
Reply 1 0
Reply