[Lot of people have this issue] Porotype still does not load after installing the nightly build

JonathanSum: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/a/4/a49eae49fe891bbe769bbdf359342519e5e0f8d5.png" data-download-href="https://discuss.pytorch.org/uploads/default/a49eae49fe891bbe769bbdf359342519e5e0f8d5" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/a/4/a49eae49fe891bbe769bbdf359342519e5e0f8d5.png" alt="image" data-base62-sha1="nuihbGUpT7t0g90hiJzeaAVRLWB" width="621" height="500" data-dominant-color="383938"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">945×760 34 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p><aside class="onebox allowlistedgeneric" data-onebox-src="https://colab.research.google.com/drive/1ZnV7ADGdFLQ3Y3NaPIHL3SHvFg4hNZM4?usp=sharing">
  <header class="source">
      <img src="https://ssl.gstatic.com/colaboratory-static/common/ac0e6bae38aa2b5a52a4f6e10b43c43d/img/favicon.ico" class="site-icon" width="128" height="128">

      <a href="https://colab.research.google.com/drive/1ZnV7ADGdFLQ3Y3NaPIHL3SHvFg4hNZM4?usp=sharing" target="_blank" rel="noopener nofollow ugc">colab.research.google.com</a>
  </header>

  <article class="onebox-body">
    <img width="260" height="260" src="https://colab.research.google.com/img/colab_favicon_256px.png" class="thumbnail onebox-avatar">

<h3><a href="https://colab.research.google.com/drive/1ZnV7ADGdFLQ3Y3NaPIHL3SHvFg4hNZM4?usp=sharing" target="_blank" rel="noopener nofollow ugc">Google Colaboratory</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>Same unsolved issue:</p><aside class="onebox stackexchange" data-onebox-src="https://stackoverflow.com/questions/71102592/cannot-import-module-torchaudio-prototype">
  <header class="source">

      <a href="https://stackoverflow.com/questions/71102592/cannot-import-module-torchaudio-prototype" target="_blank" rel="noopener nofollow ugc">stackoverflow.com</a>
  </header>

  <article class="onebox-body">
      <a href="https://stackoverflow.com/users/10918067/eripsa" target="_blank" rel="noopener nofollow ugc">
    <img alt="Eripsa" src="https://i.stack.imgur.com/3VLTz.jpg?s=256&amp;g=1" class="thumbnail onebox-avatar" width="256" height="256">
  </a>

<h4>
  <a href="https://stackoverflow.com/questions/71102592/cannot-import-module-torchaudio-prototype" target="_blank" rel="noopener nofollow ugc">Cannot import module torchaudio.prototype</a>
</h4>

<div class="tags">
  <strong>pytorch, google-colaboratory, speech-to-text, ctc</strong>
</div>

<div class="date">
  asked by
  
  <a href="https://stackoverflow.com/users/10918067/eripsa" target="_blank" rel="noopener nofollow ugc">
    Eripsa
  </a>
  on <a href="https://stackoverflow.com/questions/71102592/cannot-import-module-torchaudio-prototype" target="_blank" rel="noopener nofollow ugc">04:19PM - 13 Feb 22 UTC</a>
</div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
<p>
Offical Colab [Same issue and not working]: <a href="https://colab.research.google.com/github/pytorch/audio/blob/gh-pages/main/_downloads/ade1a3c3b444796d2a34839c7ea75426/asr_inference_with_ctc_decoder_tutorial.ipynb" class="inline-onebox" rel="noopener nofollow ugc">Google Colab</a><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/f/6/f6de110931ce85bf3342ca20124809be3721ffae.png" data-download-href="https://discuss.pytorch.org/uploads/default/f6de110931ce85bf3342ca20124809be3721ffae" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/f/6/f6de110931ce85bf3342ca20124809be3721ffae_2_690x306.png" alt="image" data-base62-sha1="zdTes5a5IgYffRuMkNqCmOXONeC" width="690" height="306" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/f/6/f6de110931ce85bf3342ca20124809be3721ffae_2_690x306.png, https://discuss.pytorch.org/uploads/default/optimized/3X/f/6/f6de110931ce85bf3342ca20124809be3721ffae_2_1035x459.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/f/6/f6de110931ce85bf3342ca20124809be3721ffae.png 2x" data-dominant-color="2A2C33"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1122×499 31 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p>Same Github Issue[Unsolved] : <a href="https://github.com/pytorch/tutorials/issues/1840" class="inline-onebox" rel="noopener nofollow ugc">ASR Inference tutorial not working · Issue #2336 · pytorch/audio · GitHub</a></p>

ptrblck: <p>You might be missing the import as it works for me:</p>
<pre><code class="lang-python">&gt;&gt;&gt; import torchaudio.prototype
&gt;&gt;&gt; torchaudio.prototype
&lt;module 'torchaudio.prototype' from '/opt/conda/lib/python3.8/site-packages/torchaudio/prototype/__init__.py'&gt;
</code></pre>

JonathanSum: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/3/1/31e40c4b4c4a9841796e37165cf5b5d37ef00a10.png" data-download-href="https://discuss.pytorch.org/uploads/default/31e40c4b4c4a9841796e37165cf5b5d37ef00a10" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/3/1/31e40c4b4c4a9841796e37165cf5b5d37ef00a10.png" alt="image" data-base62-sha1="77lZaPQAGYCAeXGLOb3edj8Kj3q" width="629" height="500" data-dominant-color="3A3B3B"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">865×687 29.6 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p><aside class="onebox allowlistedgeneric" data-onebox-src="https://colab.research.google.com/drive/1ZnV7ADGdFLQ3Y3NaPIHL3SHvFg4hNZM4?usp=sharing">
  <header class="source">
      <img src="https://ssl.gstatic.com/colaboratory-static/common/ac0e6bae38aa2b5a52a4f6e10b43c43d/img/favicon.ico" class="site-icon" width="128" height="128">

      <a href="https://colab.research.google.com/drive/1ZnV7ADGdFLQ3Y3NaPIHL3SHvFg4hNZM4?usp=sharing" target="_blank" rel="noopener nofollow ugc">colab.research.google.com</a>
  </header>

  <article class="onebox-body">
    <img width="260" height="260" src="https://colab.research.google.com/img/colab_favicon_256px.png" class="thumbnail onebox-avatar">

<h3><a href="https://colab.research.google.com/drive/1ZnV7ADGdFLQ3Y3NaPIHL3SHvFg4hNZM4?usp=sharing" target="_blank" rel="noopener nofollow ugc">Google Colaboratory</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>If it is working on your colab, do you mind sharing it with me?</p>

ptrblck: <p>The import fails with a missing <code>libcudart.so</code>, so I guess you might have updated <code>torchaudio</code> for the wrong CUDA runtime in Colab.<br>
Check the CUDA runtime version via <code>torch.version.cuda</code> and update to the binaries using the same CUDA runtime.</p>

hwangjeff: <p>That OSError corresponding to the missing shared object file seems to imply a mismatch in torch and torchaudio versions.</p>
<p>The following works for me in the Colab notebook:</p>
<pre><code class="lang-auto">!pip3 uninstall -y torch torchvision torchaudio
!pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

from torchaudio.prototype.ctc_decoder import download_pretrained_files
</code></pre>
<p>Start from a fresh/restarted runtime, and run it at the very top.</p>

JonathanSum: <p>Thank you. It works.</p>