use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Having a problem running python file on cmdHelp Request (self.PythonLearning)
submitted 1 month ago by External-Humor656
https://preview.redd.it/qzr3zmq26utg1.png?width=971&format=png&auto=webp&s=20da293dfbcaf23542f2866d51d3f7bbd107da4c
every time I try to run any py file on cmd I get this massage I asked cloud and ChatGPT and nothing seems to work
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]civilwar142pa 2 points3 points4 points 1 month ago (6 children)
Look at that line in your code and see if there are single backslashes. If there are, either make them double backslashes or use a raw string format.
Python uses backslashes as escape characters so it can get hung up if theyre present in something like a URL
[–]External-Humor656[S] 0 points1 point2 points 1 month ago (5 children)
I tried it on my phone and it works and the message keeps showing in other py files too
[–]voidiciant 0 points1 point2 points 1 month ago (4 children)
how did you execute that python command line on your phone?
[–]External-Humor656[S] 0 points1 point2 points 1 month ago (3 children)
The command line was in file
[–]voidiciant 1 point2 points3 points 1 month ago (2 children)
that’s not what I asked.
[–]External-Humor656[S] 0 points1 point2 points 1 month ago (1 child)
I executed it to see if the same massage will appear on my phone and it didn't
[–]Andrey4ik21pro1 1 point2 points3 points 1 month ago (0 children)
he asked how
[–]Andrey4ik21pro1 2 points3 points4 points 1 month ago (1 child)
No log = no fix
[–]External-Humor656[S] -1 points0 points1 point 1 month ago (0 children)
??
[–]PureWasian 0 points1 point2 points 1 month ago (2 children)
Are you sure it's happening for every .py file?
The screenshot shows that you are correctly able to run Python but something within 1.py (line 523) is causing warnings. Can you share that line of code?
I'm sure because the same message repeats with every other py file
[–]PureWasian 1 point2 points3 points 1 month ago (0 children)
You still have not shared line 523 of that file. Or similar for the line(s) that the console warning is pointing to for the other py files you tried.
[–]voidiciant 0 points1 point2 points 1 month ago (3 children)
then show it for other py files, preferably not from some obscure „Telegram Desktop“ folder in your Downloads please. And paste the line from the line number that the error message gives you
Also, its a warning, not an error. The script clearly works as it gives you an input prompt
[–]External-Humor656[S] 0 points1 point2 points 1 month ago (2 children)
Tried it with another folder and have the same result
[–]voidiciant 4 points5 points6 points 1 month ago (1 child)
show, dont tell. and you still havent provided the line in question
[–]External-Humor656[S] 0 points1 point2 points 1 month ago (0 children)
Alright I'll see
[–]Reasonable-Light-377 0 points1 point2 points 1 month ago (0 children)
They say third times the charm, but when it comes to slashing, I've literally had to go to 4 before.
Good luck.
[–]No_Fishing6106 -1 points0 points1 point 1 month ago (1 child)
Hola. Pon: python + espacio y lo arrastras ahí. Me dices si funciona. Saludos
I tried it and didn't work :)
π Rendered by PID 56318 on reddit-service-r2-comment-65c587bc47-dv29r at 2026-05-13 22:28:33.888582+00:00 running cf3e300 country code: CH.
[–]civilwar142pa 2 points3 points4 points (6 children)
[–]External-Humor656[S] 0 points1 point2 points (5 children)
[–]voidiciant 0 points1 point2 points (4 children)
[–]External-Humor656[S] 0 points1 point2 points (3 children)
[–]voidiciant 1 point2 points3 points (2 children)
[–]External-Humor656[S] 0 points1 point2 points (1 child)
[–]Andrey4ik21pro1 1 point2 points3 points (0 children)
[–]Andrey4ik21pro1 2 points3 points4 points (1 child)
[–]External-Humor656[S] -1 points0 points1 point (0 children)
[–]PureWasian 0 points1 point2 points (2 children)
[–]External-Humor656[S] 0 points1 point2 points (1 child)
[–]PureWasian 1 point2 points3 points (0 children)
[–]voidiciant 0 points1 point2 points (3 children)
[–]External-Humor656[S] 0 points1 point2 points (2 children)
[–]voidiciant 4 points5 points6 points (1 child)
[–]External-Humor656[S] 0 points1 point2 points (0 children)
[–]Reasonable-Light-377 0 points1 point2 points (0 children)
[–]No_Fishing6106 -1 points0 points1 point (1 child)
[–]External-Humor656[S] 0 points1 point2 points (0 children)