FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
01-25-2023 04:52 PM
I was trying to run a program created in TIGER (Visual Coding) in the textual coding part of the IDE. In order to do that I simply tried to run the script created in TIGER within the textual coding environment.
The script works fine in the TIGER environment. However I get an error as in the title upon execution of the script.
The full traceback is as follows:
"# cd '/var/snap/rexroth-ide/common/solutions/activeConfiguration' && env '/usr/bin/python3' '/var/snap/rexroth-ide/common/plugins/vscode-python/extension/pythonFiles/lib/python/debugpy/launcher' '46181' '--' '/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/bosch/tiger/42922355-dd61-47c4-b180-c5e1dc3b1134.py'
System architecture: x86_64
Traceback (most recent call last):
File "/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/bosch/tiger/42922355-dd61-47c4-b180-c5e1dc3b1134.py", line 1375, in <module>
class motion:
File "/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/bosch/tiger/42922355-dd61-47c4-b180-c5e1dc3b1134.py", line 1376, in motion
Axis_1 = motion.factory.create_axis("""Axis_1""",
File "/var/snap/rexroth-ide/common/solutions/activeConfiguration/scripts/bosch/tiger/42922355-dd61-47c4-b180-c5e1dc3b1134.py", line 1251, in create_axis
MotionLib.attach_obj(name)
AttributeError: module 'motion' has no attribute 'attach_obj'
# "
Do I need to do an extra configuration in the textual coding in order to run scripts from the visual coding side?
Thank you
Solved! Go to Solution.
01-26-2023 08:08 AM
Could you please tell us the version of the ctrlX CORE - Motion, - IDE and - Python Runtime app you are using?
Please keep in mind that there are two ways of running a script. Like I mentioned in this post. The script created by the graphical programming is made for the usage on a ctrlX CORE in our python runtime. So the python interpreter running in your browser does probably not have the necessary sources to interpret the script. You will have to choose the option run in script interpreter for this case. Just tested this scenario again.
01-26-2023 08:24 AM
I was using 1.18 vor both CORE and the motion/IDE apps.
It was the selection of the runtime that was the issue. It works just fine now after selecting the Script engine.