Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error for pyautogui #18

Closed
CobaltL opened this issue Feb 10, 2024 · 1 comment
Closed

Import Error for pyautogui #18

CobaltL opened this issue Feb 10, 2024 · 1 comment

Comments

@CobaltL
Copy link

CobaltL commented Feb 10, 2024

$ python replay.py l
Traceback (most recent call last):
File "C:\Users\Cobalt\Desktop\AutoBTD6-main\replay.py", line 1, in
from helper import *
File "C:\Users\Cobalt\Desktop\AutoBTD6-main\helper.py", line 4, in
import pyautogui
File "C:\Users\Cobalt\AppData\Roaming\Python\Python311\site-packages\pyautogui_init_.py", line 542, in
from . import _pyautogui_win as platformModule
ImportError: cannot import name 'pyautogui_win' from partially initialized module 'pyautogui' (most likely due to a circular import) (C:\Users\Cobalt\AppData\Roaming\Python\Python311\site-packages\pyautogui_init.py)

I'm pretty certain this issue could be solved with experience in coding but I have none. Scowered and no solution was found. Could you please teach how to fix this?

@KendleMintJed
Copy link
Contributor

This is an error with the pyautogui package versions 0.9.52 and above
downgrading to version 0.9.51 will fix the issue

@CobaltL CobaltL closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants