Seems as though you have installed a file named editor.py onto your path.... don't do that, it prevents the real editor from being imported.