"bad interpreter" error when running createst.py

Hello everyone!
I was trying to run the createst.py script and I got this error message:
../suricata-verify/createst.py: /bin/python: bad interpreter: No such file or directory
By changing the interpreter on the first line “! /bin/python” to “! /usr/bin/env python3” I can run the script without problems. Is this correct or is it outdated? I ask because the other Suricata-Verify python scripts have “! /usr/bin/env python3” as the interpreter…


(The message in this image says: bash: ../suricata-verify/createst.py: /bin/python: bad interpreter: No such file or directory)

Hi:
Instead of changing the files have you tried using:
python3 ../suricata-verify/createst.py ......

You can substitute python3 with whatever python version you are using,

1 Like

Hello Haalema! Thank you so much, I hadn’t tried that before haha

2 Likes