Hi all,
I finally got torchaudio to import, after spending yet another whole afternoon on these unending configuration errors. I am pissed off that I waste half my waking hours reading obtuse, contradictory stack overflow answers, installing and uninstalling in every order, trying older and newer versions, rebuilding environments, etc.
Here are the steps that worked for me. YMMV:
-
Re-create a completely fresh fastai2 conda environment using the instructions at
https://forums.fast.ai/t/platform-local-server-ubuntu/65851?u=pomo -
The notebook did not know about torchaudio, so I found it on the anaconda.org website. That page states that
conda install -c pytorch torchaudio
will install torchaudio 0.4.0. Instead it actually installs torchaudio 0.2.0.
Can anyone in the Universe explain why? I want to see if my head explodes.
-
In any case,
import torchaudio
still fails with the same uninterpretable error message as above. -
conda uninstall torchaudio
followed bypip install torchaudio
installs torchaudio 0.4.0. Florian’s listing of versions provided a clue. -
import torchaudio
now works inside a Jupyter notebook. Yay!
One more question in addition to the head-exploding one. What is the best way to keep my fastai2 conda environment up to date? I don’t need the latest development versions, just the current master release that mostly works. I’ve been using pip install fastai2 fastcore --upgrade
. Is it right?
Thanks for listening and for helping.