Python: 'import node.py' raises "No module named py"-error
Question: I have a file main.py like this:

    
    
    import node.py
    [my code...]
    

and a node.py like this:

    
    
    [more of my code]
    

When executing main.py, I get this error:

    
    
      File "/home/loldrup/repo/trunk/src/src/main.py", line 2, in <module>
        import node.py
    ImportError: No module named py
    


Answer: You should just say `import node`. The `.` in the name makes python think you
want to load a submodule named `py` of the package`node`, hence the error. All
of this is explained in detail in the [Python
Tutorial](http://docs.python.org/tutorial/modules.html).

