[Invitation to open collaboration] Practice what you learn in the course and help animal researchers! 🐵

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:

  1. Re-create a completely fresh fastai2 conda environment using the instructions at
    https://forums.fast.ai/t/platform-local-server-ubuntu/65851?u=pomo

  2. 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.

  1. In any case, import torchaudio still fails with the same uninterpretable error message as above.

  2. conda uninstall torchaudio followed by pip install torchaudio installs torchaudio 0.4.0. Florian’s listing of versions provided a clue.

  3. 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.