Comments (4)
这个event是指我写的event.py,我之前用的是自己的python而非AirtestIDE自带的,也不知道为什么换个解释器就找不到路径了。2种解决方法:
1.在from event import * 前面加一句 sys.path.append(os.getcwd())
2.自己下一个python,pip install airtest==1.2.4,在AirtestIDE改路径,选项-设置-自定义python.exe路径改成自己下的
话说如果只是使用脚本的话,根本不用AirtestIDE,直接用python运行就好了
from honkaihelper.
这个event是指我写的event.py,我之前用的是自己的python而非AirtestIDE自带的,也不知道为什么换个解释器就找不到路径了。2种解决方法: 1.在from event import * 前面加一句 sys.path.append(os.getcwd()) 2.自己下一个python,pip install airtest==1.2.4,在AirtestIDE改路径,选项-设置-自定义python.exe路径改成自己下的
话说如果只是使用脚本的话,根本不用AirtestIDE,直接用python运行就好了
方法1在弹出申请管理员弹窗后就终止了:
方法2还是报错:
Traceback (most recent call last):
File "C:\Users\winds\Documents\Codes\HonkaiHelper\main.py", line 8, in
from airtest.cli.parser import cli_setup
File "C:\Users\winds\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\winds\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\winds\AppData\Local\Programs\Python\Python39\lib\site-packages\jinja2_init_.py)
from honkaihelper.
方法1试试用管理员方式打开AirtestIDE
方法2的问题可以看下关了的那个issue
from honkaihelper.
方法1试试用管理员方式打开AirtestIDE 方法2的问题可以看下关了的那个issue
根据那个issue使用方法2运行成功了,感谢大佬的回答(^_^)
from honkaihelper.
Related Issues (12)
- 小白提出的提问,关于cannot import name 'evalcontextfilter' from 'jinja2' 的问题 HOT 4
- 是否有针对美服或者欧服的版本 HOT 1
- 小白一个,看了一个下午都没有解决问题,求大佬解答一下 HOT 2
- 有一点问题 HOT 4
- 请问作者现在还在用吗?还维护吗? HOT 1
- 使用问题 HOT 2
- PyCharm能进行开发吗 HOT 2
- 运行错误 HOT 3
- 建议添加一个在崩溃后按下任意键继续的功能 HOT 1
- 一直报错 HOT 1
- 假如用的是安卓模拟器,find_click函数怎样修改呢?为了实现后台运行
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from honkaihelper.