title: ImportError cannot import name
body: <p>I'm trying to run a unittest with the following imports:</p>
  
  <pre><code>from LinearProbeTable import Dictionary
  import unittest
  import string
  import random
  class TestDictionary(unittest.TestCase):
      (testing code)
  </code></pre>
  
  <p>In LinearProbeTable I import an excecption:</p>
  
  <pre><code>from Exceptions import DictFullError
  </code></pre>
  
  <p>The DictFullError is defined as (in Exceptions.py):</p>
  
  <pre><code>class DictFullError(Exception):
      pass
  </code></pre>
  
  <p>I get the following traceback when I try to run the test:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Applications/PyCharm Educational.app/Contents/helpers/pycharm/utrunner.py", line 135, in &lt;module&gt;
      module = loadSource(a[0])
    File "/Applications/PyCharm Educational.app/Contents/helpers/pycharm/utrunner.py", line 40, in loadSource
      module = imp.load_source(moduleName, fileName)
    File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py", line 171, in load_source
      module = methods.load()
    File "&lt;frozen importlib._bootstrap&gt;", line 1220, in load
    File "&lt;frozen importlib._bootstrap&gt;", line 1200, in _load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 1129, in _exec
    File "&lt;frozen importlib._bootstrap&gt;", line 1471, in exec_module
    File "&lt;frozen importlib._bootstrap&gt;", line 321, in _call_with_frames_removed
    File "/Users/andrewsalter/.../Prac 9/Testing/task1_autotest.py", line 1, in &lt;module&gt;
      from LinearProbeTable import Dictionary
    File "/Users/andrewsalter/.../Prac 9/LinearProbeTable.py", line 1, in &lt;module&gt;
      from Exceptions import DictFullError
  ImportError: cannot import name 'DictFullError'
  </code></pre>
  
  <p>I don't have a circular dependency, so I'm not sure what's happening.</p>
  
  <p>I'm trying to run this on my laptop, but it worked on my Desktop (I have it all hosted on google drive - I know I should be using Git but I haven't got around to it yet)</p>
  
  <p>EDIT: Could it be due to the fact LinearProbeTable.py is in the parent folder to the testing script?</p>