ANRAR4 / AutoBTD6

The scripts contained in this repository allow you to automatically play any gamemode on any map in Bloons TD6
31 stars 4 forks source link

Import Error for pyautogui #18

Closed CobaltL closed 5 months ago

CobaltL commented 6 months ago

$ 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 commented 6 months ago

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