Unix Technical Forum

wxPython

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 09:39 AM
Matata
 
Posts: n/a
Default wxPython

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 09:39 AM
J.O. Aho
 
Posts: n/a
Default Re: wxPython

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 09:39 AM
Matata
 
Posts: n/a
Default Re: wxPython

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 09:39 AM
Lee Harr
 
Posts: n/a
Default Re: wxPython

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 09:39 AM
Matata
 
Posts: n/a
Default Re: 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?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com