hrp convert .har转换用例pytest报错 #1672
Unanswered
hans-jp
asked this question in
2 - 答疑(Q&A)
Replies: 1 comment 3 replies
-
原因:hrp版本为4.3.5,python初始环境为python3.6,后替换为python3.10,由于执行hrp convert Untitled.har --to-pytest --from-har的命令是在创建demo项目的环境下执行的,所以当时的环境依旧是python3.6。 解决:手动删除项目后,重新创建项目,在项目下重新执行hrp convert Untitled.har --to-pytest --from-har命令,发现报错1```
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
执行转换命令hrp convert Untitled.har --to-pytest --from-har
报错:
11:56AM INF exec command cmd="C:\windows\system32\cmd.exe"
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00041150 (most recent call first):
11:56AM ERR exec command failed error="exit status 0xc0000409"
11:56AM WRN pip is not available
11:56AM ERR python3 venv is not ready error="pip install httprunner==v4.3.5 failed: pip is not available: exit status 0xc0000409: prepare python3 venv failed"
Error: pip install httprunner==v4.3.5 failed: pip is not available: exit status 0xc0000409: prepare python3 venv failed
11:56AM WRN hrp exit code=9
Beta Was this translation helpful? Give feedback.
All reactions