python 版本:Python 3.8.5

lucky@bogon  ~  hrun -v
Traceback (most recent call last):
File "/usr/local/bin/hrun", line 5, in
from httprunner.cli import main_hrun_alias
File "/usr/local/lib/python3.8/site-packages/httprunner/init.py", line 6, in
from httprunner.parser import parse_parameters as Parameters
File "/usr/local/lib/python3.8/site-packages/httprunner/parser.py", line 10, in
from httprunner import loader, utils, exceptions
File "/usr/local/lib/python3.8/site-packages/httprunner/loader.py", line 11, in
from pydantic import ValidationError
File "pydantic/init.py", line 2, in init pydantic.init
File "pydantic/dataclasses.py", line 7, in init pydantic.dataclasses
import builtins
File "pydantic/main.py", line 33, in init pydantic.main
File "pydantic/parse.py", line 22, in init pydantic.parse
AttributeError: module 'json' has no attribute 'loads'


↙↙↙阅读原文可查看相关链接,并与作者交流