title: AttributeError: module '' has no attribute '__path__'
body: <p>I'm having a problem which I have no idea how to further debug.</p>
  
  <p>I have a project with different purposes, making use of Python 3 among other things.
  I created a Python package named <strong><em>package</em></strong>.
  The package's top-directory is located inside <strong><em>myproject/python/</em></strong>.
  In the filesystem, it has the following structure:</p>
  
  <pre><code>- /home/myuser/myproject/python
  --- package/
  ------ __init__.py
  ------ myutil.py
  ------ sub_package/
  ---------- __init__.py
  ---------- sub_sub_package/
  -------------- __init__.py
  -------------- myscript.py
  </code></pre>
  
  <p>All <strong>__init__.py</strong> files are blank, with the exception of the root one (<strong>package/__init__.py</strong>), which has the following contents:</p>
  
  <pre><code>from . import myutil
  </code></pre>
  
  <p>So far so good.
  The file <strong>myscript.py</strong> is actually a Python script to run directly.
  As it resides inside a package, I am executing it as such:</p>
  
  <pre><code>cd /home/myuser/myproject/python
  python -m package.sub_package.sub_sub_package.myscript
  </code></pre>
  
  <p>Now the weird part. The script works as expected.
  However, after the program finishes, I get the following message:</p>
  
  <pre><code>/usr/bin/python3: Error while finding module specification for 
  'package.sub_package.sub_sub_package.myscript.py'
  (AttributeError: module 'package.sub_package.sub_sub_package.myscript' 
  has no attribute '__path__')
  </code></pre>
  
  <p>I have been searching online but to no avail.
  Can't figure out what is causing this message and how to solve it.
  I am guessing it is some obscure behavior of Python 3's import handling, but have no clue.
  Any help is greatly appreciated.</p>