- LinuxCNC
- Installing LinuxCNC
- File "/usr/bin/update_ini", line 47 print "Unknown command line option to
File "/usr/bin/update_ini", line 47 print "Unknown command line option to
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!
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19200
- Thank you received: 6436
21 Jan 2021 17:07 #196106
by tommylight
Replied by tommylight on topic File "/usr/bin/update_ini", line 47 print "Unknown command line option to
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.
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.
22 Jan 2021 23:06 #196293
by andypugh
Replied by andypugh on topic File "/usr/bin/update_ini", line 47 print "Unknown command line option to
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.
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.
- LinuxCNC
- Installing LinuxCNC
- File "/usr/bin/update_ini", line 47 print "Unknown command line option to
Time to create page: 0.121 seconds