You are not logged in.

#1 2009-01-28 17:02:05

rasha
Member
Registered: 2008-10-06
Posts: 3

wxPython python path or package broken or ?

Hi all;

I have just tried installing wxPython but I cannot get it to work ... even the first example from sciPy manual fails ... actually I cannot even load some modules from it...

This is what happens:

bash-3.2$ python
Python 2.6.1 (r261:67515, Dec  7 2008, 18:56:39)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from wxPython.wx import *
__main__:1: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained.  Please switch to the wx package as soon as possible.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/__init__.py", line 15, in <module>
    import _wx
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_wx.py", line 3, in <module>
    from _core import *
  File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_core.py", line 15, in <module>
    import wx._core
ImportError: No module named _core
>>>
bash-3.2$ pacman -Ql wxpython | grep _core
wxpython /usr/include/wx-2.8/wx/wxPython/i_files/_core_api.i
wxpython /usr/include/wx-2.8/wx/wxPython/i_files/_core_ex.py
wxpython /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py
wxpython /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.pyc
wxpython /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core_.so
wxpython /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_core.py
wxpython /usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wxPython/_core.pyc
bash-3.2$ pacman -Ql wxgtk | grep _core
wxgtk /usr/lib/libwx_gtk2u_core-2.8.so
wxgtk /usr/lib/libwx_gtk2u_core-2.8.so.0
wxgtk /usr/lib/libwx_gtk2u_core-2.8.so.0.5.0
bash-3.2$

As far as I can tell it I have all the dependencies ... Is this a python path problem? Or is thiere some problem with 2.6 python that I have missed?

I am on x86_64 Arch ...

thanks!

ranko

Offline

#2 2009-02-09 20:27:59

BoppreH
Member
Registered: 2009-02-04
Posts: 47

Re: wxPython python path or package broken or ?

Same problem here. Everything compiled and installed smoothly but _core is hiding from me too.

I've been trying to build this package for some days now to add the --enable-mediactrl option. Has anyone managed to make it work?

Tried this and this guides many times, no success.

Last edited by BoppreH (2009-02-09 21:10:12)

Offline

#3 2009-02-10 19:19:27

BoppreH
Member
Registered: 2009-02-04
Posts: 47

Re: wxPython python path or package broken or ?

Double post, but this is important.

I managed to make it work using ABS on this thread.

Offline

#4 2009-02-10 22:15:02

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: wxPython python path or package broken or ?

__main__:1: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained.  Please switch to the wx package as soon as possible.

The solution is right there in the error message.  The wxPython package no longer exists.  It has been renamed to just "wx".  So wherever you see wxPython, use "wx" instead.

Last edited by tom5760 (2009-02-10 22:15:32)

Offline

Board footer

Powered by FluxBB