title: Python 3 - ImportError: cannot import name
body: <p>I have a folder:</p>
  <pre><code>python_scripts/test_import/
  |-- __init__.py
  |-- m1.py
  `-- m2.py
  </code></pre>
  <p>Content of <code>m1.py</code>:</p>
  <pre><code>a=3
  </code></pre>
  <p>Content of <code>m2.py</code>:</p>
  <pre><code>from . import m1
  
  print(m1.a)
  </code></pre>
  <p>When I try to execute <code>m2.py</code>, I get the following error:</p>
  <pre><code># python3 python_scripts/test_import/m2.py
  Traceback (most recent call last):
    File &quot;python_scripts/test_import/m2.py&quot;, line 1, in &lt;module&gt;
      from . import m1
  ImportError: cannot import name 'm1'
  </code></pre>
  <p>But if I change import in <code>m2.py</code> to this:</p>
  <pre><code>import m1
  
  print(m1.a)
  </code></pre>
  <p>then I see no errors and result of execution is expected:</p>
  <pre><code>3
  </code></pre>
  <p><strong>Question:</strong>
  Why relative import with dot doesn't work here?</p>