-
Notifications
You must be signed in to change notification settings - Fork 742
Description
🐛 Bug
Unable to install torchaudio from git clone . Getting below error .
$python setup.py develop
DEBUG: False IS_WHEEL: False IS_CONDA: False
-- Building version 0.6.0a0+313f4f5
running develop
running egg_info
writing torchaudio.egg-info/PKG-INFO
writing dependency_links to torchaudio.egg-info/dependency_links.txt
writing requirements to torchaudio.egg-info/requires.txt
writing top-level names to torchaudio.egg-info/top_level.txt
reading manifest file 'torchaudio.egg-info/SOURCES.txt'
writing manifest file 'torchaudio.egg-info/SOURCES.txt'
running build_ext
building 'torchaudio._torchaudio' extension
gcc -pthread -B /miniconda/envs/python36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/audio -I/miniconda/envs/python36/lib/python3.6/site-packages/torch/include -I/miniconda/envs/python36/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/miniconda/envs/python36/lib/python3.6/site-packages/torch/include/TH -I/miniconda/envs/python36/lib/python3.6/site-packages/torch/include/THC -I/miniconda/envs/python36/include/python3.6m -c torchaudio/csrc/sox.cpp -o build/temp.linux-x86_64-3.6/torchaudio/csrc/sox.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_torchaudio -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from torchaudio/csrc/sox.cpp:1:0:
/root/audio/torchaudio/csrc/sox.h:1:10: fatal error: sox.h: No such file or directory
#include <sox.h>
^~~~~~~
compilation terminated.
To Reproduce
Steps to reproduce the behavior:
- git clone https://github.com/pytorch/audio.git
- python setup.py develop
Expected behavior
Torchaudio module should be installed
Environment
Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.0
OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: Could not collect
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.17.2
[pip] torch==1.4.0
[pip] torchvision==0.5.0
[conda] blas 1.0 mkl
[conda] cudatoolkit 10.0.130 0
[conda] mkl 2019.4 243
[conda] mkl-service 2.3.0 py36he904b0f_0
[conda] mkl_fft 1.0.14 py36ha843d7b_0
[conda] mkl_random 1.1.0 py36hd6b4f25_0
[conda] numpy 1.17.2 py36haad9e8e_0
[conda] numpy-base 1.17.2 py36hde5b4d6_0
[conda] pytorch 1.4.0 py3.6_cuda10.0.130_cudnn7.6.3_0 pytorch
[conda] torchvision 0.5.0 py36_cu100 pytorch
Additional context
I tried above in 2 different environments , But it resulted in same " #include <sox.h> " issue .
But some how my already existing clone of torchaudio master in develop mode with pytorch also in develop mode in different env , is able to compile .
I think keeping include <sox.h> inside sox.h is not needed ? Am i correct ?