在执行train_sim.py后报错:
Traceback (most recent call last):
File "E:/python_diaoyu/genshin_auto_fish/train_sim.py", line 3, in
from fisher.environment import
File "E:\python_diaoyu\genshin_auto_fish\fisher\environment.py", line 4, in
from utils import
File "E:\python_diaoyu\genshin_auto_fish\utils__init__.py", line 2, in
from .utils import *
File "E:\python_diaoyu\genshin_auto_fish\utils\utils.py", line 30, in
gvars.genshin_window_rect = win32gui.GetWindowRect(hwnd)
pywintypes.error: (1400, 'GetWindowRect', '无效的窗口句柄。')
请问应该怎么解决?
在执行train_sim.py后报错: Traceback (most recent call last): File "E:/python_diaoyu/genshin_auto_fish/train_sim.py", line 3, in
from fisher.environment import
File "E:\python_diaoyu\genshin_auto_fish\fisher\environment.py", line 4, in
from utils import
File "E:\python_diaoyu\genshin_auto_fish\utils__init__.py", line 2, in
from .utils import *
File "E:\python_diaoyu\genshin_auto_fish\utils\utils.py", line 30, in
gvars.genshin_window_rect = win32gui.GetWindowRect(hwnd)
pywintypes.error: (1400, 'GetWindowRect', '无效的窗口句柄。')
请问应该怎么解决?