execv(python): No such file or directory / python working directory

More
3 years 2 months ago #277318 by SrLange61
I just did a Debian upgrade and adding the "3" to python fixed it for me.

Thanks
srl
The following user(s) said Thank You: tommylight

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

More
2 years 10 months ago - 2 years 10 months ago #288991 by Dieter
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.

 
Last edit: 2 years 10 months ago by Dieter.

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

More
2 years 10 months ago #288992 by Aciera

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(...)?

Das ist klar Python2 Syntax, daher die Fehlermeldung. Vielleicht kannst du die Datei 'compensation.py' hier posten.

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

More
2 years 10 months ago #288995 by Dieter
Super Danke, habe ich oben schon hochgeladen

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

More
2 years 10 months ago #288996 by Dieter
jetzt ist mir auch klar, das viele Erweiterung auf dem neuen Rechner nicht mehr funktionieren.
Macht es dann sinn, Pyhton2 nach zu installieren, da ja mit Sicherheit viele Linuxcnc Erweiterungen in Python 2 geschrieben wurden.
ich habe ja, auch noch auf dem neuen Rechner, das Problem mit GladeVCP

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

More
2 years 10 months ago #288998 by Aciera
Ich würde eher dazu raten die Erweiterungen auf Python3 Niveau zu bringen.

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

Time to create page: 0.427 seconds
Powered by Kunena Forum