Giter Club home page Giter Club logo

Comments (4)

Aues6uen11Z avatar Aues6uen11Z commented on June 20, 2024

这个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.

windskyxb avatar windskyxb commented on June 20, 2024

这个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在弹出申请管理员弹窗后就终止了:
uTools_1650365210731.png
方法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)
uTools_1650365547882.png
uTools_1650365257036.png

from honkaihelper.

Aues6uen11Z avatar Aues6uen11Z commented on June 20, 2024

方法1试试用管理员方式打开AirtestIDE
方法2的问题可以看下关了的那个issue

from honkaihelper.

windskyxb avatar windskyxb commented on June 20, 2024

方法1试试用管理员方式打开AirtestIDE 方法2的问题可以看下关了的那个issue

根据那个issue使用方法2运行成功了,感谢大佬的回答(^_^)

from honkaihelper.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.