I am using the docker image for codesys-ide and I am trying to start with a simple task by building a project. I have created the project in a Windows Machine with Codesys v3.5 SP16.
When I run the docker image with codesys and run the following script:
# encoding:utf-8from__future__importprint_functionimportosimportscriptengine# opens projectproj=projects.open(r"MyProject.projectarchive",primary=True)application=proj.active_application#This line causes the errorapplication.generate_code()proj.close()
I get the following error:
Error: Running script 'z:/builds/codesys_test/run.py' caused exception System.ArgumentException: Traceback (most recent call last):
File "z:/builds/codesys_test/run.py", line 25, in <module>
ValueError: ScriptObjects need a non-empty Guid! </module>
Attached you will find the Project I created. The project is archived as when I tried to first open the project without archiving the libraries, Codesys complained that it couldnt find the libraries.
In addition I modified the codesys bash file as I need to run my own scripts from a different folder in the docker container: