tianqiraf / DouZero_For_HappyDouDiZhu

基于DouZero定制AI实战欢乐斗地主
Apache License 2.0
1.96k stars 437 forks source link

_couldNotImportPyScreeze() got an unexpected keyword argument 'region' #38

Open chunlaiqingke opened 1 year ago

chunlaiqingke commented 1 year ago

Traceback (most recent call last): File "/Users/zhaojun/github/DouZero_For_HappyDouDiZhu/main.py", line 115, in init_cards self.user_hand_cards_real = self.find_my_cards(self.MyHandCardsPos) File "/Users/zhaojun/github/DouZero_For_HappyDouDiZhu/main.py", line 292, in find_my_cards img = pyautogui.screenshot(region=pos) TypeError: _couldNotImportPyScreeze() got an unexpected keyword argument 'region'

执行开始按钮之后报这个错

macos

chunlaiqingke commented 1 year ago

python3.9

CokeYours commented 1 year ago

我也是!!!python 3.9

huiyidian commented 1 year ago

大家解决了不

wodaimnd commented 7 months ago

Traceback (most recent call last): File "E:\git\DouZero_For_HappyDouDiZhu-2.0\main.py", line 115, in init_cards self.user_hand_cards_real = self.find_my_cards(self.MyHandCardsPos) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\git\DouZero_For_HappyDouDiZhu-2.0\main.py", line 290, in find_my_cards img = pyautogui.screenshot(region=pos) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _couldNotImportPyScreeze() got an unexpected keyword argument 'region'

azJoe123 commented 6 months ago

一样救救

forgrabbit commented 3 months ago

pip install --upgrade pyautogui可以解决