Import pretrained models fails

Tamme_Wollweber: <p>I am not able to run the following lines:</p>
<p><code>import torch, torchvision</code><br>
<code>model = torchvision.models.resnet18(pretrained=True)</code></p>
<p>The error is the following:</p>
<pre><code class="lang-auto">Traceback (most recent call last):
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/terminal/ptutils.py", line 113, in get_completions
    yield from self._get_completions(body, offset, cursor_position, self.ipy_completer)
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/terminal/ptutils.py", line 129, in _get_completions
    for c in completions:
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/core/completer.py", line 438, in _deduplicate_completions
    completions = list(completions)
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/core/completer.py", line 1818, in completions
    for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000):
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/core/completer.py", line 1861, in _completions
    matched_text, matches, matches_origin, jedi_matches = self._complete(
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete
    completions = self._jedi_matches(
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/IPython/core/completer.py", line 1373, in _jedi_matches
    interpreter = jedi.Interpreter(
  File "/home/tamme/anaconda3/envs/deep/lib/python3.8/site-packages/jedi/api/__init__.py", line 725, in __init__
    super().__init__(code, environment=environment,
TypeError: __init__() got an unexpected keyword argument 'column'
</code></pre>
<p>Any idea what I am doing wrong?<br>
Thank you!</p>

ptrblck: <p>I haven’t seen this issue before and it seems that <code>IPython</code> and/or <code>jedi</code> raises it.<br>
Could you verify that the minimal code snippet is running fine in the terminal?</p>

Tamme_Wollweber: <p>Ah yes, it works without ipython, but thats still annoying…<br>
Anyway, thanks already!</p>

ptrblck: <p>It seems the be related to this issue:</p><aside class="onebox githubissue">
  <header class="source">
      <a href="https://github.com/ipython/ipython/issues/12740" target="_blank" rel="noopener">github.com/ipython/ipython</a>
  </header>
  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue">
	  <svg width="60" height="60" class="github-icon" viewBox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/ipython/ipython/issues/12740" target="_blank" rel="noopener">Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2020-12-25" data-time="12:54:33" data-timezone="UTC">12:54PM - 25 Dec 20 UTC</span>
      </div>


      <div class="user">
        <a href="https://github.com/DaniilAnichin" target="_blank" rel="noopener">
          <img alt="DaniilAnichin" src="https://avatars.githubusercontent.com/u/11097395?v=4" class="onebox-avatar-inline" width="20" height="20">
          DaniilAnichin
        </a>
      </div>
    </div>
  </div>
</div>

<div class="github-row">
  <p class="github-content">Relevant traceback reads as follows:
 File "../venv/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete
 completions = self._jedi_matches(
 File "../venv/lib/python3.8/site-packages/IPython/core/completer.py", line 1373, in _jedi_matches
 interpreter...</p>
</div>

<div class="labels">
</div>

  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>

<p>Try to downgrade <code>jedi</code> to <code>0.17.2</code> via:</p>
<pre><code class="lang-python">pip install jedi==0.17.2
</code></pre>

Tamme_Wollweber: <p>Yes, great, now it works fine. Thanks a lot!</p>