PaddlePaddle / PaddleHub

Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
https://www.paddlepaddle.org.cn/hub
Apache License 2.0
12.74k stars 2.07k forks source link

hub install 命令 或 search 命令 报错 #2319

Closed yanjintao closed 8 months ago

yanjintao commented 10 months ago

欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献! 在留下您的问题时,辛苦您同步提供如下信息:

placing distutils.
  warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\requests\models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\Scripts\hub.exe\__main__.py", line 7, in <module>
    sys.exit(execute())
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\paddlehub\commands\utils.py", line 84, in execute
    status = 0 if com['_entry']().execute(sys.argv[idx:]) else 1
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\paddlehub\commands\search.py", line 36, in execute
    results = module_server.search_module(name=argv)
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\paddlehub\server\server.py", line 87, in search_module
    return self.search_resource(
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\paddlehub\server\server.py", line 113, in search_resource
    result = source.search_resource(name=name, type=type, version=version)
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\paddlehub\server\server_source.py", line 87, in search_resource
    result = self.request(path='search', params=params)
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\paddlehub\server\server_source.py", line 131, in request
    return result.json()
  File "C:\Users\YanJinTao\.conda\envs\paddle_env\lib\site-packages\requests\models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

/

w5688414 commented 8 months ago

您好,可能是网络的原因,如果怕出错,可以参考我的paddle配置,然后检查一下网络是否通。

paddle-bfloat==0.1.7
paddle2onnx==1.1.0
paddleaudio==1.1.0
paddlefsl==1.1.0
paddlehub==2.3.1
paddlenlp==2.5.2
paddlepaddle-gpu==2.4.2.post117
paddlesde==0.2.5
paddleslim==2.6.0
paddlespeech==1.4.1
paddlespeech-ctcdecoders==0.2.1
paddlespeech-feat==0.1.0
image