10-28-2025, 01:22 PM
Hi, after updating to the latest RoboDK version I can't generate any program for KUKA robot, all postprocessors except KUKA_KRC1_DAT.py produces the following error.
I managed to solve the problem by commenting out the following line HEADER = DEFAULT_HEADER in the KUKA_KRC2.py, but I'm not sure is it ok.
Code:
Using Python version: sys.version_info(major=3, minor=11, micro=9, releaselevel='final', serial=0)
RoboDK Post Processor: C:\RoboDK\Posts\KUKA_KRC4.py
Using Python version: sys.version_info(major=3, minor=11, micro=9, releaselevel='final', serial=0)
RoboDK Post Processor: C:\RoboDK\Posts\KUKA_KRC2.py
Invalid Python version or post processor not found. Make sure to download the latest version of RoboDK.
Select Tools-Options-Python and select a supported Python version
This script was executed using Python 3.11.9
Information about the error:
NameError("name 'DEFAULT_HEADER' is not defined")
Traceback (most recent call last):
File "C:\RoboDK\Posts\KUKA_KRC4.py", line 39, in <module>
from libspp.KUKA_KRC4 import RobotPost as BasePost
File "KUKA_KRC4.py", line 61, in init KUKA_KRC4
# Set to True to include subprograms in the main program. Otherwise, programs can be generated separately.
File "C:\RoboDK\Posts\KUKA_KRC2.py", line 56, in <module>
class RobotPost(BasePost):
File "C:\RoboDK\Posts\KUKA_KRC2.py", line 148, in RobotPost
HEADER = DEFAULT_HEADER
^^^^^^^^^^^^^^I managed to solve the problem by commenting out the following line HEADER = DEFAULT_HEADER in the KUKA_KRC2.py, but I'm not sure is it ok.


