wiki Discussion
tuomas
wiki
(Discussion)
Forum for wiki comments
Last updated: 2022-08-10
blog Discussion
tuomas
blog
(Discussion)
Forum for blog comments
Last updated: 2022-08-10
(no subject)
tuomas
wiki
(Thread)
Last updated: 2022-08-10
Home
merlincacc
wiki
(WikiPage)
This is the personal project of merlincacc. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2022-08-10
wiki Discussion
merlincacc
wiki
(Discussion)
Forum for wiki comments
Last updated: 2022-08-10
blog Discussion
merlincacc
blog
(Discussion)
Forum for blog comments
Last updated: 2022-08-10
(no subject)
merlincacc
wiki
(Thread)
Last updated: 2022-08-10
Home
chriss
wiki
(WikiPage)
This is the personal project of chriss. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2022-08-11
wiki Discussion
chriss
wiki
(Discussion)
Forum for wiki comments
Last updated: 2022-08-11
blog Discussion
chriss
blog
(Discussion)
Forum for blog comments
Last updated: 2022-08-11
(no subject)
chriss
wiki
(Thread)
Last updated: 2022-08-11
wiki Discussion
ividic
wiki
(Discussion)
Forum for wiki comments
Last updated: 2022-08-11
blog Discussion
ividic
blog
(Discussion)
Forum for blog comments
Last updated: 2022-08-11
Post by ingo on #6 Error while building project
CODESYS 4 Linux
tickets
(Post)
labels: This --> status: open --> closed
Last updated: 2022-08-11
Ticket #6: Error while building project
CODESYS 4 Linux
tickets
(Ticket)
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-8 from __future__ import print_function import os import scriptengine # opens project proj = projects.open(r"MyProject.projectarchive", primary = True) application = proj.active_application #This line causes the error application.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: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29#!/bin/bash WINE=wine set -x # get first CODESYS profile and start the script with it profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile* | head -n 1 | sed 's,\.profile.*,,')") echo ${profile} # check if file exists, before we call CODESYS with it if [ ! -f ${1}.py ]; then echo "error: script '${1}.py' not found." exit -1 fi export DISPLAY=:91 Xvfb :91 &> /dev/zero & sleep 1 export WINEPREFIX=~/.wine.cds # test that running scripts work ${WINE} ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/noop.py" --noUI 2> /dev/zero # remove output log [ -f .codesys.output.txt ] && rm -f .codesys.output.txt ${WINE} ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${1}.py" --noUI sleep 1 killall Xvfb rm -rf /tmp/.X91* If you have any idea of why this error happens or any suggestion on what could be the reason I would gladly appreciate it. Thanks in advanced, Victor 2022-08-11 08:53:28.221000 Ticket #6: Error while building project CODESYS 4 Linux codesys-4-linux tickets tickets False /tol/codesys-4-linux/tickets/6/ Ticket This Error while building project False 2 2021-10-06 16:30:28.714000 6 Error while building project closed 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-8 from __future__ import print_function import os import scriptengine # opens project proj = projects.open(r"MyProject.projectarchive", primary = True) application = proj.active_application #This line causes the error application.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: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29#!/bin/bash WINE=wine set -x # get first CODESYS profile and start the script with it profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile* | head -n 1 | sed 's,\.profile.*,,')") echo ${profile} # check if file exists, before we call CODESYS with it if [ ! -f ${1}.py ]; then echo "error: script '${1}.py' not found." exit -1 fi export DISPLAY=:91 Xvfb :91 &> /dev/zero & sleep 1 export WINEPREFIX=~/.wine.cds # test that running scripts work ${WINE} ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/noop.py" --noUI 2> /dev/zero # remove output log [ -f .codesys.output.txt ] && rm -f .codesys.output.txt ${WINE} ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${1}.py" --noUI sleep 1 killall Xvfb rm -rf /tmp/.X91* If you have any idea of why this error happens or any suggestion on what could be the reason I would gladly appreciate it. Thanks in advanced, Victor False False 0 0 0 None 1.0 vcbz None
Last updated: 2022-08-11
Post by ingo on #6 Error while building project
CODESYS 4 Linux
tickets
(Post)
Thanks for diving into the rabbit whole. 😉 I now improved the error reporting and stability of build-bootapp. Hint: You can call it like this, from the folder of your *.project file... docker run -v $(pwd):$(pwd) -w $(pwd) codesys-ide codesys build-bootapp
Last updated: 2022-08-11
Home
ividic
wiki
(WikiPage)
This is the personal project of ividic. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2022-08-11
(no subject)
CODESYS 4 Linux
tickets
(Thread)
Last updated: 2022-08-11
(no subject)
ividic
wiki
(Thread)
Last updated: 2022-08-11
wiki Discussion
mpsa
wiki
(Discussion)
Forum for wiki comments
Last updated: 2022-08-11
blog Discussion
mpsa
blog
(Discussion)
Forum for blog comments
Last updated: 2022-08-11
Home
mpsa
wiki
(WikiPage)
This is the personal project of mpsa. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2022-08-11
(no subject)
mpsa
wiki
(Thread)
Last updated: 2022-08-11
Home
leumas369
wiki
(WikiPage)
This is the personal project of leumas369. This project is created automatically during user registration as an easy place to store personal data that doesn't need its own project such as cloned repositories.
Last updated: 2022-08-12
wiki Discussion
leumas369
wiki
(Discussion)
Forum for wiki comments
Last updated: 2022-08-12