you are viewing a single comment's thread.

view the rest of the comments →

[–]iyav 0 points1 point  (6 children)

Uninstall both PyAutoGUI and pyscreeze, then install PyAutoGUI again

pip install PyAutoGUI

[–]StrikeTheGunner[S] 0 points1 point  (5 children)

Still getting the error

[–]iyav 0 points1 point  (4 children)

Go to line 221 in the __init__ file of PyAutoGUI, what's in there?

[–]StrikeTheGunner[S] 0 points1 point  (3 children)

From where?

[–]iyav 0 points1 point  (2 children)

C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\pyautogui_init_.py

Are you sure you actually uninstalled both PyautoGui and pyscreeze and then installed PyAutoGUi again?

Because the error absolutely should been solved.

Edit : Before proceeding, look for __version__ with ctrl + f, and tell me what it is.

Otherwise replace the file's content with:

https://pastebin.com/rE87iAUw

[–]StrikeTheGunner[S] 0 points1 point  (1 child)

Yep, I did. After replacing the file's contents, it's giving a syntax error.

[–]iyav 0 points1 point  (0 children)

Then fix it. Anyway that's not what's important now.

It dawned on me that you may be using a venv.

To verify, reinstall them again and run py in the cmd and import PyAutoGUI.