How can I deal with No module named edit.editor ?

Posted by Tomas Pajonk on Stack Overflow See other posts from Stack Overflow or by Tomas Pajonk
Published on 2009-07-02T06:03:45Z Indexed on 2010/05/22 2:00 UTC
Read the original article Hit count: 362

Filed under:
|

I am trying to follow the WingIDE tutorial on creating scripts in the IDE.

This following example scripts always throws an error:

import wingapi
def test_script(test_str):
  app = wingapi.gApplication
  v = "Product info is: " + str(app.GetProductInfo())
  v += "\nAnd you typed: %s" % test_str
  wingapi.gApplication.ShowMessageDialog("Test Message", v)

Traceback (most recent call last): File "C:\Wing-pi\Scripts\test.py", line 1, in import wingapi File "C:\Program Files\Development\Wing IDE 3.1\bin\wingapi.py", line 18, in import edit.editor ImportError: No module named edit.editor Process terminated with an exit code of 1

I am launching the script in the Wing IDE as suggested by someone, but I keep getting the same result.

© Stack Overflow or respective owner

Related posts about python

Related posts about wing-ide