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

MaaDebugger-1.4.0 依赖MaaFw版本错误导致无法运行 #28

Open
Choimoe opened this issue Jan 12, 2025 · 0 comments
Open

MaaDebugger-1.4.0 依赖MaaFw版本错误导致无法运行 #28

Choimoe opened this issue Jan 12, 2025 · 0 comments

Comments

@Choimoe
Copy link

Choimoe commented Jan 12, 2025

使用 pip 安装 MaaDebugger:

F:\CS\Project\MaaRougeHelper\MaaRogueHelper>pip install MaaDebugger
Collecting MaaDebugger
  Using cached maadebugger-1.4.0-py3-none-any.whl.metadata (930 bytes)
Collecting MaaFw>=2.0.0b4 (from MaaDebugger)
  Using cached MaaFw-3.0.0b1-py3-none-win_amd64.whl.metadata (11 kB)
Requirement already satisfied: ...
Using cached maadebugger-1.4.0-py3-none-any.whl (11 kB)
Using cached MaaFw-3.0.0b1-py3-none-win_amd64.whl (25.2 MB)
Installing collected packages: MaaFw, MaaDebugger
Successfully installed MaaDebugger-1.4.0 MaaFw-3.0.0b1

安装的版本:

F:\CS\Project\MaaRougeHelper\MaaRogueHelper>pip show maafw
Name: MaaFw
Version: 3.0.0b1
Summary: An automation black-box testing framework based on image recognition
Home-page: https://github.com/MaaXYZ/MaaFramework
Author: MaaXYZ
Author-email:
License:
Location: c:\users\qwqsh\appdata\local\programs\python\python310\lib\site-packages
Requires: MaaAgentBinary, numpy
Required-by: MaaDebugger

F:\CS\Project\MaaRougeHelper\MaaRogueHelper>pip show MaaDebugger
Name: MaaDebugger
Version: 1.4.0
Summary: MaaDebugger
Home-page: https://github.com/MaaXYZ/MaaDebugger
Author: MaaXYZ
Author-email:
License:
Location: c:\users\qwqsh\appdata\local\programs\python\python310\lib\site-packages
Requires: asyncify, MaaFw, nicegui, pillow
Required-by:

由于MaaFw3.0对变量名的更改,无法使用 MaaDebugger:

F:\CS\Project\MaaRougeHelper\MaaRogueHelper>python -m MaaDebugger --port 8080
Traceback (most recent call last):
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\site-packages\MaaDebugger\__main__.py", line 1, in <module>
    from .main import main
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\site-packages\MaaDebugger\main.py", line 3, in <module>
    from .webpage import index_page
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\site-packages\MaaDebugger\webpage\index_page\__init__.py", line 4, in <module>
    from .runtime_control import main as runtime_control
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\site-packages\MaaDebugger\webpage\index_page\runtime_control.py", line 17, in <module>
    class RecognitionRow:
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\site-packages\MaaDebugger\webpage\index_page\runtime_control.py", line 19, in RecognitionRow
    class MyNotificationHandler(NotificationHandler):
  File "C:\Users\qwqsh\AppData\Local\Programs\Python\Python310\lib\site-packages\MaaDebugger\webpage\index_page\runtime_control.py", line 28, in MyNotificationHandler
    self, type: NotificationType, detail: NotificationHandler.TaskNextListDetail
AttributeError: type object 'NotificationHandler' has no attribute 'TaskNextListDetail'. Did you mean: 'NodeNextListDetail'?

安装 pre-release 版本后运行成功:

pip install --upgrade --pre MaaDebugger

是否需要更改1.4.0版本依赖的MaaFW版本?

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

1 participant