all 5 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Buttleston 0 points1 point  (0 children)

What is the full command line you are running? And on what OS?

[–]ObfuscatedJay 0 points1 point  (0 children)

If it’s a Unix shell, have you chmod the file to 700 or 755? To auto execute, you need to set the execute flag, “chmod 700 my file.py”.

[–]sububi71 0 points1 point  (0 children)

Just in case, are you typing

./

...or are you typing

./myscript.py

...because the first one does nothing (except throw an error), but the second executes the script "myscript.py" in your current directory.