"bad interpreter: Input/output error"

Jeff atrocity at wywh.com
Sat Jan 13 16:23:53 UTC 2024


On 1/13/24 07:24, Ian Bruntlett wrote:

 > 1. Have you enough drive space left?

Yes. It's not that the scripts can't be executed at all, it's that for 
some reason the shebang line is suddenly...I don't know...not understood 
or something. If I submit "/usr/bin/python3 script.py" it works fine.

 > 2. Are you experiencing file system corruption?

I haven't seen any other indication of it. I'm using zfs and haven't had 
any issues that I'm aware of.

 > 3. Can you send the results of a hex dump of a faulty bash script to
 > here?

Sure, here you go. I submitted this command:

head -1 /mnt/WD8TBNAS03/Documents/ShellScripts/test.py | od -A x -t x1z -v

and got this back:

000000 23 21 2f 75 73 72 2f 62 69 6e 2f 70 79 74 68 6f >#!/usr/bin/pytho<
000010 6e 33 0a                                         >n3.<
000013

If I just submit test.py I get:

bash: /mnt/WD8TBNAS03/Documents/ShellScripts/test.py: /usr/bin/python3: 
bad interpreter: Input/output error

If I submit:

python3 /mnt/WD8TBNAS03/Documents/ShellScripts/test.py

I get what I expect:

Does this work? (<- what the script says to print)

Thank you!






More information about the ubuntu-users mailing list