- Posts: 47
- Thank you received: 0
execv(python): No such file or directory / python working directory
4 years 1 day ago #255402
by chili023
I just freshly installed linuxcnc 2.9 pre on debina bullseye
The system works but now I want to include some python code.
at the line:
loadusr -Wn compensation python compensation.py filename.txt
it gives the error
execv(python): No such file or directory
The file is the configs/"configurationName" folder.
Where is python looking for the file?
Thanks
A.
The system works but now I want to include some python code.
at the line:
loadusr -Wn compensation python compensation.py filename.txt
it gives the error
execv(python): No such file or directory
The file is the configs/"configurationName" folder.
Where is python looking for the file?
Thanks
A.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
4 years 1 day ago #255406
by tommylight
Replied by tommylight on topic execv(python): No such file or directory / python working directory
One thing to check is make sure the compensation.py file is executable.loadusr -Wn compensation python compensation.py filename.txt
it gives the error
execv(python): No such file or directory
Please Log in to join the conversation.
4 years 1 day ago #255408
by chili023
Replied by chili023 on topic execv(python): No such file or directory / python working directory
Thanks I just set
chmod 777 compensation.py and filename.txt
no change.
the working directory of linuxcnc ist the directory of the config ?
so /home/user/linuxcnc/configs/maschine ?
chmod 777 compensation.py and filename.txt
no change.
the working directory of linuxcnc ist the directory of the config ?
so /home/user/linuxcnc/configs/maschine ?
Please Log in to join the conversation.
4 years 1 day ago #255410
by chili023
Replied by chili023 on topic execv(python): No such file or directory / python working directory
even with loadusr -Wn compensation python /home/work/linuxcnc/configs/SilverGlider/compensation.py
it gives this error
it gives this error
Please Log in to join the conversation.
4 years 1 day ago #255412
by cmorley
Replied by cmorley on topic execv(python): No such file or directory / python working directory
try:
loadusr -Wn compensation python3 compensation.py filename.txt
loadusr -Wn compensation python3 compensation.py filename.txt
Please Log in to join the conversation.
4 years 1 day ago #255416
by cmorley
Replied by cmorley on topic execv(python): No such file or directory / python working directory
Wait, did you add the compensation component to linuxcnc?
If so where did you add it?
Also qtdragon_hd in 2.9 supports built in gcode ripper and z level compensation.
Are you instead trying 3rd party code?
Could you give more information.
If so where did you add it?
Also qtdragon_hd in 2.9 supports built in gcode ripper and z level compensation.
Are you instead trying 3rd party code?
Could you give more information.
Please Log in to join the conversation.
3 years 2 months ago #277318
by SrLange61
Replied by SrLange61 on topic execv(python): No such file or directory / python working directory
I just did a Debian upgrade and adding the "3" to python fixed it for me.
Thanks
srl
Thanks
srl
Please Log in to join the conversation.
2 years 10 months ago #288991
by Dieter
Replied by Dieter on topic execv(python): No such file or directory / python working directory
Hallo zusammen, ich habe das selbe Problem,
ich habe jetzt den Eintrag in der Hal auf
loadusr -Wn compensation python3 compensation.py probe-results.txt cubic
umgeschrieben und zusätzlich in der compensation.py die Zeil_1 wie folgt umbenannt #!/usr/bin/env python3
dann kam aber folgende Meldung:
note: jog_invert=set()
File "/home/dieter/linuxcnc/configs/Axis_mit_Handrad/compensation.py", line 43
print "ERROR! No input file name specified!"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
compensation.hal:8: waitpid failed python3 compensation
compensation.hal:8: python3 exited without becoming ready
9390
9447
probe-results.txt müsste doch die Datei sein die er nicht findet oder?
Als weiterer Hinweis:
Was mache ich falsch, da ja dies bereit schon mal funktioniert hatte, hatte nur an der INI ein paar Zeilen dazugefügt, was mit diesem Thema nichts zu tun hatte, dann kam auf einmal diese Fehlermeldung: execv(python): No such file or directory / python working directory
Dann habe ich einen neuen Rechner mit Debian 12 und Linuxcnc 2.9.1 aufgesetzt der hat Python3 installiert, aber hier funktioniert es auch nicht.
der Alte Rechner bei dem es auch nicht mehr funktioniert hatte Linuxcn 2.8.4 und Pyhton 2 installiert.
Leider weiss ich keinen Rat mehr.
ich habe jetzt den Eintrag in der Hal auf
loadusr -Wn compensation python3 compensation.py probe-results.txt cubic
umgeschrieben und zusätzlich in der compensation.py die Zeil_1 wie folgt umbenannt #!/usr/bin/env python3
dann kam aber folgende Meldung:
note: jog_invert=set()
File "/home/dieter/linuxcnc/configs/Axis_mit_Handrad/compensation.py", line 43
print "ERROR! No input file name specified!"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
compensation.hal:8: waitpid failed python3 compensation
compensation.hal:8: python3 exited without becoming ready
9390
9447
probe-results.txt müsste doch die Datei sein die er nicht findet oder?
Als weiterer Hinweis:
Was mache ich falsch, da ja dies bereit schon mal funktioniert hatte, hatte nur an der INI ein paar Zeilen dazugefügt, was mit diesem Thema nichts zu tun hatte, dann kam auf einmal diese Fehlermeldung: execv(python): No such file or directory / python working directory
Dann habe ich einen neuen Rechner mit Debian 12 und Linuxcnc 2.9.1 aufgesetzt der hat Python3 installiert, aber hier funktioniert es auch nicht.
der Alte Rechner bei dem es auch nicht mehr funktioniert hatte Linuxcn 2.8.4 und Pyhton 2 installiert.
Leider weiss ich keinen Rat mehr.
Please Log in to join the conversation.
2 years 10 months ago #288992
by Aciera
Replied by Aciera on topic execv(python): No such file or directory / python working directory
Das ist klar Python2 Syntax, daher die Fehlermeldung. Vielleicht kannst du die Datei 'compensation.py' hier posten.File "/home/dieter/linuxcnc/configs/Axis_mit_Handrad/compensation.py", line 43
print "ERROR! No input file name specified!"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
Please Log in to join the conversation.
Time to create page: 0.077 seconds
