title: PyBrain LSTM Example resultin in ValueError:Attempted relative import in non-package
body: <p>I'm trying to run an LSTM network for like two weeks now and I cant find a good framework to do so. I'm actually trying with PyBrain which has this directory hierarchy:</p>
  
  <pre><code>pybrain/
      ...
      examples/
          ...
          supervised/
              ...
              neuralnets+svm/
                  ...
                  example_rnn.py    
  </code></pre>
  
  <p>but I'm getting this relative import error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "example_fnn.py", line 14, in &lt;module&gt;
  from .datasets import generateGridData, generateClassificationData, plotData
  ValueError: Attempted relative import in non-package
  </code></pre>
  
  <p>when make the call like this:</p>
  
  <pre><code>Lucass-MacBook-Pro:neuralnets+svm lucaslourenco$ python example_fnn.py 
  </code></pre>
  
  <p>some of the answers about this same error say that I should make the call from the parent directory using the <code>-m</code> flag, like:</p>
  
  <pre><code>Lucass-MacBook-Pro:pybrain lucaslourenco$ python -m examples.supervised.neuralnets+svm.example_fnn
  </code></pre>
  
  <p>When I do it, I get this:</p>
  
  <pre><code>/Users/lucaslourenco/anaconda/bin/python: No module named examples.supervised.neuralnets+svm
  </code></pre>
  
  <ul>
  <li>Am I just doing a simple mistake on the <code>-m</code> flag call? </li>
  <li>There is a simple way of correcting this without making changes on the framework(you know how bad can be the results of modifying a framework)? </li>
  <li>There are other options of frameworks to run an LSTM example in OSX or W7, preferable in python?</li>
  </ul>
  
  <p>Thank you!</p>