question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

torchaudio does not work

See original GitHub issue

Describe the current behavior The following code was working earlier with PyTorch 1.9,

!pip install torchaudio
import torchaudio

but after https://github.com/googlecolab/colabtools/issues/2372, it no longer works with the following error;

Collecting torchaudio
  Downloading torchaudio-0.10.0-cp37-cp37m-manylinux1_x86_64.whl (2.9 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.9 MB 9.3 MB/s 
Requirement already satisfied: torch==1.10.0 in /usr/local/lib/python3.7/dist-packages (from torchaudio) (1.10.0+cu111)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from torch==1.10.0->torchaudio) (3.10.0.2)
Installing collected packages: torchaudio
Successfully installed torchaudio-0.10.0
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-90af107c3418> in <module>()
      4 get_ipython().system('pip install torchaudio')
      5 
----> 6 import torchaudio
      7 print(torchaudio.__version__)

4 frames
/usr/lib/python3.7/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    362 
    363         if handle is None:
--> 364             self._handle = _dlopen(self._name, mode)
    365         else:
    366             self._handle = handle

OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory

Describe the expected behavior

a version of torchaudio 0.10 that matches with the pre-installed PyTorch should be installed and works.

What web browser you are using

I tried with Chrome and Safari

  • Safari (Version 15.1 (17612.3.2.1.1))
  • Chrome (Version 95.0.4638.69 (Official Build) (arm64))

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
mthrokcommented, Nov 12, 2021

Yeah, but the concern is that all the Colab notebooks with torchaudio from the past has stopped working.

2reactions
colaboratory-teamcommented, Nov 19, 2021

Fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to load torchaudio even after installing - Stack Overflow
I was stuck with the same error. Tried a lot of ways to install and use torchaudio. This was worked for me (after...
Read more >
torchaudio.backend - PyTorch
torchaudio.backend module provides implementations for audio file I/O ... When the function is not compiled by TorchScript, (e.g. torch.jit.script ), theΒ ...
Read more >
could not find a version that satisfies the requirement torch ...
You can either use pip (which didn't work in your case). pip install torchvision ... pip3 install torch==1.10.1 torchvision==0.10.2 torchaudio===0.10.1.
Read more >
Torchaudio - :: Anaconda.org
copied from malfet / torchaudio ... conda install. To install this package run one of the following: conda install -c pytorch torchaudio ......
Read more >
Installing and running pytorch on M1 GPUs (Apple metal/MPS)
I couldn't install mkl and mkl-include but was still able to build my binaries for pytorch, torchvision and torchaudio. I ignored this error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found