Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Shebang funktioniert nicht mehr
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
schmidicom
Veteran
Veteran


Joined: 09 Mar 2006
Posts: 1924
Location: Schweiz

PostPosted: Tue Mar 19, 2024 8:01 am    Post subject: [solved] Shebang funktioniert nicht mehr Reply with quote

Ich wollte heute an einem Python-Script weiter machen das ich am schreiben bin und musste nun feststellen das der Shebang am Anfang des Script nicht mehr funktioniert.

Im Script steht ganz am Anfang der folgende Shebang:
Code:
#!/usr/bin/env python3
...

Und trotzdem kommt beim Versuch das Script auszuführen der folgende Fehler:
Code:
exec: Failed to execute process './mein_script.py': The file specified the interpreter '/usr/bin/env python3', which is not an executable command.


Wenn ich im Terminal aber "env python3" eingebe lande ich erfolgreich in einer Python-Shell.
Code:
Python 3.11.8 (main, Feb 23 2024, 07:37:04) [GCC 13.2.1 20240113] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

Google ist wieder einmal alles andere als hilfreich, weiß hier jemand was da abgeht?

EDIT:
Problem gefunden.
Wenn ich etwas mit OneDriver in die OeDrive verschiebe gehen die Unix-Rechte der Datei und damit das Ausführen-Bit "x" verloren...
_________________
Lenovo - ThinkPad P16s Gen 2 - 21K9CTO1WW
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum