PaddleSpeech icon indicating copy to clipboard operation
PaddleSpeech copied to clipboard

🏗️ 安装报错留言区(Summary of Installation Errors)

Open iftaken opened this issue 2 years ago • 50 comments

PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总

Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here

iftaken avatar Jul 14 '22 07:07 iftaken

往期安装问题汇总,安装遇到问题建议先参考下面的 issues:

Summary of previous installation problems. It's recommended to refer to the following issues first if there are problems in installation:

【Install for mac and windows, usage for CLI】安装PaddleSpeech相关问题讨论(Windows,mac),以及命令行使用问题

【Install for windows】安装PaddleSpeech相关问题讨论(Windows)

【paddleadudio related】

【pyworld related】安装paddlespeech 过程中过pyworld装不上

【hard mode】按照困难的安装教程报错

iftaken avatar Jul 14 '22 07:07 iftaken

执行命令

pip install paddlespeech -i https://pypi.tuna.tsinghua.edu.cn/simple

时遇到错误

Collecting seqeval
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9d/2d/233c79d5b4e5ab1dbf111242299153f3caddddbb691219f363ad55ce783d/seqeval-1.2.2.tar.gz (43 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      WARNING: The repository located at mirrors.cloud.aliyuncs.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.aliyuncs.com'.
      ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
      ERROR: No matching distribution found for setuptools_scm
      /root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
        warnings.warn(
      /root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      Traceback (most recent call last):
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 82, in fetch_build_egg
          subprocess.check_call(cmd)
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/subprocess.py", line 364, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-7ygs5ns0/seqeval_aad802f54b744003817cbee187128e0b/setup.py", line 27, in <module>
          setup(
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 86, in setup
          _install_setup_requires(attrs)
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/__init__.py", line 80, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 861, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
          dist = best[req.key] = env.best_match(
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1062, in best_match
          return self.obtain(req, installer)
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1074, in obtain
          return installer(requirement)
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/dist.py", line 941, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/root/miniconda3/envs/paddlespeech/lib/python3.8/site-packages/setuptools/installer.py", line 84, in fetch_build_egg
          raise DistutilsError(str(e)) from e
      distutils.errors.DistutilsError: Command '['/root/miniconda3/envs/paddlespeech/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp19h72t5e', '--quiet', '--index-url', 'http://mirrors.cloud.aliyuncs.com/pypi/simple/', 'setuptools_scm']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

BrightXiaoHan avatar Jul 20 '22 05:07 BrightXiaoHan

Hello, also receiving the same issue as above with the same command. pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple Gives error of:

Building wheels for collected packages: paddlespeech
  Building wheel for paddlespeech (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]

      __version__ = '0.0.0'

      Traceback (most recent call last):
        File "<string>", line 36, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\RALLA\paddlespeech\setup.py", line 331, in <module>
          with version_info():
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\contextlib.py", line 112, in __enter__
          return next(self.gen)
        File "C:\Users\RALLA\paddlespeech\setup.py", line 254, in version_info
          write_version_py()
        File "C:\Users\RALLA\paddlespeech\setup.py", line 232, in write_version_py
          COMMITID = check_output("git rev-parse HEAD")
        File "C:\Users\RALLA\paddlespeech\setup.py", line 122, in check_output
          out_bytes = sp.check_output(cmd.split())
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 411, in check_output
          **kwargs).stdout
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 488, in run
          with Popen(*popenargs, **kwargs) as process:
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 800, in __init__
          restore_signals, start_new_session)
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 1207, in _execute_child
          startupinfo)
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for paddlespeech
  Running setup.py clean for paddlespeech
Failed to build paddlespeech
Installing collected packages: paddlespeech
  Running setup.py install for paddlespeech ... error
  error: subprocess-exited-with-error

  × Running setup.py install for paddlespeech did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]

      __version__ = '0.0.0'

      Traceback (most recent call last):
        File "<string>", line 36, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\RALLA\paddlespeech\setup.py", line 331, in <module>
          with version_info():
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\contextlib.py", line 112, in __enter__
          return next(self.gen)
        File "C:\Users\RALLA\paddlespeech\setup.py", line 254, in version_info
          write_version_py()
        File "C:\Users\RALLA\paddlespeech\setup.py", line 232, in write_version_py
          COMMITID = check_output("git rev-parse HEAD")
        File "C:\Users\RALLA\paddlespeech\setup.py", line 122, in check_output
          out_bytes = sp.check_output(cmd.split())
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 411, in check_output
          **kwargs).stdout
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 488, in run
          with Popen(*popenargs, **kwargs) as process:
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 800, in __init__
          restore_signals, start_new_session)
        File "C:\Users\RALLA\paddlespeech\tools\venv\lib\subprocess.py", line 1207, in _execute_child
          startupinfo)
      FileNotFoundError: [WinError 2] The system cannot find the file specified
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> paddlespeech

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Using Windows 11 and Visual Studio build tools are installed.

OfOdin avatar Jul 25 '22 18:07 OfOdin

FileNotFoundError: [WinError 2] The system cannot find the file specified

@OfOdin maybe you should search for this line FileNotFoundError: [WinError 2] The system cannot find the file specified

yt605155624 avatar Jul 27 '22 06:07 yt605155624

ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none) ERROR: No matching distribution found for setuptools_scm

@BrightXiaoHan maybe you should check this error

yt605155624 avatar Jul 27 '22 06:07 yt605155624

FileNotFoundError: [WinError 2] The system cannot find the file specified

@OfOdin maybe you should search for this line FileNotFoundError: [WinError 2] The system cannot find the file specified

@yt605155624 I was missing the package Git. Did not install it after creating the environment. Install was successful.

OfOdin avatar Jul 27 '22 16:07 OfOdin

/home/PaddleSpeech/demos/streaming_asr_server# paddlespeech_server start --config_file conf/punc_application.yaml &> punc.log &
/home/PaddleSpeech/demos/streaming_asr_server# tail -f punc.log
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
[2022-07-29 09:51:00,170] [    INFO] - start to init the engine
[2022-07-29 09:51:00,171] [    INFO] - text : python engine.
[2022-07-29 09:51:03,713] [   ERROR] - Failed to start server.
[2022-07-29 09:51:03,713] [   ERROR] - File is not a zip file

paddlecloud/paddlespeech镜像按照文档启动标点引擎报错,请问可能是什么原因?

SuperMaskv avatar Jul 29 '22 09:07 SuperMaskv

/home/PaddleSpeech/demos/streaming_asr_server# paddlespeech_server start --config_file conf/punc_application.yaml &> punc.log &
/home/PaddleSpeech/demos/streaming_asr_server# tail -f punc.log
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
[2022-07-29 09:51:00,170] [    INFO] - start to init the engine
[2022-07-29 09:51:00,171] [    INFO] - text : python engine.
[2022-07-29 09:51:03,713] [   ERROR] - Failed to start server.
[2022-07-29 09:51:03,713] [   ERROR] - File is not a zip file

paddlecloud/paddlespeech镜像按照文档启动标点引擎报错,请问可能是什么原因?

下载nltk_data 并解压缩到的 ${HOME} 目录下问题解决

SuperMaskv avatar Aug 01 '22 08:08 SuperMaskv

On Xavier NX, Jetpack 4.6.2, CUDA 10.2.300, TensorRT 8.2.1.8, have error message below: ... Building wheels for collected packages: paddlespeech, onnx Building wheel for paddlespeech (setup.py) ... done Created wheel for paddlespeech: filename=paddlespeech-0.0.0-py3-none-any.whl size=1362563 sha256=acafea850a5c92d13c1c2539e2265519c09b9736ba2b0b8a948c273b4ae4c52d Stored in directory: /tmp/pip-ephem-wheel-cache-13thtlq3/wheels/a0/40/b9/ab049dbf2a9f64b3ec4d404f74657eb73f7d99b58d006c1dee Building wheel for onnx (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for onnx (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [158 lines of output] fatal: not a git repository (or any of the parent directories): .git running bdist_wheel running build running build_py running create_version running cmake_build

UserName-wang avatar Sep 12 '22 11:09 UserName-wang

OS: ubuntu 22.04 Python Version: 3.10

$ pip install -i https://mirror.baidu.com/pypi/simple paddlespeech
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirror.baidu.com/pypi/simple
Collecting paddlespeech
  Using cached https://mirror.baidu.com/pypi/packages/02/d3/116fbfd3ac7bd4569770404240cd0709d5a4c3fa797355b699a95cd20532/paddlespeech-1.1.3-py3-none-any.whl (1.3 MB)
Collecting uvicorn
  Using cached https://mirror.baidu.com/pypi/packages/64/82/3fdff66fca901b30e42c88e0c37ada35e181074e0c4fd8d7d7525107329d/uvicorn-0.18.3-py3-none-any.whl (57 kB)
Collecting opencc
  Using cached https://mirror.baidu.com/pypi/packages/b2/d5/75fd463a5d4196e575c1147d373b354dbdd858792135e19b414576181a1b/OpenCC-1.1.4-cp310-cp310-manylinux1_x86_64.whl (770 kB)
Collecting g2pM
  Using cached https://mirror.baidu.com/pypi/packages/af/21/dc5b497f09a94a9605e0b8a94ad0e01ae73a2b65109bf5bd325b0814b6a8/g2pM-0.1.2.5-py3-none-any.whl (1.7 MB)
Collecting pattern-singleton
  Using cached https://mirror.baidu.com/pypi/packages/5c/52/1531bd435ddba56d996a5c706184ef93eecfc6318ef0a069a9ecf5ef1b73/pattern_singleton-1.2.0.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting timer
  Downloading https://mirror.baidu.com/pypi/packages/3c/c2/9b06bd96cc1041f3aa0bb07acdbfddbefd8c0ca300fc9ad696afb77140d1/timer-0.2.2-py3-none-any.whl (7.8 kB)
Collecting sacrebleu
  Using cached https://mirror.baidu.com/pypi/packages/6c/c4/fe3092828e1a6c4926823bbae31d9e671c1d7453171feda0b124f476126f/sacrebleu-2.2.1-py3-none-any.whl (116 kB)
Collecting kaldiio
  Downloading https://mirror.baidu.com/pypi/packages/5b/64/a615d1f8b31ee3b3eee9b1e3e17b9961757c0c1fb7df5b7dbd9baef004a9/kaldiio-2.17.2.tar.gz (24 kB)
  Preparing metadata (setup.py) ... done
Collecting pathos==0.2.8
  Downloading https://mirror.baidu.com/pypi/packages/23/6b/7ffe02bdb5f5cf4b2290cc906b415dde7c886dbb11928dda40d39e6654dd/pathos-0.2.8-py2.py3-none-any.whl (81 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.7/81.7 KB 3.6 MB/s eta 0:00:00
Collecting soundfile~=0.10
  Using cached https://mirror.baidu.com/pypi/packages/eb/f2/3cbbbf3b96fb9fa91582c438b574cff3f45b29c772f94c400e2c99ef5db9/SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
Collecting yacs~=0.1.8
  Using cached https://mirror.baidu.com/pypi/packages/38/4f/fe9a4d472aa867878ce3bb7efb16654c5d63672b86dc0e6e953a67018433/yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting fastapi
  Using cached https://mirror.baidu.com/pypi/packages/f8/f6/5334a17a8acb95b2b71825db6c8c3d2b984d1d0c31266fcda02480ab62ab/fastapi-0.85.0-py3-none-any.whl (55 kB)
Collecting pandas
  Using cached https://mirror.baidu.com/pypi/packages/a2/bb/33c637f9d284a8b314aee0a6fc2c2ef243d9145e9480f910f4eca54e6887/pandas-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)
Collecting paddlenlp
  Using cached https://mirror.baidu.com/pypi/packages/8d/1e/908644ee3e6232166e79386950c9d3f62105c35fbca1ba79a50b8eeb7fbb/paddlenlp-2.4.0-py3-none-any.whl (1.8 MB)
Collecting paddlespeech-feat
  Downloading https://mirror.baidu.com/pypi/packages/3e/1f/5bda16fab78b8caa19a301bcb2ee22cf9d72de6e507b5d22362254ae4882/paddlespeech_feat-0.1.0-py3-none-any.whl (12 kB)
Collecting jieba
  Using cached https://mirror.baidu.com/pypi/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB)
  Preparing metadata (setup.py) ... done
Collecting g2p-en
  Using cached https://mirror.baidu.com/pypi/packages/d7/d9/b77dc634a7a0c0c97716ba97dd0a28cbfa6267c96f359c4f27ed71cbd284/g2p_en-2.1.0-py3-none-any.whl (3.1 MB)
Collecting zhon
  Downloading https://mirror.baidu.com/pypi/packages/9f/b0/c56c6079ad47c35a2341440818b6620de8c46a265ed690a51b1a4e5591bc/zhon-1.1.5.tar.gz (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.8/99.8 KB 6.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting loguru
  Using cached https://mirror.baidu.com/pypi/packages/fe/21/e1d1da2586865a159fc73b611f36bdd50b6c4043cb6132d3d5e972988028/loguru-0.6.0-py3-none-any.whl (58 kB)
Requirement already satisfied: protobuf<=3.20.0,>=3.1.0 in ./.local/lib/python3.10/site-packages (from paddlespeech) (3.20.0)
Collecting scipy
  Downloading https://mirror.baidu.com/pypi/packages/c2/89/37b6e11bfe24e96a375fc39e6ffb6c2f27ff795cfb735ae83130e0bf78b5/scipy-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.9/43.9 MB 9.1 MB/s eta 0:00:00
Collecting sentencepiece~=0.1.96
  Downloading https://mirror.baidu.com/pypi/packages/7f/21/7a88f09026e1a69358b845d6b5deb36a2a54457ba7317f8f1047d9bbb643/sentencepiece-0.1.96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 7.1 MB/s eta 0:00:00
Collecting braceexpand
  Downloading https://mirror.baidu.com/pypi/packages/fa/93/e8c04e80e82391a6e51f218ca49720f64236bc824e92152a2633b74cf7ab/braceexpand-0.1.7-py2.py3-none-any.whl (5.9 kB)
Requirement already satisfied: prettytable in /usr/lib/python3/dist-packages (from paddlespeech) (2.5.0)
Collecting pyworld==0.2.12
  Downloading https://mirror.baidu.com/pypi/packages/af/88/003eef396c966cf00088900167831946b80b8e7650843905cb9590c2d9ca/pyworld-0.2.12.tar.gz (222 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.7/222.7 KB 31.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting webrtcvad
  Downloading https://mirror.baidu.com/pypi/packages/89/34/e2de2d97f3288512b9ea56f92e7452f8207eb5a0096500badf9dfd48f5e6/webrtcvad-2.0.10.tar.gz (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.2/66.2 KB 5.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting paddlespeech
  Using cached https://mirror.baidu.com/pypi/packages/b3/92/74b38bf5ed150dda9fc152eab33226e1bf112b611eff56014e465126a358/paddlespeech-1.1.2-py3-none-any.whl (1.3 MB)
  Using cached https://mirror.baidu.com/pypi/packages/b1/1f/3277ab3f7281396a775c47644961e9c97947451ebabdd33abc4f258e22ed/paddlespeech-1.1.1-py3-none-any.whl (1.3 MB)
  Using cached https://mirror.baidu.com/pypi/packages/df/28/2826694a15c84742b32c331652c1dd671c3bfc953ee17cab0514cabdd0b5/paddlespeech-1.0.1-py3-none-any.whl (1.1 MB)
Collecting paddleaudio
  Using cached https://mirror.baidu.com/pypi/packages/58/27/451d2b9fadba04b7b939bb2d022d02dd373f6ceac0f79eb6d278aca7426d/paddleaudio-1.0.2-py3-none-any.whl (119 kB)
Collecting editdistance
  Using cached https://mirror.baidu.com/pypi/packages/b5/de/6157e01f8a5bc672d59d4183a3095d0f998ca387636881907edfa32f617b/editdistance-0.6.0.tar.gz (29 kB)
  Preparing metadata (setup.py) ... done
Collecting resampy==0.2.2
  Downloading https://mirror.baidu.com/pypi/packages/79/75/e22272b9c2185fc8f3af6ce37229708b45e8b855fd4bc38b4d6b040fff65/resampy-0.2.2.tar.gz (323 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.4/323.4 KB 28.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pyworld
  Using cached https://mirror.baidu.com/pypi/packages/88/0b/9f8ceb7548bbb1294729b291044b8e72754db21dbc672acbd5eec6ed740b/pyworld-0.3.0.tar.gz (212 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [310 lines of output]
      Looking in indexes: https://mirror.baidu.com/pypi/simple
      Collecting wheel
        Using cached https://mirror.baidu.com/pypi/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
      Collecting setuptools
        Using cached https://mirror.baidu.com/pypi/packages/d9/5f/2daccd14278b6b780ae6799f85998377c06019354982391245f4b58a927d/setuptools-65.3.0-py3-none-any.whl (1.2 MB)
      Collecting cython>=0.24.0
        Using cached https://mirror.baidu.com/pypi/packages/9b/ed/01f76a873ff759ae4ef91c43e906ca7580ef38558d74987620bb6540948d/Cython-0.29.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
      Collecting numpy<v1.20.0
        Using cached https://mirror.baidu.com/pypi/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip (7.3 MB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [280 lines of output]
            setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10.
              warnings.warn(
            Running from numpy source directory.
            setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
              run_build = parse_setuppy_commands()
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/tools/cythonize.py:67: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
              from distutils.version import LooseVersion
            Processing numpy/random/_bounded_integers.pxd.in
            Processing numpy/random/_pcg64.pyx
            Processing numpy/random/_mt19937.pyx
            Processing numpy/random/mtrand.pyx
            Processing numpy/random/_sfc64.pyx
            Processing numpy/random/_bounded_integers.pyx.in
            Processing numpy/random/bit_generator.pyx
            Processing numpy/random/_philox.pyx
            Processing numpy/random/_generator.pyx
            Processing numpy/random/_common.pyx
            Cythonizing sources
            blas_opt_info:
            blas_mkl_info:
            customize UnixCCompiler
              libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            blis_info:
              libraries blis not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            openblas_info:
              libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_3_10_blas_threads_info:
            Setting PTATLAS=ATLAS
              libraries tatlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_3_10_blas_info:
              libraries satlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_blas_threads_info:
            Setting PTATLAS=ATLAS
              libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_blas_info:
              libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            accelerate_info:
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
                Optimized (vendor) Blas libraries are not found.
                Falls back to netlib Blas library which has worse performance.
                A better performance should be easily gained by switching
                Blas library.
              if self._calc_info(blas):
            blas_info:
              libraries blas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
                Blas (http://www.netlib.org/blas/) libraries not found.
                Directories to search for the libraries can be specified in the
                numpy/distutils/site.cfg file (section [blas]) or by setting
                the BLAS environment variable.
              if self._calc_info(blas):
            blas_src_info:
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
                Blas (http://www.netlib.org/blas/) sources not found.
                Directories to search for the sources can be specified in the
                numpy/distutils/site.cfg file (section [blas_src]) or by setting
                the BLAS_SRC environment variable.
              if self._calc_info(blas):
              NOT AVAILABLE
      
            non-existing path in 'numpy/distutils': 'site.cfg'
            lapack_opt_info:
            lapack_mkl_info:
              libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            openblas_lapack_info:
              libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            openblas_clapack_info:
              libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            flame_info:
              libraries flame not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_3_10_threads_info:
            Setting PTATLAS=ATLAS
              libraries lapack_atlas not found in /usr/local/lib
              libraries tatlas,tatlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries tatlas,tatlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries tatlas,tatlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
              NOT AVAILABLE
      
            atlas_3_10_info:
              libraries lapack_atlas not found in /usr/local/lib
              libraries satlas,satlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries satlas,satlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries satlas,satlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_3_10_info'>
              NOT AVAILABLE
      
            atlas_threads_info:
            Setting PTATLAS=ATLAS
              libraries lapack_atlas not found in /usr/local/lib
              libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_threads_info'>
              NOT AVAILABLE
      
            atlas_info:
              libraries lapack_atlas not found in /usr/local/lib
              libraries f77blas,cblas,atlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries f77blas,cblas,atlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries f77blas,cblas,atlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_info'>
              NOT AVAILABLE
      
            lapack_info:
              libraries lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning:
                Lapack (http://www.netlib.org/lapack/) libraries not found.
                Directories to search for the libraries can be specified in the
                numpy/distutils/site.cfg file (section [lapack]) or by setting
                the LAPACK environment variable.
              return getattr(self, '_calc_info_{}'.format(name))()
            lapack_src_info:
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning:
                Lapack (http://www.netlib.org/lapack/) sources not found.
                Directories to search for the sources can be specified in the
                numpy/distutils/site.cfg file (section [lapack_src]) or by setting
                the LAPACK_SRC environment variable.
              return getattr(self, '_calc_info_{}'.format(name))()
              NOT AVAILABLE
      
            numpy_linalg_lapack_lite:
              FOUND:
                language = c
                define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
      
            /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
              warnings.warn(msg)
            running dist_info
            running build_src
            build_src
            building py_modules sources
            creating build
            creating build/src.linux-x86_64-3.10
            creating build/src.linux-x86_64-3.10/numpy
            creating build/src.linux-x86_64-3.10/numpy/distutils
            building library "npymath" sources
            Could not locate executable gfortran
            Could not locate executable f95
            Could not locate executable ifort
            Could not locate executable ifc
            Could not locate executable lf95
            Could not locate executable pgfortran
            Could not locate executable nvfortran
            Could not locate executable f90
            Could not locate executable f77
            Could not locate executable fort
            Could not locate executable efort
            Could not locate executable efc
            Could not locate executable g77
            Could not locate executable g95
            Could not locate executable pathf95
            Could not locate executable nagfor
            don't know how to compile Fortran code on platform 'posix'
            creating build/src.linux-x86_64-3.10/numpy/core
            creating build/src.linux-x86_64-3.10/numpy/core/src
            creating build/src.linux-x86_64-3.10/numpy/core/src/npymath
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h
              adding 'build/src.linux-x86_64-3.10/numpy/core/src/npymath' to include_dirs.
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/ieee754.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_complex.c
            None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h']
            building library "npysort" sources
            creating build/src.linux-x86_64-3.10/numpy/core/src/common
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h
              adding 'build/src.linux-x86_64-3.10/numpy/core/src/common' to include_dirs.
            creating build/src.linux-x86_64-3.10/numpy/core/src/npysort
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/quicksort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/mergesort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/timsort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/heapsort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/radixsort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/selection.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/binsearch.c
            None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h']
            building library "npyrandom" sources
            building extension "numpy.core._multiarray_tests" sources
            creating build/src.linux-x86_64-3.10/numpy/core/src/multiarray
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/multiarray/_multiarray_tests.c
            building extension "numpy.core._multiarray_umath" sources
            Traceback (most recent call last):
              File "/tmp/tmpmgpc7t6c_in_process.py", line 363, in <module>
                main()
              File "/tmp/tmpmgpc7t6c_in_process.py", line 345, in main
                json_out['return_val'] = hook(**hook_input['kwargs'])
              File "/tmp/tmpmgpc7t6c_in_process.py", line 164, in prepare_metadata_for_build_wheel
                return hook(metadata_directory, config_settings)
              File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel
                self.run_setup()
              File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup
                super(_BuildMetaLegacyBackend,
              File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
                exec(compile(code, __file__, 'exec'), locals())
              File "setup.py", line 508, in <module>
                setup_package()
              File "setup.py", line 500, in setup_package
                setup(**metadata)
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/core.py", line 169, in setup
                return old_setup(**new_attr)
              File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
                return distutils.core.setup(**attrs)
              File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
                dist.run_commands()
              File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
                self.run_command(cmd)
              File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/usr/lib/python3/dist-packages/setuptools/command/dist_info.py", line 31, in run
                egg_info.run()
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/egg_info.py", line 24, in run
                self.run_command("build_src")
              File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
                self.distribution.run_command(command)
              File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 144, in run
                self.build_sources()
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 161, in build_sources
                self.build_extension_sources(ext)
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 318, in build_extension_sources
                sources = self.generate_sources(sources, ext)
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 378, in generate_sources
                source = func(extension, build_dir)
              File "numpy/core/setup.py", line 436, in generate_config_h
                moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
              File "numpy/core/setup.py", line 47, in check_types
                out = check_types(*a, **kw)
              File "numpy/core/setup.py", line 292, in check_types
                raise SystemError(
            SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed
      
      × Encountered error while generating package metadata.
      ╰─> See above for output.
      
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

yuanzicheng avatar Sep 21 '22 11:09 yuanzicheng

apt update -y
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

make: *** [apt.done] Error 1

mac use apt??????? pyuthon lib need jkava???

lucasjinreal avatar Sep 28 '22 06:09 lucasjinreal

OS: ubuntu 22.04 Python Version: 3.10

$ pip install -i https://mirror.baidu.com/pypi/simple paddlespeech
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirror.baidu.com/pypi/simple
Collecting paddlespeech
  Using cached https://mirror.baidu.com/pypi/packages/02/d3/116fbfd3ac7bd4569770404240cd0709d5a4c3fa797355b699a95cd20532/paddlespeech-1.1.3-py3-none-any.whl (1.3 MB)
Collecting uvicorn
  Using cached https://mirror.baidu.com/pypi/packages/64/82/3fdff66fca901b30e42c88e0c37ada35e181074e0c4fd8d7d7525107329d/uvicorn-0.18.3-py3-none-any.whl (57 kB)
Collecting opencc
  Using cached https://mirror.baidu.com/pypi/packages/b2/d5/75fd463a5d4196e575c1147d373b354dbdd858792135e19b414576181a1b/OpenCC-1.1.4-cp310-cp310-manylinux1_x86_64.whl (770 kB)
Collecting g2pM
  Using cached https://mirror.baidu.com/pypi/packages/af/21/dc5b497f09a94a9605e0b8a94ad0e01ae73a2b65109bf5bd325b0814b6a8/g2pM-0.1.2.5-py3-none-any.whl (1.7 MB)
Collecting pattern-singleton
  Using cached https://mirror.baidu.com/pypi/packages/5c/52/1531bd435ddba56d996a5c706184ef93eecfc6318ef0a069a9ecf5ef1b73/pattern_singleton-1.2.0.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting timer
  Downloading https://mirror.baidu.com/pypi/packages/3c/c2/9b06bd96cc1041f3aa0bb07acdbfddbefd8c0ca300fc9ad696afb77140d1/timer-0.2.2-py3-none-any.whl (7.8 kB)
Collecting sacrebleu
  Using cached https://mirror.baidu.com/pypi/packages/6c/c4/fe3092828e1a6c4926823bbae31d9e671c1d7453171feda0b124f476126f/sacrebleu-2.2.1-py3-none-any.whl (116 kB)
Collecting kaldiio
  Downloading https://mirror.baidu.com/pypi/packages/5b/64/a615d1f8b31ee3b3eee9b1e3e17b9961757c0c1fb7df5b7dbd9baef004a9/kaldiio-2.17.2.tar.gz (24 kB)
  Preparing metadata (setup.py) ... done
Collecting pathos==0.2.8
  Downloading https://mirror.baidu.com/pypi/packages/23/6b/7ffe02bdb5f5cf4b2290cc906b415dde7c886dbb11928dda40d39e6654dd/pathos-0.2.8-py2.py3-none-any.whl (81 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.7/81.7 KB 3.6 MB/s eta 0:00:00
Collecting soundfile~=0.10
  Using cached https://mirror.baidu.com/pypi/packages/eb/f2/3cbbbf3b96fb9fa91582c438b574cff3f45b29c772f94c400e2c99ef5db9/SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
Collecting yacs~=0.1.8
  Using cached https://mirror.baidu.com/pypi/packages/38/4f/fe9a4d472aa867878ce3bb7efb16654c5d63672b86dc0e6e953a67018433/yacs-0.1.8-py3-none-any.whl (14 kB)
Collecting fastapi
  Using cached https://mirror.baidu.com/pypi/packages/f8/f6/5334a17a8acb95b2b71825db6c8c3d2b984d1d0c31266fcda02480ab62ab/fastapi-0.85.0-py3-none-any.whl (55 kB)
Collecting pandas
  Using cached https://mirror.baidu.com/pypi/packages/a2/bb/33c637f9d284a8b314aee0a6fc2c2ef243d9145e9480f910f4eca54e6887/pandas-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)
Collecting paddlenlp
  Using cached https://mirror.baidu.com/pypi/packages/8d/1e/908644ee3e6232166e79386950c9d3f62105c35fbca1ba79a50b8eeb7fbb/paddlenlp-2.4.0-py3-none-any.whl (1.8 MB)
Collecting paddlespeech-feat
  Downloading https://mirror.baidu.com/pypi/packages/3e/1f/5bda16fab78b8caa19a301bcb2ee22cf9d72de6e507b5d22362254ae4882/paddlespeech_feat-0.1.0-py3-none-any.whl (12 kB)
Collecting jieba
  Using cached https://mirror.baidu.com/pypi/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB)
  Preparing metadata (setup.py) ... done
Collecting g2p-en
  Using cached https://mirror.baidu.com/pypi/packages/d7/d9/b77dc634a7a0c0c97716ba97dd0a28cbfa6267c96f359c4f27ed71cbd284/g2p_en-2.1.0-py3-none-any.whl (3.1 MB)
Collecting zhon
  Downloading https://mirror.baidu.com/pypi/packages/9f/b0/c56c6079ad47c35a2341440818b6620de8c46a265ed690a51b1a4e5591bc/zhon-1.1.5.tar.gz (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.8/99.8 KB 6.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting loguru
  Using cached https://mirror.baidu.com/pypi/packages/fe/21/e1d1da2586865a159fc73b611f36bdd50b6c4043cb6132d3d5e972988028/loguru-0.6.0-py3-none-any.whl (58 kB)
Requirement already satisfied: protobuf<=3.20.0,>=3.1.0 in ./.local/lib/python3.10/site-packages (from paddlespeech) (3.20.0)
Collecting scipy
  Downloading https://mirror.baidu.com/pypi/packages/c2/89/37b6e11bfe24e96a375fc39e6ffb6c2f27ff795cfb735ae83130e0bf78b5/scipy-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.9/43.9 MB 9.1 MB/s eta 0:00:00
Collecting sentencepiece~=0.1.96
  Downloading https://mirror.baidu.com/pypi/packages/7f/21/7a88f09026e1a69358b845d6b5deb36a2a54457ba7317f8f1047d9bbb643/sentencepiece-0.1.96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 7.1 MB/s eta 0:00:00
Collecting braceexpand
  Downloading https://mirror.baidu.com/pypi/packages/fa/93/e8c04e80e82391a6e51f218ca49720f64236bc824e92152a2633b74cf7ab/braceexpand-0.1.7-py2.py3-none-any.whl (5.9 kB)
Requirement already satisfied: prettytable in /usr/lib/python3/dist-packages (from paddlespeech) (2.5.0)
Collecting pyworld==0.2.12
  Downloading https://mirror.baidu.com/pypi/packages/af/88/003eef396c966cf00088900167831946b80b8e7650843905cb9590c2d9ca/pyworld-0.2.12.tar.gz (222 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.7/222.7 KB 31.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting webrtcvad
  Downloading https://mirror.baidu.com/pypi/packages/89/34/e2de2d97f3288512b9ea56f92e7452f8207eb5a0096500badf9dfd48f5e6/webrtcvad-2.0.10.tar.gz (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.2/66.2 KB 5.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting paddlespeech
  Using cached https://mirror.baidu.com/pypi/packages/b3/92/74b38bf5ed150dda9fc152eab33226e1bf112b611eff56014e465126a358/paddlespeech-1.1.2-py3-none-any.whl (1.3 MB)
  Using cached https://mirror.baidu.com/pypi/packages/b1/1f/3277ab3f7281396a775c47644961e9c97947451ebabdd33abc4f258e22ed/paddlespeech-1.1.1-py3-none-any.whl (1.3 MB)
  Using cached https://mirror.baidu.com/pypi/packages/df/28/2826694a15c84742b32c331652c1dd671c3bfc953ee17cab0514cabdd0b5/paddlespeech-1.0.1-py3-none-any.whl (1.1 MB)
Collecting paddleaudio
  Using cached https://mirror.baidu.com/pypi/packages/58/27/451d2b9fadba04b7b939bb2d022d02dd373f6ceac0f79eb6d278aca7426d/paddleaudio-1.0.2-py3-none-any.whl (119 kB)
Collecting editdistance
  Using cached https://mirror.baidu.com/pypi/packages/b5/de/6157e01f8a5bc672d59d4183a3095d0f998ca387636881907edfa32f617b/editdistance-0.6.0.tar.gz (29 kB)
  Preparing metadata (setup.py) ... done
Collecting resampy==0.2.2
  Downloading https://mirror.baidu.com/pypi/packages/79/75/e22272b9c2185fc8f3af6ce37229708b45e8b855fd4bc38b4d6b040fff65/resampy-0.2.2.tar.gz (323 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.4/323.4 KB 28.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pyworld
  Using cached https://mirror.baidu.com/pypi/packages/88/0b/9f8ceb7548bbb1294729b291044b8e72754db21dbc672acbd5eec6ed740b/pyworld-0.3.0.tar.gz (212 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [310 lines of output]
      Looking in indexes: https://mirror.baidu.com/pypi/simple
      Collecting wheel
        Using cached https://mirror.baidu.com/pypi/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl (35 kB)
      Collecting setuptools
        Using cached https://mirror.baidu.com/pypi/packages/d9/5f/2daccd14278b6b780ae6799f85998377c06019354982391245f4b58a927d/setuptools-65.3.0-py3-none-any.whl (1.2 MB)
      Collecting cython>=0.24.0
        Using cached https://mirror.baidu.com/pypi/packages/9b/ed/01f76a873ff759ae4ef91c43e906ca7580ef38558d74987620bb6540948d/Cython-0.29.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
      Collecting numpy<v1.20.0
        Using cached https://mirror.baidu.com/pypi/packages/51/60/3f0fe5b7675a461d96b9d6729beecd3532565743278a9c3fe6dd09697fa7/numpy-1.19.5.zip (7.3 MB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
      
        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [280 lines of output]
            setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10.
              warnings.warn(
            Running from numpy source directory.
            setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
              run_build = parse_setuppy_commands()
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/tools/cythonize.py:67: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
              from distutils.version import LooseVersion
            Processing numpy/random/_bounded_integers.pxd.in
            Processing numpy/random/_pcg64.pyx
            Processing numpy/random/_mt19937.pyx
            Processing numpy/random/mtrand.pyx
            Processing numpy/random/_sfc64.pyx
            Processing numpy/random/_bounded_integers.pyx.in
            Processing numpy/random/bit_generator.pyx
            Processing numpy/random/_philox.pyx
            Processing numpy/random/_generator.pyx
            Processing numpy/random/_common.pyx
            Cythonizing sources
            blas_opt_info:
            blas_mkl_info:
            customize UnixCCompiler
              libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            blis_info:
              libraries blis not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            openblas_info:
              libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_3_10_blas_threads_info:
            Setting PTATLAS=ATLAS
              libraries tatlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_3_10_blas_info:
              libraries satlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_blas_threads_info:
            Setting PTATLAS=ATLAS
              libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_blas_info:
              libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            accelerate_info:
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
                Optimized (vendor) Blas libraries are not found.
                Falls back to netlib Blas library which has worse performance.
                A better performance should be easily gained by switching
                Blas library.
              if self._calc_info(blas):
            blas_info:
              libraries blas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
                Blas (http://www.netlib.org/blas/) libraries not found.
                Directories to search for the libraries can be specified in the
                numpy/distutils/site.cfg file (section [blas]) or by setting
                the BLAS environment variable.
              if self._calc_info(blas):
            blas_src_info:
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1914: UserWarning:
                Blas (http://www.netlib.org/blas/) sources not found.
                Directories to search for the sources can be specified in the
                numpy/distutils/site.cfg file (section [blas_src]) or by setting
                the BLAS_SRC environment variable.
              if self._calc_info(blas):
              NOT AVAILABLE
      
            non-existing path in 'numpy/distutils': 'site.cfg'
            lapack_opt_info:
            lapack_mkl_info:
              libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            openblas_lapack_info:
              libraries openblas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            openblas_clapack_info:
              libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            flame_info:
              libraries flame not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            atlas_3_10_threads_info:
            Setting PTATLAS=ATLAS
              libraries lapack_atlas not found in /usr/local/lib
              libraries tatlas,tatlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries tatlas,tatlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries tatlas,tatlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
              NOT AVAILABLE
      
            atlas_3_10_info:
              libraries lapack_atlas not found in /usr/local/lib
              libraries satlas,satlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries satlas,satlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries satlas,satlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_3_10_info'>
              NOT AVAILABLE
      
            atlas_threads_info:
            Setting PTATLAS=ATLAS
              libraries lapack_atlas not found in /usr/local/lib
              libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_threads_info'>
              NOT AVAILABLE
      
            atlas_info:
              libraries lapack_atlas not found in /usr/local/lib
              libraries f77blas,cblas,atlas not found in /usr/local/lib
              libraries lapack_atlas not found in /usr/lib64
              libraries f77blas,cblas,atlas not found in /usr/lib64
              libraries lapack_atlas not found in /usr/lib
              libraries f77blas,cblas,atlas not found in /usr/lib
              libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
              libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
            <class 'numpy.distutils.system_info.atlas_info'>
              NOT AVAILABLE
      
            lapack_info:
              libraries lapack not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning:
                Lapack (http://www.netlib.org/lapack/) libraries not found.
                Directories to search for the libraries can be specified in the
                numpy/distutils/site.cfg file (section [lapack]) or by setting
                the LAPACK environment variable.
              return getattr(self, '_calc_info_{}'.format(name))()
            lapack_src_info:
              NOT AVAILABLE
      
            /tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/system_info.py:1748: UserWarning:
                Lapack (http://www.netlib.org/lapack/) sources not found.
                Directories to search for the sources can be specified in the
                numpy/distutils/site.cfg file (section [lapack_src]) or by setting
                the LAPACK_SRC environment variable.
              return getattr(self, '_calc_info_{}'.format(name))()
              NOT AVAILABLE
      
            numpy_linalg_lapack_lite:
              FOUND:
                language = c
                define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
      
            /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
              warnings.warn(msg)
            running dist_info
            running build_src
            build_src
            building py_modules sources
            creating build
            creating build/src.linux-x86_64-3.10
            creating build/src.linux-x86_64-3.10/numpy
            creating build/src.linux-x86_64-3.10/numpy/distutils
            building library "npymath" sources
            Could not locate executable gfortran
            Could not locate executable f95
            Could not locate executable ifort
            Could not locate executable ifc
            Could not locate executable lf95
            Could not locate executable pgfortran
            Could not locate executable nvfortran
            Could not locate executable f90
            Could not locate executable f77
            Could not locate executable fort
            Could not locate executable efort
            Could not locate executable efc
            Could not locate executable g77
            Could not locate executable g95
            Could not locate executable pathf95
            Could not locate executable nagfor
            don't know how to compile Fortran code on platform 'posix'
            creating build/src.linux-x86_64-3.10/numpy/core
            creating build/src.linux-x86_64-3.10/numpy/core/src
            creating build/src.linux-x86_64-3.10/numpy/core/src/npymath
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h
              adding 'build/src.linux-x86_64-3.10/numpy/core/src/npymath' to include_dirs.
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/ieee754.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_complex.c
            None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/npymath/npy_math_internal.h']
            building library "npysort" sources
            creating build/src.linux-x86_64-3.10/numpy/core/src/common
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h
              adding 'build/src.linux-x86_64-3.10/numpy/core/src/common' to include_dirs.
            creating build/src.linux-x86_64-3.10/numpy/core/src/npysort
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/quicksort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/mergesort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/timsort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/heapsort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/radixsort.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/selection.c
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/npysort/binsearch.c
            None - nothing done with h_files = ['build/src.linux-x86_64-3.10/numpy/core/src/common/npy_sort.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_partition.h', 'build/src.linux-x86_64-3.10/numpy/core/src/common/npy_binsearch.h']
            building library "npyrandom" sources
            building extension "numpy.core._multiarray_tests" sources
            creating build/src.linux-x86_64-3.10/numpy/core/src/multiarray
            conv_template:> build/src.linux-x86_64-3.10/numpy/core/src/multiarray/_multiarray_tests.c
            building extension "numpy.core._multiarray_umath" sources
            Traceback (most recent call last):
              File "/tmp/tmpmgpc7t6c_in_process.py", line 363, in <module>
                main()
              File "/tmp/tmpmgpc7t6c_in_process.py", line 345, in main
                json_out['return_val'] = hook(**hook_input['kwargs'])
              File "/tmp/tmpmgpc7t6c_in_process.py", line 164, in prepare_metadata_for_build_wheel
                return hook(metadata_directory, config_settings)
              File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel
                self.run_setup()
              File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup
                super(_BuildMetaLegacyBackend,
              File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
                exec(compile(code, __file__, 'exec'), locals())
              File "setup.py", line 508, in <module>
                setup_package()
              File "setup.py", line 500, in setup_package
                setup(**metadata)
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/core.py", line 169, in setup
                return old_setup(**new_attr)
              File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
                return distutils.core.setup(**attrs)
              File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
                dist.run_commands()
              File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
                self.run_command(cmd)
              File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/usr/lib/python3/dist-packages/setuptools/command/dist_info.py", line 31, in run
                egg_info.run()
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/egg_info.py", line 24, in run
                self.run_command("build_src")
              File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
                self.distribution.run_command(command)
              File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 144, in run
                self.build_sources()
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 161, in build_sources
                self.build_extension_sources(ext)
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 318, in build_extension_sources
                sources = self.generate_sources(sources, ext)
              File "/tmp/pip-install-by9xkyxt/numpy_86f1a609da354e34aef4203042b7e552/numpy/distutils/command/build_src.py", line 378, in generate_sources
                source = func(extension, build_dir)
              File "numpy/core/setup.py", line 436, in generate_config_h
                moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
              File "numpy/core/setup.py", line 47, in check_types
                out = check_types(*a, **kw)
              File "numpy/core/setup.py", line 292, in check_types
                raise SystemError(
            SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed
      
      × Encountered error while generating package metadata.
      ╰─> See above for output.
      
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

+1

linxiaohui avatar Oct 10 '22 08:10 linxiaohui

For Anyone concerns:

If you want to install paddlespeech on python 3.10, you may try:

  1. build pyworld and install it. ref to https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder
  2. build paddle2onnx and install. ref to https://github.com/PaddlePaddle/Paddle2ONNX/blob/develop/docs/zh/compile.md
  3. install paddlespeech

see also http://5190m.top/note/2022/10/11/2022-10-11-paddlepaddle-intro.html

linxiaohui avatar Oct 11 '22 03:10 linxiaohui

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 05 '23 04:01 stale[bot]

你好,我这电脑是苹果macos 13.2的系统,M2芯片的,不是以前intel芯片的电脑,试了python3.9和3.10,都报下面这个错误,onnx包单独安装只能装1.13.0,但是好像这个版本不支持PaddleSpeech,paddlepaddle我也试了2.3.0,2.4.0和2.4.1这几个版本,都不行,都是这个问题。

te/var/folders/k7/qgdcc1pj51n7j_jf4xvnh_v40000gn/T/pip-install-1m7dqzgx/onnx_d6923ea0a8c045259e93d4c615e2d381']' returned non-zero exit status 1. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> onnx

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

yeapllg avatar Feb 03 '23 13:02 yeapllg

centos 已经pip3.8 install . 没有报错,安装完所有环境,执行 paddlespeech asr --lang zh --input zh.wav 提示 非法指令

2954456878 avatar Feb 07 '23 03:02 2954456878

centos 已经pip3.8 install . 没有报错,安装完所有环境,执行 paddlespeech asr --lang zh --input zh.wav 提示 非法指令

提示非法指令那paddlespeech大概率是安装失败了,可以看一下安装的log,检查一下失败原因

iftaken avatar Feb 07 '23 03:02 iftaken

你好,docker:paddlecloud/paddlespeech:develop-cpu-fb4d25 执行demo提示:zipfile.BadZipFile: File is not a zip file,使用sh run.sh\paddlespeech都会提示错误 demofail 1

panli841 avatar Feb 08 '23 07:02 panli841

摘录已经pip3.8安装。没有报错,安装完所有环境,执行paddle speech ASR-lang zh-input zh . wav提示 非法指令

提示非法指令那paddlespeech大概率是安装失败了,可以看一下安装的日志,检查一下失败原因

log里没有报错,依赖也全部安装

2954456878 avatar Feb 08 '23 08:02 2954456878

360ChromeX_bLZlxOeTup WindowsTerminal_PPawvFgngB

请问这个是什么问题呀,前后端都用不了

C:\Users\admin\PaddleSpeech\demos\speech_web\web_client>yarn dev --port 8011 yarn run v1.22.19 $ vite --port 8011

vite v2.9.15 dev server running at:

Network: http://192.168.0.106:8011/ Local: http://localhost:8011/

ready in 696ms.

20:06:17 [vite] http proxy error: Error: connect ECONNREFUSED ::1:8010 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) 20:06:17 [vite] http proxy error: Error: connect ECONNREFUSED ::1:8010 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) (x2) 20:06:17 [vite] http proxy error: Error: connect ECONNREFUSED ::1:8010 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) (x3) 20:06:17 [vite] http proxy error: Error: connect ECONNREFUSED ::1:8010 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) (x4)

C:\Users\admin\PaddleSpeech\demos\speech_web\speech_server>python main.py --port 8010 C:\Program Files\Python39\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first. warnings.warn( C:\Program Files\Python39\lib\site-packages\paddleaudio_extension.py:141: UserWarning: paddleaudio C++ extension is not available. sox_io, sox_effect, kaldi raw feature is not supported!!! warnings.warn( 2023-03-30 19:31:40.600 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed! [2023-03-30 19:31:48,349] [ INFO] - We are using <class 'paddlenlp.transformers.ernie.tokenizer.ErnieTokenizer'> to load 'source/model'. [2023-03-30 19:31:50,183] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\plato-mini\plato-mini-vocab.txt [2023-03-30 19:31:50,185] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\plato-mini\plato-mini-spm.model [2023-03-30 19:31:50,298] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\plato-mini\tokenizer_config.json [2023-03-30 19:31:50,299] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\plato-mini\special_tokens_map.json [2023-03-30 19:31:50,302] [ INFO] - Model config UnifiedTransformerConfig { "attention_probs_dropout_prob": 0.1, "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "mask_token_id": 30000, "max_position_embeddings": 512, "model_type": "unified_transformer", "normalize_before": true, "num_attention_heads": 12, "num_hidden_layers": 6, "pad_token_id": 0, "paddlenlp_version": null, "role_type_size": null, "type_vocab_size": 2, "unk_token_id": 0, "vocab_size": 30001 }

[2023-03-30 19:32:04,531] [ INFO] - All model checkpoint weights were used when initializing UnifiedTransformerLMHeadModel.

[2023-03-30 19:32:04,532] [ INFO] - All the weights of UnifiedTransformerLMHeadModel were initialized from the model checkpoint at plato-mini. If your task is similar to the task the model of the checkpoint was trained on, you can already use UnifiedTransformerLMHeadModel for predictions without further training. 2023-03-30 19:32:10.665 | INFO | paddlespeech.s2t.modules.embedding:init:150 - max len: 5000 [2023-03-30 19:32:17,173] [ INFO] - Initialize ASR server engine successfully on device: cpu. [2023-03-30 19:32:17,179] [ INFO] - first and second beam size: 10, 10 [2023-03-30 19:32:17,179] [ INFO] - Endpont Opts: OnlineCTCEndpoingOpt(frame_shift_in_ms=10, blank=0, blank_threshold=0.8, rule1=OnlineCTCEndpointRule(must_contain_nonsilence=False, min_trailing_silence=5000, min_utterance_length=0), rule2=OnlineCTCEndpointRule(must_contain_nonsilence=True, min_trailing_silence=1000, min_utterance_length=0), rule3=OnlineCTCEndpointRule(must_contain_nonsilence=False, min_trailing_silence=0, min_utterance_length=20000)) [2023-03-30 19:32:23,360] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt [2023-03-30 19:32:23,399] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\tokenizer_config.json [2023-03-30 19:32:23,401] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\special_tokens_map.json [2023-03-30 19:32:23,642] [ INFO] - Initialize TTS server engine successfully on device: cpu. [2023-03-30 19:32:27,394] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt [2023-03-30 19:32:27,426] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\tokenizer_config.json [2023-03-30 19:32:27,427] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\special_tokens_map.json 2023-03-30 19:32:33.694 | INFO | paddlespeech.s2t.modules.embedding:init:150 - max len: 5000 [2023-03-30 19:32:40,769] [ WARNING] - The sample rate of the input file is not 16000. The program will resample the wav file to 16000. If the result does not meet your expectations, Please input the 16k 16 bit 1 channel wav file. [2023-03-30 19:32:52,575] [ INFO] - Already cached C:\Users\admin.paddlenlp\models\bert-base-chinese\bert-base-chinese-vocab.txt [2023-03-30 19:32:52,590] [ INFO] - tokenizer config file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\tokenizer_config.json [2023-03-30 19:32:52,591] [ INFO] - Special tokens file saved in C:\Users\admin.paddlenlp\models\bert-base-chinese\special_tokens_map.json Building prefix dict from the default dictionary ... [2023-03-30 19:33:01,119] [ DEBUG] init.py:113 - Building prefix dict from the default dictionary ... Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache [2023-03-30 19:33:01,121] [ DEBUG] init.py:132 - Loading model from cache C:\Users\admin\AppData\Local\Temp\jieba.cache Loading model cost 0.705 seconds. [2023-03-30 19:33:01,825] [ DEBUG] init.py:164 - Loading model cost 0.705 seconds. Prefix dict has been built successfully. [2023-03-30 19:33:01,825] [ DEBUG] init.py:166 - Prefix dict has been built successfully. INFO: Started server process [17196] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8010 (Press CTRL+C to quit) INFO: 127.0.0.1:51944 - "GET / HTTP/1.1" 404 Not Found INFO: 127.0.0.1:51944 - "GET /favicon.ico HTTP/1.1" 404 Not Found INFO: 127.0.0.1:52006 - "GET / HTTP/1.1" 404 Not Found

276397082 avatar Mar 30 '23 12:03 276397082

从日志上看前后端都是正常开启了的,而且后面能够收到 GET 请求,可以先通过 http://0.0.0.0:8010/docs 来看看fastapi 接口是否正常,看看 GET / POST 请求是否正常,如果都正常则可以就在前端的控制台再看看报错信息,现在的日志无法定位bug出在哪里

iftaken avatar Mar 31 '23 02:03 iftaken

在安装PaddleSpeech过程中安装webrtcvad依赖的时候出现问题。 webrtcvad安装不上,请问有什么解决方案呢?谢谢! `Installing collected packages: paddlehub Attempting uninstall: paddlehub Found existing installation: paddlehub 2.0.0 Uninstalling paddlehub-2.0.0: Successfully uninstalled paddlehub-2.0.0 Successfully installed paddlehub-2.3.1 (paddlehub) PS D:\pycharm-projects\paddle> pip install webrtcvad
Collecting webrtcvad Using cached webrtcvad-2.0.10.tar.gz (66 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: webrtcvad Building wheel for webrtcvad (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [52 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.8 copying webrtcvad.py -> build\lib.win-amd64-3.8 running build_ext building '_webrtcvad' extension Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\HN-LPC-235\AppData\Local\Temp\pip-install-71_rmm3e\webrtcvad_03463ab0b1d747fcbee6d9757d520b3e\setup.py", line 41, in setup( File "D:\Anaconda\envs\paddlehub\lib\distutils\core.py", line 148, in setup dist.run_commands() File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "D:\Anaconda\envs\paddlehub\lib\site-packages\wheel\bdist_wheel.py", line 325, in run self.run_command("build") File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 75, in run _build_ext.run(self) File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 528, in build_extension objects = self.compiler.compile(sources, File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 327, in compile self.initialize() File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 224, in initialize vc_env = _get_vc_env(plat_spec) File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\msvc.py", line 165, in msvc14_get_vc_env return get_unpatched(msvc14_get_vc_env)(plat_spec) File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 129, in _get_vc_env out = subprocess.check_output( AttributeError: 'str' object has no attribute 'decode' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for webrtcvad Running setup.py clean for webrtcvad Failed to build webrtcvad Installing collected packages: webrtcvad Running setup.py install for webrtcvad ... error error: subprocess-exited-with-error

× Running setup.py install for webrtcvad did not run successfully. │ exit code: 1 ╰─> [54 lines of output] running install running build running build_py creating build creating build\lib.win-amd64-3.8 copying webrtcvad.py -> build\lib.win-amd64-3.8 running build_ext building '_webrtcvad' extension Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\HN-LPC-235\AppData\Local\Temp\pip-install-71_rmm3e\webrtcvad_03463ab0b1d747fcbee6d9757d520b3e\setup.py", line 41, in setup( File "D:\Anaconda\envs\paddlehub\lib\distutils\core.py", line 148, in setup dist.run_commands() File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "D:\Anaconda\envs\paddlehub\lib\distutils\command\install.py", line 545, in run self.run_command('build') File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "D:\Anaconda\envs\paddlehub\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "D:\Anaconda\envs\paddlehub\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 75, in run _build_ext.run(self) File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) File "D:\Anaconda\envs\paddlehub\lib\distutils\command\build_ext.py", line 528, in build_extension objects = self.compiler.compile(sources, File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 327, in compile self.initialize() File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 224, in initialize vc_env = _get_vc_env(plat_spec) File "D:\Anaconda\envs\paddlehub\lib\site-packages\setuptools\msvc.py", line 165, in msvc14_get_vc_env return get_unpatched(msvc14_get_vc_env)(plat_spec) File "D:\Anaconda\envs\paddlehub\lib\distutils_msvccompiler.py", line 129, in _get_vc_env out = subprocess.check_output( AttributeError: 'str' object has no attribute 'decode' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> webrtcvad `

songqikong avatar Apr 03 '23 06:04 songqikong

ImportError: libcudart.so.10.2: cannot open shared object file: No such file or directory 环境安装完毕,但是提示如下错误,这是啥问题呢? image

ontheway-arch avatar Apr 06 '23 07:04 ontheway-arch

ImportError: libcudart.so.10.2: cannot open shared object file: No such file or directory 环境安装完毕,但是提示如下错误,这是啥问题呢? image

docker pull paddlecloud/paddlespeech:develop-gpu-cuda10.2-cudnn7-latest 請用cuda10.2的docker鏡像。

kenny-chen avatar Apr 06 '23 09:04 kenny-chen

PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总 老是提示 Could not build wheels for pyworld which use PEP 517 and cannot be installed directly Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here |████████████████████████████████| 610 kB 92.4 MB/s Using legacy 'setup.py install' for paddlespeech, since package 'wheel' is not installed. Using legacy 'setup.py install' for webrtcvad, since package 'wheel' is not installed. Using legacy 'setup.py install' for zhon, since package 'wheel' is not installed. Using legacy 'setup.py install' for pattern-singleton, since package 'wheel' is not installed. Using legacy 'setup.py install' for distance, since package 'wheel' is not installed. Using legacy 'setup.py install' for audioread, since package 'wheel' is not installed. Using legacy 'setup.py install' for seqeval, since package 'wheel' is not installed. Using legacy 'setup.py install' for jieba, since package 'wheel' is not installed. Using legacy 'setup.py install' for ffmpy, since package 'wheel' is not installed. Using legacy 'setup.py install' for future, since package 'wheel' is not installed. Building wheels for collected packages: pyworld Building wheel for pyworld (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.9 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpk3hdyga8 cwd: /tmp/pip-install-pp7e4lzc/pyworld Complete output (36 lines): /tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead warnings.warn( /tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-39 creating build/lib.linux-x86_64-cpython-39/pyworld copying pyworld/init.py -> build/lib.linux-x86_64-cpython-39/pyworld running build_ext skipping 'pyworld/pyworld.cpp' Cython extension (up-to-date) building 'pyworld.pyworld' extension creating build/temp.linux-x86_64-cpython-39 creating build/temp.linux-x86_64-cpython-39/lib creating build/temp.linux-x86_64-cpython-39/lib/World creating build/temp.linux-x86_64-cpython-39/lib/World/src creating build/temp.linux-x86_64-cpython-39/pyworld gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/cheaptrick.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/cheaptrick.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/codec.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/codec.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/common.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/common.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/d4c.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/d4c.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/dio.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/dio.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/fft.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/fft.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/harvest.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/harvest.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/matlabfunctions.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/matlabfunctions.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/stonemask.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/stonemask.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesis.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesis.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesisrealtime.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesisrealtime.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c pyworld/pyworld.cpp -o build/temp.linux-x86_64-cpython-39/pyworld/pyworld.o pyworld/pyworld.cpp:6:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1


ERROR: Failed building wheel for pyworld Failed to build pyworld ERROR: Could not build wheels for pyworld which use PEP 517 and cannot be installed directly

求大神帮助

MrLittleHand avatar Apr 15 '23 06:04 MrLittleHand

PaddleSpeech安装过程中遇到的问题都可以在这里留言,一些跟安装相关的问题也会在这里进行汇总 老是提示 Could not build wheels for pyworld which use PEP 517 and cannot be installed directly Problems encountered during the installation of paddlespeech can be left here, and some installation related problems will also be summarized here |████████████████████████████████| 610 kB 92.4 MB/s Using legacy 'setup.py install' for paddlespeech, since package 'wheel' is not installed. Using legacy 'setup.py install' for webrtcvad, since package 'wheel' is not installed. Using legacy 'setup.py install' for zhon, since package 'wheel' is not installed. Using legacy 'setup.py install' for pattern-singleton, since package 'wheel' is not installed. Using legacy 'setup.py install' for distance, since package 'wheel' is not installed. Using legacy 'setup.py install' for audioread, since package 'wheel' is not installed. Using legacy 'setup.py install' for seqeval, since package 'wheel' is not installed. Using legacy 'setup.py install' for jieba, since package 'wheel' is not installed. Using legacy 'setup.py install' for ffmpy, since package 'wheel' is not installed. Using legacy 'setup.py install' for future, since package 'wheel' is not installed. Building wheels for collected packages: pyworld Building wheel for pyworld (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.9 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpk3hdyga8 cwd: /tmp/pip-install-pp7e4lzc/pyworld Complete output (36 lines): /tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead warnings.warn( /tmp/pip-build-env-tfmb8d11/overlay/lib/python3.9/site-packages/setuptools/dist.py:788: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-39 creating build/lib.linux-x86_64-cpython-39/pyworld copying pyworld/init.py -> build/lib.linux-x86_64-cpython-39/pyworld running build_ext skipping 'pyworld/pyworld.cpp' Cython extension (up-to-date) building 'pyworld.pyworld' extension creating build/temp.linux-x86_64-cpython-39 creating build/temp.linux-x86_64-cpython-39/lib creating build/temp.linux-x86_64-cpython-39/lib/World creating build/temp.linux-x86_64-cpython-39/lib/World/src creating build/temp.linux-x86_64-cpython-39/pyworld gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/cheaptrick.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/cheaptrick.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/codec.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/codec.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/common.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/common.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/d4c.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/d4c.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/dio.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/dio.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/fft.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/fft.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/harvest.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/harvest.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/matlabfunctions.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/matlabfunctions.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/stonemask.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/stonemask.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesis.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesis.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c lib/World/src/synthesisrealtime.cpp -o build/temp.linux-x86_64-cpython-39/lib/World/src/synthesisrealtime.o gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilib/World/src -I/tmp/pip-build-env-tfmb8d11/overlay/lib64/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c pyworld/pyworld.cpp -o build/temp.linux-x86_64-cpython-39/pyworld/pyworld.o pyworld/pyworld.cpp:6:10: fatal error: Python.h: No such file or directory #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1

ERROR: Failed building wheel for pyworld Failed to build pyworld ERROR: Could not build wheels for pyworld which use PEP 517 and cannot be installed directly

求大神帮助

我猜测,是因编译环境不完整,导致安装失败。 建议使用docker来自动部署环境。 https://hub.docker.com/r/paddlecloud/paddlespeech

kenny-chen avatar Apr 17 '23 01:04 kenny-chen

 pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing d:\0sdxx\paddlespeech-develop
  Preparing metadata (setup.py) ... done
Requirement already satisfied: braceexpand in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.1.7)
Requirement already satisfied: editdistance in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.6.2)
Requirement already satisfied: g2p_en in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (2.1.0)
Requirement already satisfied: g2pM in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.1.2.5)
Requirement already satisfied: h5py in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (3.8.0)
Collecting hyperpyyaml
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/48/25/b287635d4676bf380c31b5adca1ec6c6aa8c4e26a24e1e54893397b5bbe0/HyperPyYAML-1.2.0-py3-none-any.whl (16 kB)
Requirement already satisfied: inflect in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (6.0.4)
Requirement already satisfied: jsonlines in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (3.1.0)
Requirement already satisfied: librosa==0.8.1 in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.8.1)
Requirement already satisfied: loguru in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.7.0)
Requirement already satisfied: matplotlib in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (3.5.3)
Requirement already satisfied: nara_wpe in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (0.0.9)
Requirement already satisfied: onnxruntime>=1.11.0 in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (1.11.0)
Requirement already satisfied: opencc in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (1.1.1)
Collecting opencc-python-reimplemented
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/30/6b/055b7806f320cc8f2cdf23c5f70221c0dc1683fca9ffaf76dfc2ad4b91b6/opencc_python_reimplemented-0.1.7-py2.py3-none-any.whl (481 kB)
Requirement already satisfied: pandas in d:\anaconda3\envs\paddlespeech\lib\site-packages (from paddlespeech==0.0.0) (1.3.5)
ERROR: Could not find a version that satisfies the requirement paddleaudio>=1.1.0 (from paddlespeech) (from versions: 0.1.0a0, 0.1.0, 0.2.0, 0.2.1, 1.0.0a0, 1.0.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for paddleaudio>=1.1.0

 pip install paddleaudio==1.1.0
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement paddleaudio==1.1.0 (from versions: 0.1.0a0, 0.1.0, 0.2.0, 0.2.1, 1.0.0a0, 1.0.0, 1.0.1, 1.0.2)
ERROR: No matching distribution found for paddleaudio==1.1.0

@yt605155624

monkeycc avatar May 04 '23 13:05 monkeycc

 pip install -e .[develop] -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining file:///D:/0SDXX/PaddleSpeech-develop
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      Traceback (most recent call last):
        File "<string>", line 36, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 320, in <module>
          with version_info():
        File "D:\anaconda3\envs\PaddleSpeech\lib\contextlib.py", line 112, in __enter__
          return next(self.gen)
        File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 244, in version_info
          write_version_py()
        File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 222, in write_version_py
          COMMITID = check_output("git rev-parse HEAD")
        File "D:\0SDXX\PaddleSpeech-develop\setup.py", line 112, in check_output
          out_bytes = sp.check_output(cmd.split())
        File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 411, in check_output
          **kwargs).stdout
        File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 488, in run
          with Popen(*popenargs, **kwargs) as process:
        File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 800, in __init__
          restore_signals, start_new_session)
        File "D:\anaconda3\envs\PaddleSpeech\lib\subprocess.py", line 1207, in _execute_child
          startupinfo)
      FileNotFoundError: [WinError 2] 系统找不到指定的文件。

      __version__ = '0.0.0'

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

monkeycc avatar May 04 '23 13:05 monkeycc

如果运行指令paddlespeech asr --lang zh --input zh.wav报以下错误

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/paddlespeech", line 8, in <module>
    sys.exit(_execute())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/paddlespeech/cli/entry.py", line 40, in _execute
    exec("from {} import {}".format(module, cls))
  File "<string>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/paddlespeech/cli/asr/__init__.py", line 14, in <module>
    from .infer import ASRExecutor
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/paddlespeech/cli/asr/infer.py", line 24, in <module>
    import librosa
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/__init__.py", line 211, in <module>
    from . import core
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/core/__init__.py", line 9, in <module>
    from .constantq import *  # pylint: disable=wildcard-import
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/core/constantq.py", line 1059, in <module>
    dtype=np.complex,
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

那是因为numpy版本过高所致,卸载numpy,并重新安装numpy版本为1.23.5

refer: https://github.com/PaddlePaddle/PaddleSpeech/issues/3235

mgsky1 avatar May 10 '23 06:05 mgsky1

我是ubuntu18.4系统,安装完paddlespeech后,想启动speech_web的后端,报错paddlespeech_ctcdecoders not installed!,注,我不想用docker python main.py --port 8010 WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. ERROR: Could not find a version that satisfies the requirement paddlespeech_ctcdecoders (from versions: none) ERROR: No matching distribution found for paddlespeech_ctcdecoders 2023-05-10 15:50:08.581 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed! Traceback (most recent call last): File "main.py", line 21, in from src.robot import Robot File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/robot.py", line 6, in from src.SpeechBase.tts import TTS File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/SpeechBase/tts.py", line 14, in from paddlespeech.server.engine.tts.online.onnx.tts_engine import TTSEngine File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/server/engine/tts/online/onnx/tts_engine.py", line 24, in from paddlespeech.cli.tts.infer import TTSExecutor File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/init.py", line 14, in from .infer import TTSExecutor File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/infer.py", line 33, in from paddlespeech.t2s.exps.syn_utils import get_am_inference File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/exps/syn_utils.py", line 36, in from paddlespeech.t2s.frontend.mix_frontend import MixFrontend File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/mix_frontend.py", line 20, in from paddlespeech.t2s.frontend.zh_frontend import Frontend File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/zh_frontend.py", line 31, in from paddlespeech.t2s.frontend.g2pw import G2PWOnnxConverter File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/init.py", line 1, in from .onnx_api import G2PWOnnxConverter File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/onnx_api.py", line 27, in from opencc import OpenCC File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/opencc.py", line 24, in libopencc = CDLL('libopencc.so.1', use_errno=True) File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: libopencc.so.1: 无法打开共享对象文件: 没有那个文件或目录

truthsun22 avatar May 10 '23 07:05 truthsun22

我是ubuntu18.4系统,安装完paddlespeech后,想启动speech_web的后端,报错paddlespeech_ctcdecoders not installed!,注,我不想用docker python main.py --port 8010 WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see pypa/pip#5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. ERROR: Could not find a version that satisfies the requirement paddlespeech_ctcdecoders (from versions: none) ERROR: No matching distribution found for paddlespeech_ctcdecoders 2023-05-10 15:50:08.581 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed! Traceback (most recent call last): File "main.py", line 21, in from src.robot import Robot File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/robot.py", line 6, in from src.SpeechBase.tts import TTS File "/home/deepnature/ai/paddle/PaddleSpeech-develop/demos/speech_web/speech_server/src/SpeechBase/tts.py", line 14, in from paddlespeech.server.engine.tts.online.onnx.tts_engine import TTSEngine File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/server/engine/tts/online/onnx/tts_engine.py", line 24, in from paddlespeech.cli.tts.infer import TTSExecutor File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/init.py", line 14, in from .infer import TTSExecutor File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/cli/tts/infer.py", line 33, in from paddlespeech.t2s.exps.syn_utils import get_am_inference File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/exps/syn_utils.py", line 36, in from paddlespeech.t2s.frontend.mix_frontend import MixFrontend File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/mix_frontend.py", line 20, in from paddlespeech.t2s.frontend.zh_frontend import Frontend File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/zh_frontend.py", line 31, in from paddlespeech.t2s.frontend.g2pw import G2PWOnnxConverter File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/init.py", line 1, in from .onnx_api import G2PWOnnxConverter File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/paddlespeech/t2s/frontend/g2pw/onnx_api.py", line 27, in from opencc import OpenCC File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/site-packages/opencc.py", line 24, in libopencc = CDLL('libopencc.so.1', use_errno=True) File "/home/deepnature/anaconda3/envs/paddle2.4/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: libopencc.so.1: 无法打开共享对象文件: 没有那个文件或目录

自己解决了,需要安装 pip install opencc-python-reimplemented==0.1.4

truthsun22 avatar May 10 '23 08:05 truthsun22