This is a discussion on wxPython within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hi, I installed pysoulseek, but I always get this message when starting it: Can not find wxPython modules. Either ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I installed pysoulseek, but I always get this message when starting it: Can not find wxPython modules. Either wxPython is not installed, or it's not in Python's module search path (it could be built for a different version of python interpreter for example). The current search path is ['/usr/bin', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', '/usr/lib/portage/pym', '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/gtk-2.0'] I'm sure wxPython is installed. But it is installed at /usr/lib/python2.3/site-packages/wxPython/. How can I add this to the Python's module search path? Greetz & Thx |
| |||
| Matata wrote: > Hi, > > I installed pysoulseek, but I always get this message when starting it: > Can not find wxPython modules. Either wxPython is not > installed, or it's not in Python's module search path (it could be built > for a different version of python interpreter for example). The current > search path is > ['/usr/bin', '/usr/lib/python23.zip', '/usr/lib/python2.3', > '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', > '/usr/lib/python2.3/lib-dynload', '/usr/lib/portage/pym', > '/usr/lib/python2.3/site-packages', > '/usr/lib/python2.3/site-packages/gtk-2.0'] > > I'm sure wxPython is installed. But it is installed > at /usr/lib/python2.3/site-packages/wxPython/. > > How can I add this to the Python's module search path? Re-emerge wxpython. //Aho |
| |||
| J.O. Aho wrote: > Matata wrote: >> Hi, >> >> I installed pysoulseek, but I always get this message when starting it: >> Can not find wxPython modules. Either wxPython is not >> installed, or it's not in Python's module search path (it could be built >> for a different version of python interpreter for example). The current >> search path is >> ['/usr/bin', '/usr/lib/python23.zip', '/usr/lib/python2.3', >> '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', >> '/usr/lib/python2.3/lib-dynload', '/usr/lib/portage/pym', >> '/usr/lib/python2.3/site-packages', >> '/usr/lib/python2.3/site-packages/gtk-2.0'] >> >> I'm sure wxPython is installed. But it is installed >> at /usr/lib/python2.3/site-packages/wxPython/. >> >> How can I add this to the Python's module search path? > > Re-emerge wxpython. That doesn't solve the problem... Other ideas? Thx for the reply! > > > //Aho |
| |||
| On 2005-04-04, Matata <askme@planet.nl> wrote: > J.O. Aho wrote: > >> Matata wrote: >>> Hi, >>> >>> I installed pysoulseek, but I always get this message when starting it: >>> Can not find wxPython modules. Either wxPython is not >>> installed, or it's not in Python's module search path (it could be built >>> for a different version of python interpreter for example). The current >>> search path is >>> ['/usr/bin', '/usr/lib/python23.zip', '/usr/lib/python2.3', >>> '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', >>> '/usr/lib/python2.3/lib-dynload', '/usr/lib/portage/pym', >>> '/usr/lib/python2.3/site-packages', >>> '/usr/lib/python2.3/site-packages/gtk-2.0'] >>> >>> I'm sure wxPython is installed. But it is installed >>> at /usr/lib/python2.3/site-packages/wxPython/. >>> >>> How can I add this to the Python's module search path? >> >> Re-emerge wxpython. > > That doesn't solve the problem... > Other ideas? > I have wxpython installed, and it has files in both /usr/lib/python2.3/site-packages/wxPython/ and /usr/lib/python2.3/site-packages/wx/ You should be able to do: > python Python 2.3.4 (#1, Feb 11 2005, 21:50:38) [GCC 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import wx >>> and not get any errors. If you get an error, hopefully that will point you in the right direction to fix it. It is also possible that the program you are installing is expecting a different version of wxpython. How is it importing wxpython? |
| ||||
| Lee Harr wrote: > On 2005-04-04, Matata <askme@planet.nl> wrote: >> J.O. Aho wrote: >> >>> Matata wrote: >>>> Hi, >>>> >>>> I installed pysoulseek, but I always get this message when starting it: >>>> Can not find wxPython modules. Either wxPython is not >>>> installed, or it's not in Python's module search path (it could be >>>> built for a different version of python interpreter for example). The >>>> current search path is >>>> ['/usr/bin', '/usr/lib/python23.zip', '/usr/lib/python2.3', >>>> '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', >>>> '/usr/lib/python2.3/lib-dynload', '/usr/lib/portage/pym', >>>> '/usr/lib/python2.3/site-packages', >>>> '/usr/lib/python2.3/site-packages/gtk-2.0'] >>>> >>>> I'm sure wxPython is installed. But it is installed >>>> at /usr/lib/python2.3/site-packages/wxPython/. >>>> >>>> How can I add this to the Python's module search path? >>> >>> Re-emerge wxpython. >> >> That doesn't solve the problem... >> Other ideas? >> > > > I have wxpython installed, and it has files in both > /usr/lib/python2.3/site-packages/wxPython/ and > /usr/lib/python2.3/site-packages/wx/ > > You should be able to do: > >> python > Python 2.3.4 (#1, Feb 11 2005, 21:50:38) > [GCC 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import wx >>>> This is what I get: Python 2.3.4 (#1, Feb 8 2005, 00:09:49) [GCC 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import wx Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/wx/__init__.py", line 45, in ? from wxPython import wx File "/usr/lib/python2.3/site-packages/wxPython/__init__.py", line 20, in ? import wxc ImportError: /usr/lib/libwx_gtk2-2.4.so: undefined symbol: _gtk_accel_group_detach >>> I reemerged wxGTK and everything works now. Thx !!! > > and not get any errors. If you get an error, hopefully > that will point you in the right direction to fix it. > > It is also possible that the program you are installing > is expecting a different version of wxpython. How is it > importing wxpython? |