-
Notifications
You must be signed in to change notification settings - Fork 34
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
fail to install kaldifeat in conda #49
Comments
my conda env |
error occurs when I call pip install kaldifeat |
Can you use nvcc to compile and run the following file?
|
nvcc -arch sm_86 test.cu -o test && ./test |
I tried conda install gcc=11 gxx=11 python=3.8 git git-lfs make cmake cuda=11.6 cudnn -c conda-forge -c nvidia |
It shows 11.7, but you said you have installed cuda 11.6. Please recheck your cudatoolkit. Please don't use
without specifying which cuda version you want to use. |
I suggest that you create a new environment to install kaldifeat as your current environment is possibly corrupted. |
I create a new env using pip install kaldifeat × python setup.py bdist_wheel did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Running setup.py install for kaldifeat did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while trying to install package. note: This is an issue with the package mentioned above, not pip. |
nvcc -arch sm_86 test.cu -o test && ./test |
Could you create the following file, e.g., source activate-cuda-11.6.sh before you run #!/usr/bin/env bash
export CUDA_HOME=/cfs/user/burkliu/dev/anaconda3/envs/k2_p
export PATH=$CUDA_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib:$LD_LIBRARY_PATH
export CUDA_TOOLKIT_ROOT_DIR=$CUDA_HOME
export CUDA_TOOLKIT_ROOT=$CUDA_HOME
export CUDA_BIN_PATH=$CUDA_HOME
export CUDA_PATH=$CUDA_HOME
export CUDA_INC_PATH=$CUDA_HOME/targets/x86_64-linux |
I think I find the reason. But you have not set up cudatoolkit correctly, so it cannot find the directory where |
fail again after source activate-cuda-11.6.sh |
I find cuda.h in /cfs/user/burkliu/dev/anaconda3/envs/k2_p/include |
Are you able to save the following content to g++ test.cc -o test
./test #include <cuda.h>
#include <cstdio>
int main() {
printf("%d.%d", CUDA_VERSION / 1000, (CUDA_VERSION / 10) % 100);
return 0;
} |
g++ test.cc -o test && ./test |
In that case, could you change export CUDA_INC_PATH=$CUDA_HOME/targets/x86_64-linux to export CUDA_INC_PATH=$CUDA_HOME For Can you use g++ -I $CUDA_HOME/include test.cc -o test && ./test |
success as u said g++ -I $CUDA_HOME/include test.cc -o test && ./test |
but export CUDA_INC_PATH=$CUDA_HOME fail to install kaldifeat, same error |
Are you able to run /cfs/user/burkliu/dev/anaconda3/envs/k2_p/lib/libcudart.so
g++ -I $CUDA_HOME/include test.cc /cfs/user/burkliu/dev/anaconda3/envs/k2_p/lib/libcudart.so -o test && ./test ldd /cfs/user/burkliu/dev/anaconda3/envs/k2_p/lib/libcudart.so |
g++ -I $CUDA_HOME/include test.cc /cfs/user/burkliu/dev/anaconda3/envs/k2_p/lib/libcudart.so -o test && ./test |
I think I found something interesting ldd /cfs/user/burkliu/dev/anaconda3/envs/k2_p/lib/libcudart.so |
/cfs/user/burkliu/dev/anaconda3/envs/k2_p/lib/libcudart.so |
Your system libc version may be too low and cannot work with cuda 11.6 You can check whether your conda env has provided
Yes, that is expected. You cannot run it. |
/lib/x86_64-linux-gnu$ ll | grep libc.so seems it's high enough |
success with conda install kaldifeat -c kaldifeat but compile still fail |
pip install kaldifeat
Looking in indexes: http://mirrors.cloud.tencent.com/pypi/simple
Collecting kaldifeat
Using cached http://mirrors.cloud.tencent.com/pypi/packages/2d/7b/0a5c9254de6a62cdca7bea829bd8d5d646e18508d34f9214f048ee003fed/kaldifeat-1.17.tar.gz (477 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: kaldifeat
Building wheel for kaldifeat (setup.py) ... -
error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [184 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/offline_feature.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/online_feature.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/fbank.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/mfcc.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/plp.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/init.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/spectrogram.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
running build_ext
Setting PYTHON_EXECUTABLE to /cfs/user/burkliu/dev/anaconda3/envs/k2_m/bin/python3.8
For fast compilation, run:
export KALDIFEAT_MAKE_ARGS="-j"; python setup.py install
build command is:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kaldifeat
Running setup.py clean for kaldifeat
Failed to build kaldifeat
Installing collected packages: kaldifeat
Running setup.py install for kaldifeat ... error
error: subprocess-exited-with-error
× Running setup.py install for kaldifeat did not run successfully.
│ exit code: 1
╰─> [188 lines of output]
running install
/cfs/user/burkliu/dev/anaconda3/envs/k2_m/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/offline_feature.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/online_feature.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/fbank.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/mfcc.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/plp.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/init.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
copying kaldifeat/python/kaldifeat/spectrogram.py -> build/lib.linux-x86_64-cpython-38/kaldifeat
running build_ext
Setting PYTHON_EXECUTABLE to /cfs/user/burkliu/dev/anaconda3/envs/k2_m/bin/python3.8
For fast compilation, run:
export KALDIFEAT_MAKE_ARGS="-j"; python setup.py install
build command is:
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.
╰─> kaldifeat
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
The text was updated successfully, but these errors were encountered: