D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Python GUI

 

what is in the  /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx 
directory? Not sure why it isn't called wxPython.

D

On Thursday 08 November 2007 10:54:29 Neil Winchurst wrote:
> On Wed, 7 Nov 2007 22:33:31 +0000
>
> Dave Berkeley <dcglug@xxxxxxxxxxxxx> wrote:
> > Alternatively
> >
> > python -c "import os;print os.path.dirname(os.__file__)"
> >
> > to see where the libraries are. Mine gives:
> >
> > /usr/lib/python2.5
> >
> > then use 'find' to see where the wxPython install is:
> >
> > find `python -c "import os;print os.path.dirname(os.__file__)"` | grep
> > wxPython$
> >
> > I get:
> >
> > /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wxPython
> > /usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wxPython
> >
> > If this path is not in the sys.path list below, you can add it by
> > creating a wx.pth file in site-packages pointing to the desired path.
> >
> > Is the wxPython installed with the correct python version? Perhaps you
> > have more than one Python installed?
> >
> > D
>
> I had a look for the libraries by searching the folders manually. I
> found
>
> /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx
>
> Note the name of the last folder. It is 'wx' and not 'wxPython'. I
> don't suppose that matters. But I am still told that the module wx is
> not found. I guess it must be missing from a path somewhere??
>
> Thanks
>
> Neil Winchurst

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html