<p dir="auto">Hi,</p>
<p dir="auto">Whenever I try to import scipy I get this error regarding 'Type'.</p>
<p dir="auto">I am using Python 3.5.1</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy"><pre class="notranslate"><code class="notranslate">import scipy
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/Users/ashkij/Downloads/asd.py&quot;, line 1, in &lt;module&gt;
    import scipy
  File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/__init__.py&quot;, line 156, in &lt;module&gt;
    from . import fft
  File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/fft/__init__.py&quot;, line 76, in &lt;module&gt;
    from ._basic import (
  File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/fft/_basic.py&quot;, line 1, in &lt;module&gt;
    from scipy._lib.uarray import generate_multimethod, Dispatchable
  File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/uarray.py&quot;, line 27, in &lt;module&gt;
    from ._uarray import *
  File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/_uarray/__init__.py&quot;, line 114, in &lt;module&gt;
    from ._backend import *
  File &quot;/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/_uarray/_backend.py&quot;, line 1, in &lt;module&gt;
    from typing import (
ImportError: cannot import name 'Type'
[Finished in 0.4s with exit code 1]
[cmd: ['python3', '-u', '/Users/ashkij/Downloads/asd.py']]
[dir: /Users/ashkij/Downloads]
[path: /usr/bin:/bin:/usr/sbin:/sbin]"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/Users/ashkij/Downloads/asd.py", line 1, in &lt;module&gt;
    import scipy
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/__init__.py", line 156, in &lt;module&gt;
    from . import fft
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/fft/__init__.py", line 76, in &lt;module&gt;
    from ._basic import (
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/fft/_basic.py", line 1, in &lt;module&gt;
    from scipy._lib.uarray import generate_multimethod, Dispatchable
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/uarray.py", line 27, in &lt;module&gt;
    from ._uarray import *
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/_uarray/__init__.py", line 114, in &lt;module&gt;
    from ._backend import *
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/_uarray/_backend.py", line 1, in &lt;module&gt;
    from typing import (
ImportError: cannot import name 'Type'
[Finished in 0.4s with exit code 1]
[cmd: ['python3', '-u', '/Users/ashkij/Downloads/asd.py']]
[dir: /Users/ashkij/Downloads]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
</code></pre></div>
<p dir="auto">Import of scipy fails with an import error:</p>
<p dir="auto">'&gt;&gt;&gt; import scipy<br>
Traceback (most recent call last):<br>
File "&lt;pyshell#1&gt;", line 1, in <br>
import scipy<br>
File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_<em>init</em>_.py", line 156, in <br>
from . import fft<br>
File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy\fft_<em>init</em>_.py", line 76, in <br>
from ._basic import (<br>
File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy\fft_basic.py", line 1, in <br>
from scipy._lib.uarray import generate_multimethod, Dispatchable<br>
File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_lib\uarray.py", line 27, in <br>
from .<em>uarray import *<br>
File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_lib_uarray_<em>init</em></em>.py", line 114, in <br>
from ._backend import *<br>
File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_lib_uarray_backend.py", line 1, in <br>
from typing import (<br>
ImportError: cannot import name 'Type'</p>
<p dir="auto">This is (probably) caused by changes in the typing module in the early Python 3.5 development - some relevant parts were added after 3.5.1<br>
I saw that on master, declared compatibility is &gt;= Python 3.6<br>
But on tag 1.4.1, it states &gt;= 3.5, so it should still be working.<br>
From another issue, i think i understood uarray is a vendored dependency.</p>