Ivelin
Hello, after normal installation of OPENPLC on windows 10 machine and test with Blink project i have follow errors...
 
Start build in C:\Users\kojoo\OpenPLC_Editor\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
C Build crashed !
Traceback (most recent call last):
File "C:\Users\kojoo\OpenPLC_Editor\editor\ProjectController.py", line 1318, in _Build
if not builder.build():
File "C:\Users\kojoo\OpenPLC_Editor\editor\targets\toolchain_gcc.py", line 195, in build
status, _result, _err_result = ProcessLogger(
File "C:\Users\kojoo\OpenPLC_Editor\editor\util\ProcessLogger.py", line 145, in __init__
self.Proc = subprocess.Popen(self.Command, encoding="utf-8", errors="backslashreplace", **popenargs)
File "C:\Users\kojoo\OpenPLC_Editor\python\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\kojoo\OpenPLC_Editor\python\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
 
 
 
 
The update can't be started because :
 
"Error while trying to download update. check your internet connection and try again. "
 
The internet connection is OK and the firewall is turned OFF.
Any idea how to continue?
Reply 0 0
thiagoralves
Either your installation is broken or your antivirus is blocking the editor from building the project.
Reply 0 0
Ivelin
Thanks for your very fast reply 🙂)) I gues that problem is in windows itself but I'm not sure how to solve it. I try several installations without success 🙁 I turned OFF windows defender too ... may be I need to try with linux machine 🙁
Reply 0 0
Ivelin
Only to note ... the problem is that other VPN (tailscale VPN) was installed and running. When I disable it everything goes fine. Best Regards!
Reply 1 0
PaniniSama
 
Hello,
just wanted to share what worked for me, as it might help someone else.
I was also getting the same error with the FileNotFoundError: [WinError 2] on Windows.
The simple fix for me was to launch the editor using the OpenPLC Editor venv.bat file instead of the standard OpenPLC Editor.bat. As soon as I did that, my project compiled successfully.
Hope this helps!
Reply 0 0
Mohd Idris Malik
Start build in C:\Users\lenovo\Documents\PLC\build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Collecting data types
Collecting POUs
Generate POU LOOP
Error in ST/IL/SFC code generator :
Contact "LOOP" in POU "LOOP" must be connected.
PLC code generation failed !
What to do in this error
Reply 0 0
thiagoralves
You need to make sure your LOOP contact is connected
Reply 0 0
Write a reply...
Reply