Skip to content

pypesq install failure #22

@joeoct93

Description

@joeoct93

While trying to install the requirements, I got the following error shown below. I'm using ubuntu 22.04, and I followed the instructions on the page, and I am using Nvidia GeForce 2080Ti. How can I get over this? is there a specific version I need to install? However, I already tried downgrading pypesq, which still failed.

Collecting pypesq==1.0
Downloading pypesq-1.0.tar.gz (24 kB)
Requirement already satisfied: numpy in ./anaconda3/envs/speech_enhance/lib/python3.6/site-packages (from pypesq==1.0) (1.19.2)
Building wheels for collected packages: pypesq
Building wheel for pypesq (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/username/anaconda3/envs/speech_enhance/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/setup.py'"'"'; file='"'"'/tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-qeext5mj
cwd: /tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/
Complete output (26 lines):
running bdist_wheel
running build
running build_py
file numpy.py (for module numpy) not found
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pypesq
copying pypesq/init.py -> build/lib.linux-x86_64-3.6/pypesq
file numpy.py (for module numpy) not found
running build_ext
building 'pesq_core' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/pypesq
gcc -pthread -B /home/username/anaconda3/envs/speech_enhance/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy -I/home/username/anaconda3/envs/speech_enhance/include/python3.6m -c pypesq/pesq.c -o build/temp.linux-x86_64-3.6/pypesq/pesq.o
In file included from /home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
from /home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from pypesq/pesq.c:2:
/home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
pypesq/pesq.c:5:10: fatal error: pesq.h: No such file or directory
5 | #include "pesq.h"
| ^~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for pypesq
Running setup.py clean for pypesq
Failed to build pypesq
Installing collected packages: pypesq
Running setup.py install for pypesq ... error
ERROR: Command errored out with exit status 1:
command: /home/username/anaconda3/envs/speech_enhance/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/setup.py'"'"'; file='"'"'/tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zcyemj5u/install-record.txt --single-version-externally-managed --compile --install-headers /home/username/anaconda3/envs/speech_enhance/include/python3.6m/pypesq
cwd: /tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/
Complete output (26 lines):
running install
running build
running build_py
file numpy.py (for module numpy) not found
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pypesq
copying pypesq/init.py -> build/lib.linux-x86_64-3.6/pypesq
file numpy.py (for module numpy) not found
running build_ext
building 'pesq_core' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/pypesq
gcc -pthread -B /home/choi1022linux/anaconda3/envs/speech_enhance/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/choi1022linux/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy -I/home/choi1022linux/anaconda3/envs/speech_enhance/include/python3.6m -c pypesq/pesq.c -o build/temp.linux-x86_64-3.6/pypesq/pesq.o
In file included from /home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
from /home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from pypesq/pesq.c:2:
/home/username/anaconda3/envs/speech_enhance/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
pypesq/pesq.c:5:10: fatal error: pesq.h: No such file or directory
5 | #include "pesq.h"
| ^~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/username/anaconda3/envs/speech_enhance/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/setup.py'"'"'; file='"'"'/tmp/pip-install-zzkoowzc/pypesq_c363aa2277764f5585f4781bcbe8b6fc/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zcyemj5u/install-record.txt --single-version-externally-managed --compile --install-headers /home/username/anaconda3/envs/speech_enhance/include/python3.6m/pypesq Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions