Error while importing torchaudio

DarQ: <h2>
<a name="bug-1" class="anchor" href="#bug-1"></a><img src="https://discuss.pytorch.org/images/emoji/apple/bug.png?v=9" title=":bug:" class="emoji" alt=":bug:"> Bug</h2>
<p>I’m getting this error:<br>
<code>AttributeError: module 'torchaudio._internal.module_utils' has no attribute 'requires_sox'</code><br>
while importing torchaudio</p>
<h2>
<a name="to-reproduce-2" class="anchor" href="#to-reproduce-2"></a>To Reproduce</h2>
<p>I’m using a kaggle notebook<br>
just executed these lines:</p>
<pre><code class="lang-python">!pip install --upgrade torch
!pip install --upgrade torchaudio
import torchaudio
</code></pre>
<h2>
<a name="environment-3" class="anchor" href="#environment-3"></a>Environment</h2>
<p>(collect_env.py output)<br>
PyTorch version: 1.9.0+cu102<br>
Is debug build: False<br>
CUDA used to build PyTorch: 10.2<br>
ROCM used to build PyTorch: N/A</p>
<p>OS: Ubuntu 18.04.5 LTS (x86_64)<br>
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br>
Clang version: Could not collect<br>
CMake version: version 3.10.2<br>
Libc version: glibc-2.10</p>
<p>Python version: 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 16:07:37)  [GCC 9.3.0] (64-bit runtime)<br>
Python platform: Linux-5.4.120±x86_64-with-debian-buster-sid<br>
Is CUDA available: True<br>
CUDA runtime version: 11.0.221<br>
GPU models and configuration: GPU 0: Tesla P100-PCIE-16GB<br>
Nvidia driver version: 450.119.04<br>
cuDNN version: Probably one of the following:<br>
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.4<br>
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.4<br>
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.4<br>
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.4<br>
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.4<br>
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.4<br>
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.4<br>
HIP runtime version: N/A<br>
MIOpen runtime version: N/A</p>
<p>Versions of relevant libraries:<br>
[pip3] msgpack-numpy==0.4.7.1<br>
[pip3] numpy==1.19.5<br>
[pip3] pytorch-ignite==0.4.5<br>
[pip3] pytorch-lightning==1.3.8<br>
[pip3] torch==1.9.0<br>
[pip3] torchaudio==0.9.0<br>
[pip3] torchmetrics==0.4.1<br>
[pip3] torchtext==0.8.0a0+cd6902d<br>
[pip3] torchvision==0.8.1<br>
[conda] blas                      1.0                         mkl<br>
[conda] cudatoolkit               11.0.221             h6bb024c_0    nvidia<br>
[conda] libblas                   3.9.0                     9_mkl    conda-forge<br>
[conda] libcblas                  3.9.0                     9_mkl    conda-forge<br>
[conda] liblapack                 3.9.0                     9_mkl    conda-forge<br>
[conda] liblapacke                3.9.0                     9_mkl    conda-forge<br>
[conda] mkl                       2021.2.0           h06a4308_296<br>
[conda] msgpack-numpy             0.4.7.1                  pypi_0    pypi<br>
[conda] numpy                     1.19.5           py37haa41c4c_1    conda-forge<br>
[conda] pytorch-ignite            0.4.5                    pypi_0    pypi<br>
[conda] pytorch-lightning         1.3.8                    pypi_0    pypi<br>
[conda] torch                     1.9.0                    pypi_0    pypi<br>
[conda] torchaudio                0.9.0                    pypi_0    pypi<br>
[conda] torchmetrics              0.4.1                    pypi_0    pypi<br>
[conda] torchtext                 0.8.0                      py37    pytorch<br>
[conda] torchvision               0.8.1                py37_cu110    pytorch</p>