import error

I am using python 2.6 for windows.... and i recently installed
wxPython2.8-win32-unicode-py26 to work on gui programming.

I ececuted the following code

import wx
app = wx.App()
win = wx.Frame(None)
win.Show()
app.MainLoop()

I got the following error

Traceback (most recent call last):
  File "C:\Python26\tuna.py", line 1, in <module>
    import wx
ImportError: No module named wx

I have the wxpython installed in the following folder python26---->Lib---->
site-packages

please help me out

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/import-error-tp5715576.html
Sent from the wxPython-users mailing list archive at Nabble.com.

Hi,

I am using python 2.6 for windows.... and i recently installed
wxPython2.8-win32-unicode-py26 to work on gui programming.

Did you leave the default options in wxPython installer?
Did you get any errors during the install?

I ececuted the following code

import wx
app = wx.App()
win = wx.Frame(None)
win.Show()
app.MainLoop()

I got the following error

Traceback (most recent call last):
   File "C:\Python26\tuna.py", line 1, in <module>
     import wx
ImportError: No module named wx

I would recommend to put your ".py" files elsewhere and not under the Python26 folder, maybe something like "c:\dev" or whatever.

I have the wxpython installed in the following folder python26---->Lib---->
site-packages

that is in C:\Python26, correct? And your Python installation is a 32bit one?

Werner

···

On 05/01/2013 21:44, uday bharath wrote: