Error installing current nightly (dev20210122)

KFrank: <p>Hello Forum!</p>
<p>Conda install on linux of current nightly (1/22/21) is failing.  Is this just me,<br>
or is there a systematic issue?  (I was just able to install the corresponding<br>
stable, 1.7.1.)</p>
<p>Here is my install command:</p>
<pre><code class="lang-nohighlight">conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch-nightly
</code></pre>
<p>And here is the error message:</p>
<pre><code class="lang-nohighlight">Downloading and Extracting Packages
pytorch-1.8.0.dev202 | 873.5 MB  |                                         |   0%

InvalidArchiveError('Error with archive /home/user/miniconda3/pkgs/pytorch-1.8.0.dev20210122-py3.8_cuda11.0.221_cudnn8.0.5_0.tar.bz2.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nSeek failed')
</code></pre>
<p>I did try deleting the specified file, and reinstalling, but got the same error.</p>
<p>Thanks.</p>
<p>K. Frank</p>

ptrblck: <p>Hi KFrank,</p>
<p>thanks for reporting this issue. I seem to run into the same error and I guess the download is failing somehow.</p>
<pre><code class="lang-auto">Downloading and Extracting Packages
lz4-c-1.9.3          | 186 KB    | ######################################################################################################################################################################## | 100%
pytorch-1.8.0.dev202 | 873.5 MB  |                                                                                                                                                                          |   0%
torchaudio-0.8.0.dev | 14.2 MB   | ######################################################################################################################################################################## | 100%
torchvision-0.9.0.de | 26.2 MB   | ######################################################################################################################################################################## | 100%

InvalidArchiveError('Error with archive .../pytorch-1.8.0.dev20210122-py3.8_cuda11.0.221_cudnn8.0.5_0.tar.bz2.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:\n\nSeek failed')
</code></pre>
<p>The file itself is available <a href="https://anaconda.org/pytorch-nightly/pytorch/1.8.0.dev20210122/download/linux-64/pytorch-1.8.0.dev20210122-py3.9_cuda11.0.221_cudnn8.0.5_0.tar.bz2">here</a> and <code>wget</code> yields a slow download speed of <code>~500kB/s</code>.<br>
I’m unsure, if <code>conda</code> uses some timeouts or what the reason is.</p>
<p><a class="mention" href="/u/seemethere">@seemethere</a> do you have an idea and can reproduce it?</p>
<p>PS: I’m using a new conda env with Python=3.8.</p>
<p>UPDATE:<br>
downloading the file manually and installing it via <code>conda install ./pytorch-1.8.....</code> also fails with the same error, so it doesn’t seem to be related to a timeout.<br>
Unpacking the <code>.tar.bz</code> also works fine without an issue using <code>tar xvf</code>.</p>
<p>UPDATE2:<br>
It seems to be a known <a href="https://github.com/pytorch/pytorch/issues/49375">issue</a> in <code>conda-package-handling</code> with a potential <a href="https://github.com/pytorch/builder/pull/620">PR</a>.</p>

KFrank: <p>Hi <a class="mention" href="/u/ptrblck">@ptrblck</a>!</p>
<aside class="quote no-group" data-username="ptrblck" data-post="2" data-topic="109703" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/48/1823_2.png" class="avatar"> ptrblck:</div>
<blockquote>
<p>I seem to run into the same error and I guess the download is failing somehow.</p>
</blockquote>
</aside>
<p>Thanks for checking on this.  This is not urgent for me – I have a modestly<br>
older nightly build installed (also 1.8), if I want to play around.</p>
<p>I just like checking up on the nightly build from time to time.  You know …<br>
Just to make sure that the devs aren’t getting up to any shenanigans!</p>
<p>Best.</p>
<p>K. Frank</p>

ptrblck: <aside class="quote no-group" data-username="KFrank" data-post="3" data-topic="109703">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/k/ecb155/48.png" class="avatar"> KFrank:</div>
<blockquote>
<p>Just to make sure that the devs aren’t getting up to any shenanigans!</p>
</blockquote>
</aside>
<p>Hahaha, thanks for keeping an eye on this! <img src="https://discuss.pytorch.org/images/emoji/apple/wink.png?v=12" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p>
<p>We would have to take another look into this issue, as the nightlies are especially useful to test new features or debug new issues.</p>

tyoc213: <p>Same here I guess, but it only shows no progress in download?<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/0/e0d6dc996d22529b97a514578dec2a3fd94693de.png" data-download-href="https://discuss.pytorch.org/uploads/default/e0d6dc996d22529b97a514578dec2a3fd94693de" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/e/0/e0d6dc996d22529b97a514578dec2a3fd94693de_2_690x87.png" alt="image" data-base62-sha1="w51i8jbQHDfH1VJXB1xCmkaVi34" width="690" height="87" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/e/0/e0d6dc996d22529b97a514578dec2a3fd94693de_2_690x87.png, https://discuss.pytorch.org/uploads/default/optimized/3X/e/0/e0d6dc996d22529b97a514578dec2a3fd94693de_2_1035x130.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/e/0/e0d6dc996d22529b97a514578dec2a3fd94693de_2_1380x174.png 2x" data-dominant-color="050505"><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">1919×243 26.7 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>

KFrank: <p>Hi <a class="mention" href="/u/ptrblck">@ptrblck</a>!</p>
<aside class="quote no-group" data-username="ptrblck" data-post="2" data-topic="109703" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/48/1823_2.png" class="avatar"> ptrblck:</div>
<blockquote>
<p>I seem to run into the same error and I guess the download is failing somehow.</p>
</blockquote>
</aside>
<p>Just FYI:  I tried installing the nightly again (on 2/2/21).  It still fails, but with a<br>
different kind of error, maybe about my python version:</p>
<pre><code class="lang-plaintext">(goofy) user@server:~$ conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch-nightly
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.                             failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - olefile -&gt; python[version='&gt;=2.7,&lt;2.8.0a0|&gt;=3.5,&lt;3.6.0a0|&gt;=3.6,&lt;3.7.0a0|&gt;=3.7,&lt;3.8.0a0']
  - torchvision -&gt; python[version='&gt;=3.9,&lt;3.10.0a0']
  - typing_extensions -&gt; python[version='&gt;=3.9,&lt;3.10.0a0']
  - wheel -&gt; python[version='&gt;=3.9,&lt;3.10.0a0']

Your python: python=3.8
</code></pre>
<p>(I could post the entire list of conflicts, if that would be helpful.  But it’s long.)</p>
<p>Has the nightly now changed to requiring python 3.9?  The install instructions<br>
on the main <a href="http://pytorch.org" rel="noopener nofollow ugc">pytorch.org</a> web page seem to imply that 3.9 is not yet required:</p>
<pre><code class="lang-plaintext">NOTE: Python 3.9 users will need to add '-c=conda-forge' for installation
conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch-nightly
</code></pre>
<p>Again, this is not important to me – I’m just providing feedback.</p>
<p>Best.</p>
<p>K. Frank</p>

Natan_Semyonov: <p>I also encountered the same conflicts errors. there is a solution for nightly install?</p>
<p>Thanks.</p>

KFrank: <p>Hi Natan!</p>
<aside class="quote no-group" data-username="Natan_Semyonov" data-post="7" data-topic="109703" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/natan_semyonov/48/31450_2.png" class="avatar"> Natan_Semyonov:</div>
<blockquote>
<p>I also encountered the same conflicts errors. there is a solution for nightly install?</p>
</blockquote>
</aside>
<p>I do not understand how conda works, so I don’t know what I’m doing.</p>
<p>However …</p>
<p>I’ve tried from time to time to use conda to install the nightly build (on<br>
linux) and kept getting the “Solving environment: failed with initial<br>
frozen solve.” set of errors.</p>
<p>So I tried creating a new conda environment, and got the same error.<br>
Then I tried creating a new conda environment and <em>cleaning</em> it before<br>
trying the install (“conda clean -a”).</p>
<p>Then I ran the install:</p>
<pre><code class="lang-plaintext">conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch-nightly
</code></pre>
<p>This time the install succeeded:</p>
<pre><code class="lang-plaintext">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'1.9.0.dev20210213'
</code></pre>
<p>Why I would need to “clean” a newly-created environment to get the<br>
install to work, I have no idea.  But that’s what finally worked for me.</p>
<p>Best.</p>
<p>K. Frank</p>

marcus_hk: <p>I am still having this issue.  The download stalls during <code>conda install</code>.</p>
<p>.</p>

tyoc213: <p>For 3090 the current most up to date for 1.9 is install it with</p>
<p><code> pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu111/torch_nightly.html</code></p>
<p>Hope this is helpful.</p>