title: Import Error Python 2.7. No module named:
body: <p>I'm receiving an ImportError when running my main script which is related to another script trying to import one of my modules and I'm unsure how to fix it. The layout of the files in relation to the software is as follows (folder names etc are fictional): </p>
  
  <pre><code>poetry_generator/main.py
  
  poetry_generator/architecture/experts/poetryexperts/sentence.py
  
  poetry_generator/structures/word.py
  </code></pre>
  
  <p>Main.py is what I'm running, and the problem seems to arise from sentence.py trying to import word module and failing. </p>
  
  <p>Currently in sentence.py I have:</p>
  
  <pre><code>from poetry_generator.structures.word import Word
  </code></pre>
  
  <p>Word is the name of the Class in word.py: Class Word(object). But I'm receiving the following error: <code>ImportError: No module named poetry_generator.structures.word</code></p>
  
  <p>Does anyone have any idea what is wrong? I have been readinga roudn similar questions already asked but nothing has worked so far. Thanks in advance for any help. </p>
  
  <p>Full console text reagarding error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "main.py", line 1, in &lt;module&gt;
      from architecture.control_component import ControlComponent
    File "/home/lee/Downloads/PoEmo-master/poetry_generator/architecture/control_component.py", line 4, in &lt;module&gt;
      from experts.poem_making_experts import exclamation_expert
    File "/home/lee/Downloads/PoEmo-master/poetry_generator/architecture/experts/poem_making_experts/exclamation_expert.py", line 5, in &lt;module&gt;
      from poetry_generator.structures.word import Word
  ImportError: No module named poetry_generator.structures.word
  </code></pre>