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

centOS执行脚本报错,提示HOOK-ERROR in before_all: AttributeError: 'PluginProxy' object has no attribute 'device_connect' #9

Closed
ericchen82 opened this issue Feb 23, 2022 · 6 comments

Comments

@ericchen82
Copy link

ericchen82 commented Feb 23, 2022

问题描述 / Describe the bug
centOS执行脚本报错,提示HOOK-ERROR in before_all: AttributeError: 'PluginProxy' object has no attribute 'device_connect'

截图 / Screenshots
第一个问题:
image
这个目录下文件存在,没有问题
image

第二个问题:
image

环境信息 / Environment (please complete the following information):

  • OS: centOS7
@DHpie
Copy link
Collaborator

DHpie commented Feb 23, 2022

这个看起来是 查找路径时,大小写未兼容造成的。 请将 【flybirds_config.json】的 platform 项配置成 全小写(android) 后再尝试一下。
感谢提问,我们后期会将修复代码进行上传。

@tonylin3409
Copy link

我今天也遇到了这个问题

@ericchen82
Copy link
Author

看起来,这与大小写不兼容时查找路径。请将[flybirds_config.json]的平台项配置为全下写(安卓),然后再尝试。
感谢提问,我们上传修复代码。

配置中改成小写android,报ImportError: cannot import name '_registerMatType' from 'cv2.cv2' (/usr/local/lib/python3.8/site-packages/cv2/cv2.cpython-38-x86_64-linux-gnu.so)错误
通过安装# pip3 install opencv-python-headless==4.1.2.30临时解决

@DHpie
Copy link
Collaborator

DHpie commented Feb 24, 2022

看起来,这与大小写不兼容时查找路径。请将[flybirds_config.json]的平台项配置为全下写(安卓),然后再尝试。
感谢提问,我们上传修复代码。

配置中改成小写android,报ImportError: cannot import name '_registerMatType' from 'cv2.cv2' (/usr/local/lib/python3.8/site-packages/cv2/cv2.cpython-38-x86_64-linux-gnu.so)错误 通过安装# pip3 install opencv-python-headless==4.1.2.30临时解决

flybirds 中没有使用 opencv-python opencv-python-headless, 出现这个报错的原因可能是你本机上安装的opencv-pythonopencv-python-headless 版本冲突导致的,可以参考 这里

@DHpie
Copy link
Collaborator

DHpie commented Feb 24, 2022

我今天也遇到了这个问题

试试将 【flybirds_config.json】的 platform 项配置成 全小写(android)

@DHpie DHpie closed this as completed in 9bf5a5f Feb 24, 2022
@tonylin3409
Copy link

试试将 【flybirds_config.json】的 platform 项配置成 全小写(android)

修改为android后,问题已解决。

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

3 participants