wxPython problem

S

scottholdensmith

I'm a little confused. I installed wxPython on my Thinkpad T23, on
which I'm running Fedora Core 5. I did it using Yum and Yumex, and
everything installed fine. In fact, I now have PyShell and PyCrust in
my applications. Within those two apps I can use wx as a module. But
from the bash shell, when I use the same old Python interpreter, I
can't use the wx module. It's there, under
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/ (under that
directory there are several directories: wx, wxPython). I don't know
what to do now. Do I need to move the wx directory up directly under
the site-packages directory?

Please help, thanks...
 
D

Diez B. Roggisch

I'm a little confused. I installed wxPython on my Thinkpad T23, on
which I'm running Fedora Core 5. I did it using Yum and Yumex, and
everything installed fine. In fact, I now have PyShell and PyCrust in
my applications. Within those two apps I can use wx as a module. But
from the bash shell, when I use the same old Python interpreter, I
can't use the wx module. It's there, under
/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/ (under that
directory there are several directories: wx, wxPython). I don't know
what to do now. Do I need to move the wx directory up directly under
the site-packages directory?

Any chance that there is a python 2.3 interpreter running on the
command-line? Debian for example has python2.4 & python2.3, and the latter
is set as default. So try starting

python2.4


Diez
 
S

scottholdensmith

What I'm wondering is, perhaps it has something to do with the wx.pth
file? I can't seem to find anything in the documentation about what the
path should be, which file it should be pointing to.

Scott
 
B

Bill Maxwell

What I'm wondering is, perhaps it has something to do with the wx.pth
file? I can't seem to find anything in the documentation about what the
path should be, which file it should be pointing to.

Mine has this in it:

wx-2.6-msw-unicode

this points to a subdirectory of the site-packages directory. Mine
looks like this:

D:\Programs\Python\Lib\site-packages\wx-2.6-msw-unicode\wx
D:\Programs\Python\Lib\site-packages\wx-2.6-msw-unicode\wxPython

My understanding is that the wx.pth adds to the Python path. So, this
directory in your system:

site-packages/wx-2.6-gtk2-unicode

is searched automatically. From there, you need to import wx or
wxPython, then access using "wx." or "wxPython."

Regards,
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

wxPython problem 1
wxPython problem with freeze.py 0
wxPython 2.8.11.0 release 0
help 0
wxPython import error... 1
Learning to use wxPython 2
wxPython 0
wxPython libraries never detected 6

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top