Hi,
The following error appears every time I try to generate a program for the OpenPLC Runtime. This function works fine with the same project file on a different computer, and it was working on my computer previously. I tried reinstalling the OpenPLC editor, but it didn’t help.
app-title:
beremiz
app-version:
3.0
Release: 2024-10-16
cwd:
C:\Users\x.x\OpenPLC_Editor
date:
Thu Nov 7 11:04:18 2024
e-type:
<class 'PermissionError'>
e-value:
[WinError 5] Käyttö estetty: 'C:\\Temp\\xx\\xx\\Source\\build\\extra_files'
locals:
path: 'C:\\Temp\\xx\\xx\\Source\\build\\extra_files'
onerror: <function rmtree.<locals>.onerror at 0x000001944892AF70>
scandir_it: <nt.ScandirIterator object at 0x00000194441EAEF0>
entries: []
platform:
Windows-10-10.0.19045-SP0
python-version:
3.9.10
traceback:
File "C:\Users\x.x\OpenPLC_Editor\.\editor\BeremizIDE.py", line 836, in OnMenu
getattr(self.CTR, method)()
File "C:\Users\x.x\OpenPLC_Editor\.\editor\ProjectController.py", line 2244, in _generateOpenPLC
if (self._Build() is True):
File "C:\Users\x.x\OpenPLC_Editor\.\editor\ProjectController.py", line 1307, in _Build
if not self._Generate_runtime():
File "C:\Users\x.x\OpenPLC_Editor\.\editor\ProjectController.py", line 1381, in _Generate_runtime
shutil.rmtree(extrafilespath)
File "C:\Users\x.x\OpenPLC_Editor\python\lib\shutil.py", line 749, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\x.x\OpenPLC_Editor\python\lib\shutil.py", line 631, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "C:\Users\x.x\OpenPLC_Editor\python\lib\shutil.py", line 629, in _rmtree_unsafe
os.rmdir(path)
<class 'PermissionError'>: [WinError 5] Käyttö estetty: 'C:\\Temp\\xx\\xx\\Source\\build\\extra_files'
wx-platform:
__WXMSW__
wx-version:
4.2.0