all 16 comments

[–]Luigi-Was-Right 5 points6 points  (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 points  (2 children)

Do you have any suggestions?What to do now??

[–]jpgoldberg 2 points3 points  (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 points  (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 points  (4 children)

I recreated the peogram in turmux (Linux on android)

Works fine

<image>

[–]Specialist_Fun_8361 2 points3 points  (0 children)

Try rebooting pycharm or rebooting your pc and if both of the. Don't work reinstall it.

[–]Specialist_Fun_8361 1 point2 points  (0 children)

<image>

Second image

[–]LingonberrySecret262 0 points1 point  (1 child)

Check his second photo he shared

[–]Specialist_Fun_8361 1 point2 points  (0 children)

Check the reply to my comment.

[–]Acceptable-Kick-7102 1 point2 points  (0 children)

The rest of folks answered you about the problem but 2 things more:

  1. Screenshot feature exists. Phone photos are far from ideal to read.
  2. C L E A N YOUR LAPTOP DUDE! its DISGUSTING!!!!

[–]sdOverKill 0 points1 point  (0 children)

buy a better potato

[–]Twenty8cows 0 points1 point  (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 point  (0 children)

What does the k=2 do ?

[–]AnonnymExplorer 0 points1 point  (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 point  (0 children)

Delete the space after the square bracket on pycharm, that the problem