hrp startproject fail, 使用python插件脚手架初始化项目报错 #1470
Unanswered
Zzzz-zz
asked this question in
2 - 答疑(Q&A)
Replies: 3 comments 2 replies
-
执行: |
Beta Was this translation helpful? Give feedback.
2 replies
-
遇到同样的问题,现在有解决办法了嘛 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
$> hrp startproject demo
10:51PM INF Set log to color console other than JSON format.
10:51PM ??? Set log level
10:51PM INF create new scaffold project force=false pluginType=py projectName=demo
10:51PM INF create folder path=demo
10:51PM INF create folder path=demo/har
10:51PM INF create file path=demo/har/.keep
10:51PM INF create folder path=demo/testcases
10:51PM INF create folder path=demo/reports
10:51PM INF create file path=demo/reports/.keep
10:51PM INF dump data to json path=/Users/zhi.zeng/Documents/Code/CodeTest/hrp/test_01/demo/proj.json
10:51PM INF create file path=demo/.gitignore
10:51PM INF create file path=demo/.env
10:51PM INF create file path=demo/testcases/demo.json
10:51PM INF create file path=demo/testcases/requests.json
10:51PM INF create file path=demo/testcases/requests.yml
10:51PM INF create file path=demo/testcases/ref_testcase.yml
10:51PM INF start to create hashicorp python plugin
10:51PM INF create file path=demo/debugtalk.py
10:51PM INF ensure python3 venv packages=["funppy==v0.5.0","httprunner==v4.2.0"] python3=/Users/zhi.zeng/.hrp/venv/bin/python3
10:51PM INF exec command cmd="/Users/zhi.zeng/.hrp/venv/bin/python3 -m pip --version"
pip 22.0.4 from /Users/zhi.zeng/.hrp/venv/lib/python3.9/site-packages/pip (python 3.9)
10:51PM INF installing python package pkgName=funppy pkgVersion=v0.5.0
10:51PM INF exec command cmd="/Users/zhi.zeng/.hrp/venv/bin/python3 -m pip install --upgrade funppy==v0.5.0 --index-url https://pypi.org/simple --quiet --disable-pip-version-check"
10:51PM ERR create scaffold project failed error="prepare python3 venv failed: pip install funppy==v0.5.0 failed: python package funppy not found"
提示 funppy这个包找不到,但是实际上去到hrp这个虚拟环境下是已经安装了这个包的。
❯ ls -l /Users/zhi.zeng/.hrp/venv/lib/python3.9/site-packages/| grep funppy
drwxr-xr-x 8 zhi.zeng staff 256 9 7 22:52 funppy
drwxr-xr-x 8 zhi.zeng staff 256 9 7 22:52 funppy-0.5.0.dist-info
不知道怎么解决这个问题了,尝试用这个虚拟环境下的python导入 funppy这个包,出现了新的问题
❯ /Users/zhi.zeng/.hrp/venv/bin/python3
Python 3.9.12 (main, Apr 5 2022, 01:52:34)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
是里面的grpc包调用错了,可是这个包是安装hrp的时候自动下载的。我尝试重新安装hrp,但是还是出现相同的问题。求帮助解决谢谢
Beta Was this translation helpful? Give feedback.
All reactions