EricR
Fresh install on Ubuntu 24.04 using a conda environment with python 3.9
As recommended on the tutorial (https://www.youtube.com/watch?v=QcP2dZATJ8Q) I opened the blink example, clicked run, then the sunglasses to debug instance.
A debug instance tab opens, the enable and blink LED lines are both green (up to the on-delay timer) while both 500ms lines are amber, but nothing else changes color (and I don't get a timer running in the window on the right under "debug" tab). The console gives the following:
 
Start build in /home/path/editor/examples/Blink/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
    Collecting data types
    Collecting POUs
    Generate POU Blink
    Generate Config(s)
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
   [CC]  plc_main.c -> plc_main.o
   [CC]  plc_debugger.c -> plc_debugger.o
PLC :
   [CC]  Config0.c -> Config0.o
   [CC]  Res0.c -> Res0.o
Linking :
   [CC]  plc_main.o plc_debugger.o Config0.o Res0.o -> Blink.so
Successfully built.
PYRO connecting to URI : PYRO://localhost:61611
PLC did not provide identity and security infomation.
Latest build matches with connected target.
Latest build already matches current target. Transfering anyway...
PLC data transfered successfully.
PLCobject : NewPLC (6684d220bd4e1abd89edfbc297caf410)
PLC installed successfully.
PLCobject : PLC started
PLCobject : Python extensions started
Starting PLC
Debug: target couldn't trace all requested variables.
so, any idea how I can move forward and see the blink_led blink?
Reply 0 0
thiagoralves
It seems that something is broken on the debugger, as it is saying that it can't trace variables. Make sure you're running on the latest version of the editor (file -> check for updates) and try again.
Reply 0 0
EricR
Yes, I updated as soon as I opened editor the first time, as shown in the video tutorial. The about page shows I am running OpenPLC 3.0 release:2024-08-12. When I check for updates now, the update window flashes on screen, then is invisible and must be closed from the task bar to continue using the editor. If there's any other logs that might help, let me know what they are (and how to find them), and I'll upload them.
 
 
 
edit: clarity and added last sentence
Reply 0 0
thiagoralves
The latest release is 2025-06-09. It seems your updater is also broken. I would recommend a reinstall.
Reply 0 0
EricR
Reinstalled with $ ./distclean.sh then deleted the directory. Made a new directory, copying from downloads and reinstalled via $./install.sh. Updated via GUI and the same behavior persisted. I repeated this entire procedure, except I updated via $ ./update.sh, and still no update.
 
Is there something else I need to do to remove the old install?
Reply 0 0
thiagoralves
What is the output of running the update from terminal? Essentially, the update only downloads the latest editor folder from GitHub and replaces the “editor” folder with the new one. You can even try doing that manually. Just download it from https://github.com/thiagoralves/editor
Reply 1 0
EricR
This is odd, because it look successful:
 
OpenPLC_Editor
OpenPLC_Editor
sudo apt-get install --reinstall libcanberra-gtk-module
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
nbsp;python3 editor/Beremiz.py 
Gtk-Message: 11:26:15.560: Failed to load module "atk-bridge"
Gtk-Message: 11:26:15.564: Failed to load module "canberra-gtk-module"
11:26:15 AM: Debug: Adding duplicate image handler for 'Windows bitmap file'
11:26:15 AM: Debug: Adding duplicate animation handler for '1' type
11:26:15 AM: Debug: Adding duplicate animation handler for '2' type
nbsp;./update.sh 
Cloning into 'OpenPLC_Editor'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 13 (delta 0), reused 7 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (13/13), 13.22 KiB | 1.20 MiB/s, done.
Submodule 'editor' (https://github.com/thiagoralves/editor) registered for path 'editor'
Submodule 'matiec' (https://github.com/thiagoralves/matiec) registered for path 'matiec'
Cloning into '/home/eric/OpenPLC_Editor/OpenPLC_Editor/editor'...
remote: Enumerating objects: 1195, done.        
remote: Counting objects: 100% (1195/1195), done.        
remote: Compressing objects: 100% (1015/1015), done.        
remote: Total 1195 (delta 240), reused 896 (delta 114), pack-reused 0 (from 0)        
Receiving objects: 100% (1195/1195), 70.62 MiB | 33.25 MiB/s, done.
Resolving deltas: 100% (240/240), done.
Cloning into '/home/eric/OpenPLC_Editor/OpenPLC_Editor/matiec'...
remote: Enumerating objects: 261, done.        
remote: Counting objects: 100% (261/261), done.        
remote: Compressing objects: 100% (241/241), done.        
remote: Total 261 (delta 31), reused 222 (delta 11), pack-reused 0 (from 0)        
Receiving objects: 100% (261/261), 831.90 KiB | 5.44 MiB/s, done.
Resolving deltas: 100% (31/31), done.
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 3), reused 1 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (4/4), 1006 bytes | 503.00 KiB/s, done.
From https://github.com/thiagoralves/editor
* branch            f0b7d517d9dfe45f96f7faf5453484ccbb337c31 -> FETCH_HEAD
Submodule path 'editor': checked out 'f0b7d517d9dfe45f96f7faf5453484ccbb337c31'
Submodule path 'matiec': checked out 'f9ca9ba8d3290f2985dcf2def87a196432bf3152'
Update applied successfully
However the version is still 2024-08-12 as shown in the about section.
On running, I noticed (unsure if related):
 
OpenPLC_Editor
python3 new_editor/Beremiz.py 
Gtk-Message: 11:36:52.632: Failed to load module "atk-bridge"
Gtk-Message: 11:36:52.636: Failed to load module "canberra-gtk-module"
11:36:52 AM: Debug: Adding duplicate image handler for 'Windows bitmap file'
11:36:52 AM: Debug: Adding duplicate animation handler for '1' type
11:36:52 AM: Debug: Adding duplicate animation handler for '2' type
so I tried:
sudo apt-get install --reinstall libcanberra-gtk-module
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
The second line returned that it's already the newest version, and the runtime terminal output was unchanged. Also, I just saw the revision file:
cat revision 
20250609
 
Which I find odd. I looked again at my file contents and found a new_editor/ folder, which does open 20250609, however the originally stated blink bug persists exactly as originally stated. (I've done some name changing so editor/ is now the current version).
 
finally, I get the following error when I run openplc_editor:
./openplc_editor.sh
Traceback (most recent call last):
  File "/home/eric/OpenPLC_Editor/./editor/Beremiz.py", line 32, in <module>
    import wx
  File "/home/eric/OpenPLC_Editor/.venv/lib/python3.9/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/home/eric/OpenPLC_Editor/.venv/lib/python3.9/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
ImportError: /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0: undefined symbol: atk_object_get_help_text
Edited: Formatting and added last error
Reply 0 0
thiagoralves
The script only downloads the new editor. The folder update actually happens only when you run the openplc_editor.sh script (or using the .desktop link file) to open the application.
Reply 1 0
EricR
./openplc_editor.sh
Traceback (most recent call last):
  File "/home/eric/OpenPLC_Editor/./editor/Beremiz.py", line 32, in <module>
    import wx
  File "/home/eric/OpenPLC_Editor/.venv/lib/python3.9/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/home/eric/OpenPLC_Editor/.venv/lib/python3.9/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
ImportError: /lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0: undefined symbol: atk_object_get_help_text
 
The .desktop doesn't do anything now, but
python3 editor/Beremiz.py
 
opens the editor and the blinker blinks. Solved I guess? I'll have to run from the command line rather than via icon
Reply 0 0
thiagoralves
Your installation is broken. It seems that you have hacked your way up to run the editor in your environment. The correct way is to run it in a venv environment, and that’s what the openplc_editor.sh script tries to do. The installer sets up the venv environment with all dependencies in it to run the editor. Most likely something went wrong with the installer and your venv is broken. Running it from the command line the way you’re doing will rely on your system’s Python and installed dependencies. It may or may not work as expected.
Reply 0 0
EricR
I uninstalled (./ distclean.sh then deleted OpenPLC_Editor/ Let me know if I need to so something else), then recreated the folder from download (sha1sum verified) and reinstalled (./install), with no behavior change (also that's the only way I've ever installed it). Not sure how that's "hacking [my] way up to run the editor," but I'd love for it to work as intended.
Reply 0 0
thiagoralves
Ah, you’re using the downloaded version from the Autonomy website! That version might be too old and is still using system Python instead of venv. I haven’t checked it in a while. Normally Linux users tend to get the project straight from GitHub, so the installer ends up just getting out of date 😅Try downloading the installer from https://github.com/thiagoralves/OpenPLC_Editor and install that. Maybe it will work better.
Reply 0 0
thiagoralves
Either way, post your installation logs here please for me to be sure the installation has gone smoothly without hiccups. The expected output is that the installer will create a venv, install dependencies in it, and setup the editor. It should not touch your system Python.
Reply 0 0
EricR
I reinstalled and directed stderr and terminal output to the attached outErr.txt
Reply 0 0
Reply