File "/usr/bin/update_ini", line 47 print "Unknown command line option to

More
02 Jan 2021 14:58 - 02 Jan 2021 15:04 #193842 by sage
After a fresh LinuxCNC build in Manjaro (AUR linuxcnc-bin 2.8.0-1), it shows following error when I am trying to start with my configuration file 2030:

LINUXCNC - 2.8.0
Machine configuration directory is '/home/sage/linuxcnc/configs/3020'
Machine configuration file is '3020T.ini'
File "/usr/bin/update_ini", line 47
print "Unknown command line option to update_ini, exiting"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unknown command line option to update_ini, exiting")?
update script failed in an unexpected way.
LinuxCNC terminated with an error. You can find more information in the log:
/home/sage/linuxcnc_debug.txt
and
/home/sage/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

In the file: linuxcnc_debug.txt, there is one line:
Can not find -sec EMC -var VERSION -num 1

Is this a bug? How do I fix it?
Thanks for your help!
Last edit: 02 Jan 2021 15:04 by sage. Reason: Found one more issue

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 17:07 #196106 by tommylight
Can you try installing the 2.8 or master/2.9 version, do the ini conversion then install back the 2.81.
I am sure i saw that error once a while back with a non official version of LinuxCNC, but never on an official one.

Please Log in or Create an account to join the conversation.

More
22 Jan 2021 23:06 #196293 by andypugh
This looks like a Python 2 / Python 3 problem.

The format of the "print" function has changed in Python 3 to require braces. The update_ini script (and the stock LinuxCNC 2.8 install) uses Python 2.

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum