aues6uen11z / honkaihelper Goto Github PK
View Code? Open in Web Editor NEW基于图色识别和OCR的崩坏3自动化脚本
License: MIT License
基于图色识别和OCR的崩坏3自动化脚本
License: MIT License
感谢你做的自动化脚本, 我在使用过程中偶尔会遇到些环境相关的bug,如"DLL load failed while importing win32api: 找不到指定的程序"等,
但是在崩溃时错误信息转瞬即逝, 目前我的做法是用录屏软件来录屏逐帧回放查看错误信息再结合搜索引擎debug, 想问一下能不能在非正常退出/崩溃时添加一个按下任意键继续的功能, 方便查看错误信息.
我环境什么的都配置好了,main.py也成功运行了。但是一直提示说无法找到对应的内容
#返回的错误信息
ratio = (device().get_rect().width() - 6) / template.resolution[0]
AttributeError: 'Android' object has no attribute 'get_rect'
在Airtest中运行main.py时报错:
"D:\Tools\AirtestIDE\AirtestIDE" pyrunner "C:\Users\winds\Documents\Codes\HonkaiHelper\main.py"
[Start running..]
[16692] Failed to execute script AirtestIDE
Traceback (most recent call last):
File "AirtestIDE.py", line 82, in
File "AirtestIDE.py", line 58, in main
File "app\widgets\code_runner\tracer.py", line 72, in run_pyfile
File "C:\Users\winds\Documents\Codes\HonkaiHelper\main.py", line 11, in
from event import *
ModuleNotFoundError: No module named 'event'
[Finished]
然后在cmd中执行pip install event时报错:
C:\Users\winds\Documents\Codes\HonkaiHelper>pip install event
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting event
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d7/e9/3f88290f7a6add3e150b04d61cd989d07b0e5394c37f8bbc32d5a2ee263f/event-0.4.3.zip (56 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\winds\AppData\Local\Temp\pip-install-if_500t4\event_fed8eb9d9aba4ff3a2b89fec8b70b6e8\setup.py", line 20
print 'found libevent build directory', best
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('found libevent build directory', best)?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
请问要怎么解决呢?
Traceback (most recent call last):
File "D:\Github\HONKAI\HonkaiHelper\main.py", line 8, in
from airtest.cli.parser import cli_setup
File "C:\Users\Mapleleaves\AppData\Local\Programs\Python\Python39\lib\site-packages\airtest\cli\parser.py", line 4, in
from airtest.report.report import get_parger as report_parser
File "C:\Users\Mapleleaves\AppData\Local\Programs\Python\Python39\lib\site-packages\airtest\report\report.py", line 15, in
from jinja2 import evalcontextfilter, Markup, escape
ImportError: cannot import name 'evalcontextfilter' from 'jinja2' (C:\Users\Mapleleaves\AppData\Local\Programs\Python\Python39\lib\site-packages\jinja2_init_.py)
在电脑上尝试部署后出现如下提示,google百度均无果,故提问大佬
小白一个,求大佬不要生气
[Start running..]
[2308] Failed to execute script AirtestIDE
Traceback (most recent call last):
File "AirtestIDE.py", line 82, in
File "AirtestIDE.py", line 58, in main
File "app\widgets\code_runner\tracer.py", line 72, in run_pyfile
File "C:\Users\weiwei\Desktop\HonkaiHelper-1f8218c7907c34696ad98697e85b323e22b58c07\main.py", line 8, in
from event import *
ModuleNotFoundError: No module named 'event'
[Finished]
下面是AirtestIDE控制台的内容:
Info: filter not set, use raven.filter.FullPassFilter instead.
loading config from : C:\Users\star\AppData\Local\AirtestIDE\AirtestIDE\user.json
try loading plugin: firebase_plugin
plugin loaded: firebase_plugin
try loading plugin: headspin_plugin
plugin loaded: headspin_plugin
try loading plugin: selenium_plugin
plugin loaded: selenium_plugin
Traceback (most recent call last):
File "jedi\evaluate\compiled\subprocess_init_.py", line 248, in _send
is_exception, traceback, result = pickle_load(self._process.stdout)
File "jedi_compatibility.py", line 464, in pickle_load
return pickle.load(file, encoding='bytes')
EOFError: Ran out of input
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "jedi\api\environment.py", line 74, in _get_subprocess
info = self._subprocess._send(None, get_info)
File "jedi\evaluate\compiled\subprocess_init.py", line 260, in _send
stderr,
jedi.api.exceptions.InternalError: The subprocess D:\diandong\Python\python.exe has crashed (EOFError('Ran out of input',), stderr=<empty/not available (ValueError('read of closed file',))>).
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "app\plugins\editor\plugin.py", line 234, in init_jedi_env
File "jedi\api\environment.py", line 302, in create_environment
return Environment(path)
File "jedi\api\environment.py", line 66, in init
self._get_subprocess()
File "jedi\api\environment.py", line 79, in _get_subprocess
exc))
jedi.api.environment.InvalidPythonEnvironment: Could not get version information for 'D:\diandong\Python\python.exe': InternalError("The subprocess D:\diandong\Python\python.exe has crashed (EOFError('Ran out of input',), stderr=<empty/not available (ValueError('read of closed file',))>).",)
[20:13:16][DEBUG]<airtest.core.android.adb> D:\diandong\AirtestIDE\airtest\core\android\static\adb\windows\adb.exe devices
以下是在AirtestIDE运行时报错的内容:
from airtest.cli.parser import cli_setup(错误一)
from airtest.report.report import simple_report
from event import *(错误二)
修改设置之后,出现下面的错误,该如何解决?
Traceback (most recent call last):
File "E:\A\HonkaiHelper-master\main.py", line 5, in
from airtest.cli.parser import cli_setup
ModuleNotFoundError: No module named 'airtest'
脚本启动了一会,脚本界面就自动关闭了,崩坏只是签到就没了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.