-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors building installing 0.2.0 via pip install #95
Comments
Looks like the problem is the recent Cython release. You can work around the issue by:
The issue is also discussed here: JeremyCCHsu/Python-Wrapper-for-World-Vocoder#87 |
I had a feeling it was Cython, but wasn't aware of the --no-build-isolation flag. This workaround worked perfect for me. Thanks for the quick response! |
v0.2.1 is up: https://github.com/r9y9/pysptk/releases/tag/v0.2.1 |
I found that if Line 8 in |
Thanks! Looks like Cython 3.0.0 changed the default syntax semantics from Python 2.7 to Python 3. Relative import may need update due to the change
I'll make a fix to support Cython 3.0.0. when I have some time. |
Hi, @maratsubkhankulov I faced the same issue and applied the workaround suggested. But I got a different error: Collecting Cython==0.29.35 Any help on this? |
As of recently (the past week or so ) I started getting build errors when trying to install the latest 0.2.0 of pysptk on ubuntu 22.04.
Error:
`
pip install git+https://github.com/r9y9/pysptk
Collecting git+https://github.com/r9y9/pysptk
Cloning https://github.com/r9y9/pysptk to /tmp/pip-req-build-lk5w0i69
Running command git clone --filter=blob:none --quiet https://github.com/r9y9/pysptk /tmp/pip-req-build-lk5w0i69
Resolved https://github.com/r9y9/pysptk to commit 968bf76
Running command git submodule update --init --recursive -q
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: scipy in ./anaconda3/envs/vfo_v1/lib/python3.9/site-packages (from pysptk==0.2.0+968bf76) (1.11.1)
Requirement already satisfied: decorator in ./anaconda3/envs/vfo_v1/lib/python3.9/site-packages (from pysptk==0.2.0+968bf76) (5.1.1)
Requirement already satisfied: cython>=0.28.0 in ./anaconda3/envs/vfo_v1/lib/python3.9/site-packages (from pysptk==0.2.0+968bf76) (3.0.0)
Requirement already satisfied: numpy<1.28.0,>=1.21.6 in ./anaconda3/envs/vfo_v1/lib/python3.9/site-packages (from scipy->pysptk==0.2.0+968bf76) (1.24.4)
Building wheels for collected packages: pysptk
Building wheel for pysptk (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pysptk (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [93 lines of output]
:58: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
running bdist_wheel
running build
running build_py
-- Building version 0.2.0+968bf76
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/pysptk
copying pysptk/sptk.py -> build/lib.linux-x86_64-cpython-39/pysptk
copying pysptk/conversion.py -> build/lib.linux-x86_64-cpython-39/pysptk
copying pysptk/util.py -> build/lib.linux-x86_64-cpython-39/pysptk
copying pysptk/version.py -> build/lib.linux-x86_64-cpython-39/pysptk
copying pysptk/synthesis.py -> build/lib.linux-x86_64-cpython-39/pysptk
copying pysptk/init.py -> build/lib.linux-x86_64-cpython-39/pysptk
creating build/lib.linux-x86_64-cpython-39/pysptk/example_audio_data
copying pysptk/example_audio_data/COPYING -> build/lib.linux-x86_64-cpython-39/pysptk/example_audio_data
copying pysptk/example_audio_data/arctic_a0007.wav -> build/lib.linux-x86_64-cpython-39/pysptk/example_audio_data
running build_ext
/tmp/pip-build-env-88ayx65x/overlay/lib/python3.9/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-req-build-lk5w0i69/pysptk/_sptk.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pysptk
Failed to build pysptk
ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects
`
pip list
`
pip list
Package Version
appdirs 1.4.4
Assimulo 3.4.1
audioread 3.0.0
boto3 1.28.4
botocore 1.31.4
Brotli 1.0.9
certifi 2023.5.7
cffi 1.15.1
charset-normalizer 3.2.0
conda-pack 0.7.0
contourpy 1.1.0
cupy-cuda110 12.1.0
cycler 0.11.0
Cython 3.0.0
decorator 5.1.1
fastrlock 0.8.1
filelock 3.9.0
fonttools 4.41.0
gmpy2 2.1.2
idna 3.4
importlib-resources 6.0.0
Jinja2 3.1.2
jmespath 1.0.1
joblib 1.3.0
kiwisolver 1.4.4
lazy_loader 0.2
librosa 0.10.0
llvmlite 0.40.1
MarkupSafe 2.1.1
matplotlib 3.7.1
mpmath 1.2.1
msgpack 1.0.5
munkres 1.1.4
networkx 2.8.4
noisereduce 2.0.1
numba 0.57.1
numpy 1.24.4
packaging 23.1
pandas 2.0.3
Pillow 9.4.0
pip 23.2
pooch 1.6.0
progressbar 2.5
pycparser 2.21
pynvrtc 9.2
pyparsing 3.1.0
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2023.3
requests 2.31.0
s3transfer 0.6.1
scikit-learn 1.3.0
scipy 1.11.1
setuptools 68.0.0
six 1.16.0
soundfile 0.12.1
soxr 0.3.5
sympy 1.11.1
threadpoolctl 3.2.0
torch 2.0.1
torchvision 0.15.2
tqdm 4.65.0
typing_extensions 4.6.3
tzdata 2023.3
unicodedata2 15.0.0
urllib3 1.26.16
wheel 0.40.0
zipp 3.16.2
`
I tried it with Python 3.8 as well and got the same error.
The text was updated successfully, but these errors were encountered: