title: Why is Aptana/Pydev showing "undefined variable" errors for "print" and "__name__" in my helloworld python code?
body: <p>Here is a screenshot: <a href="http://i.imgur.com/uAameOq.png" rel="nofollow">http://i.imgur.com/uAameOq.png</a></p>
  
  <p>This is the first python program I made from scratch in Aptana. I literally copied this code from an exercise file. I set it to python 3.4 and grammar version 3.0. Why am I getting undefined variable errors for these most basic words? </p>
  
  <p>Also, when I change the grammar and Interpreter both to version 2.7 the "print" error disappears but the <strong>name</strong> error still remains. Something is not right here. </p>
  
  <pre><code>def main():
      print("Hello World")
  
  if __name__ == "__main__": main()
  </code></pre>
  
  <p>Edit: Also, if I simply open the .py file outside of the project these errors don't appear. So it seems something to do with project creation? </p>