Closed where2go947 closed 7 months ago
发下 debug 文件夹看看,里面有日志
而在library.py中,确实没有看到函数Library.framework.MaaAdbControllerCreateV2的定义
这个 MaaAdbControllerCreateV2 是是动态库里的函数
发下 debug 文件夹看看,里面有日志
debug文件夹在哪里看呀(: 我是断点看的,报错内容是这个:
[2023-11-29 18:18:12.543][ERR][Px18556][Tx35055][PipelineResMgr.cpp][L58][MaaNS::ResourceNS::PipelineResMgr::load_all_json] path not exists
[2023-11-29 18:18:12.543][ERR][Px18556][Tx35055][PipelineResMgr.cpp][L23][MaaNS::ResourceNS::PipelineResMgr::load] load_all_json failed [path=my_resource/pipeline]
[2023-11-29 18:18:12.546][ERR][Px18556][Tx57548][LibraryHolder.h][L62][MaaNS::LibraryHolder<class MaaNS::AdbControlUnitLibraryHolder>::load_library] Failed to load library [libname=MaaAdbControlUnit] [message=????????????顣]
[2023-11-29 18:18:12.547][ERR][Px18556][Tx57548][ControlUnit.cpp][L34][MaaNS::AdbControlUnitLibraryHolder::create_control_unit] Failed to load library [libname_=MaaAdbControlUnit]
[2023-11-29 18:18:12.547][ERR][Px18556][Tx57548][MaaController.cpp][L33][MaaAdbControllerCreateV2] Failed to create control unit
是需要先编译cpp吗,能不能简单说一下步骤(非科班,对cmake不太熟)
看起来是 1.3.0 版本引入了 bug,python api 不能正常运行了,你可以先试试 1.2.0 + python api,或者 1.3.0 + c api
好的,谢谢~
Windows 修了,linux 下的不会弄,等个有缘的大佬
大佬您好,我在尝试看您
sample/python
下的代码,遇到了一些问题,如果您有空的话,可以解答一下吗:RuntimeError: Failed to create ADB controller
(实际端口port是从bluestacks.conf
中读取的,且检查过没问题) https://github.com/MaaAssistantArknights/MaaFramework/blob/5cd4cc945e395edfca47a7b4096b1885fcb807da/sample/python/__main__.py#L14self._handle
为空: https://github.com/MaaAssistantArknights/MaaFramework/blob/5cd4cc945e395edfca47a7b4096b1885fcb807da/source/binding/Python/maa/controller.py#L313-L324 3.而在library.py
中,确实没有看到函数Library.framework.MaaAdbControllerCreateV2
的定义。Library.framework
是类型WinDLL : ...
,Library
应该是正常加载了(Library.open(...)
),请问是我哪里理解错了吗目前是想先用python和Bluestacks 5建立连接,再去看流程怎么搭建,windows 10平台。然而卡在连接上了,希望大佬能看一下,谢谢!