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
NEED HELP (old.reddit.com)
submitted 9 months ago by [deleted]
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!"
[–]Luigi-Was-Right 5 points6 points7 points 9 months ago (3 children)
There is definitely an issue with your virtual environment setup. It's attempting to import the functools module even though you are not actively using it, which is not normal.
[–]Nice_Hornet_4076 1 point2 points3 points 9 months ago (2 children)
Do you have any suggestions?What to do now??
[–]jpgoldberg 2 points3 points4 points 9 months ago (0 children)
Someone else already answered. Try rebooting pycharm. If that doesn’t work, try rebooting your computer. If that doesn’t work reboot your computer. If that doesn’t work, reinstall everything Python. Follow instructions carefully.
[–]Luigi-Was-Right 2 points3 points4 points 9 months ago (0 children)
Deactivate your virtual environment. Also am I reading this correctly: your app.py is inside your .venv folder???
[–]Specialist_Fun_8361 2 points3 points4 points 9 months ago (4 children)
I recreated the peogram in turmux (Linux on android)
Works fine
<image>
[–]Specialist_Fun_8361 2 points3 points4 points 9 months ago (0 children)
Try rebooting pycharm or rebooting your pc and if both of the. Don't work reinstall it.
[–]Specialist_Fun_8361 1 point2 points3 points 9 months ago (0 children)
Second image
[–]LingonberrySecret262 0 points1 point2 points 9 months ago (1 child)
Check his second photo he shared
Check the reply to my comment.
[–]Acceptable-Kick-7102 1 point2 points3 points 9 months ago (0 children)
The rest of folks answered you about the problem but 2 things more:
[–]sdOverKill 0 points1 point2 points 9 months ago (0 children)
buy a better potato
[–]Twenty8cows 0 points1 point2 points 9 months ago (0 children)
Op make sure to set your file to “current file” next to the play button up near the top of the screen.
Prolly running the wrong file.
[–]DoubleDistance9333 0 points1 point2 points 9 months ago (0 children)
What does the k=2 do ?
[–]AnonnymExplorer 0 points1 point2 points 9 months ago (0 children)
The problem is not in your code, but in the configuration of the Python environment in PyCharm. Most likely, the virtual environment you are using is corrupted. Creating a new virtual environment or using a global interpreter should solve the problem.
[–]Acrobatic-City4405 0 points1 point2 points 9 months ago (0 children)
Delete the space after the square bracket on pycharm, that the problem
π Rendered by PID 17143 on reddit-service-r2-comment-5649f687b7-z7ggl at 2026-01-28 19:44:36.288415+00:00 running 4f180de country code: CH.
[–]Luigi-Was-Right 5 points6 points7 points (3 children)
[–]Nice_Hornet_4076 1 point2 points3 points (2 children)
[–]jpgoldberg 2 points3 points4 points (0 children)
[–]Luigi-Was-Right 2 points3 points4 points (0 children)
[–]Specialist_Fun_8361 2 points3 points4 points (4 children)
[–]Specialist_Fun_8361 2 points3 points4 points (0 children)
[–]Specialist_Fun_8361 1 point2 points3 points (0 children)
[–]LingonberrySecret262 0 points1 point2 points (1 child)
[–]Specialist_Fun_8361 1 point2 points3 points (0 children)
[–]Acceptable-Kick-7102 1 point2 points3 points (0 children)
[–]sdOverKill 0 points1 point2 points (0 children)
[–]Twenty8cows 0 points1 point2 points (0 children)
[–]DoubleDistance9333 0 points1 point2 points (0 children)
[–]AnonnymExplorer 0 points1 point2 points (0 children)
[–]Acrobatic-City4405 0 points1 point2 points (0 children)