I messed up my wxPython install (Eclipse Configuration Issue)



The wxPython group is a bit stale compared to this group, so I'll give
it a shot :)

(READ: Originally when I started htis post, Python 2.5 at the shell
did not work (identical behavior to eclipse). I'm not sure why, but
it has since worked fine with no problems. Not sure whats going on
there... I didn't change anything. Anyways...)

Ok so I am having this problem. I am using OS X 10.4. I use
MacPython and installed wxPython a few months back, and it worked
great. Well I haven't done any wx development lately, and now that
I'm getting back into it I can't get wx to work properly. I'm using
Eclipse, too.

Python 2.5 at Shell: works just fine
$ python
import wx

OLD projects in Eclipse: import wx works fine
NEW projects in Eclipse (since I have started working wx again after a
few months):
import wx
/Users/frikk/Documents/workspace/Bili_UI/src/wx.py:3:
DeprecationWarning: The wxPython compatibility package is no longer
automatically generated or actively maintained. Please switch to the
wx package as soon as possible.
from wxPython.wx import *
Traceback (most recent call last):
File "/Users/frikk/Documents/workspace/Bili_UI/src/nokia_fkscrn.py",
line 37, in <module>
import wx
File "/Users/frikk/Documents/workspace/Bili_UI/src/wx.py", line 3,
in <module>
from wxPython.wx import *
File "//Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/wx-2.8-mac-ansi/wxPython/__init__.py", line
15, in <module>
import _wx
File "//Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/wx-2.8-mac-ansi/wxPython/_wx.py", line 3, in
<module>
from _core import *
File "//Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/wx-2.8-mac-ansi/wxPython/_core.py", line 15,
in <module>
import wx._core
ImportError: No module named _core

I feel like this may be a path issue? Any ideas on what else to look
for? Both sys.path statements are the same, and I'm not sure what else
I could be causing it - some configuration perhaps in Eclipse that is
not being set correctly for newer projects? I also choose 'Python 2.5'
from in eclipse - and it points to the same location for both
projects.. Path:
import sys
sys.path

['', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
site-packages/setuptools-0.6c8-py2.5.egg', '/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/site-packages/
Pygments-0.9-
py2.5.egg', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python25.zip', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/plat-darwin', '/Library/Frameworks/Python.framework/
Versions/
2.5/lib/python2.5/plat-mac', '/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/Library/
Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-
dynload', '/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages', '/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi']

Any suggestions would be great - its probably something pretty
minor... Thanks!

Blaine
.



Relevant Pages

  • Re: The IDE question
    ... > Commercial or B) Written for either an older version of python or ... > wxPython or C) Are syntax highlighting in eclipse and that's it. ...
    (comp.lang.python)
  • ANNOUNCE: wxPython 2.5.4.1
    ... I'm pleased to announce the 2.5.4.1 release of wxPython, ... wxPython is a GUI toolkit for the Python programming language. ... GetRect accessor to give the position of the item on the parent window. ... OGL patch from Shane Holloway: ...
    (comp.lang.python)
  • ANN: wxPython 2.6.0.1
    ... I'm pleased to announce the 2.6.0.1 release of wxPython, ... consists mostly of bug fixes made since the 2.6.0.0 release a month ... wxPython is a GUI toolkit for the Python programming language. ... in case there is more than one adjustment for a window in a single DeferWindowPos set, then the pending values can be used for defaults instead of current values. ...
    (comp.lang.python)
  • ANN: wxPython 2.6.3.3
    ... The 2.6.3.3 release of wxPython is now available for download at ... and also includes builds for Python 2.5 on Mac and also Windows. ... wxPython is a GUI toolkit for the Python programming language. ... cases the native widgets are used on each platform. ...
    (comp.lang.python)
  • ANN: wxPython 2.6.3.3
    ... The 2.6.3.3 release of wxPython is now available for download at ... and also includes builds for Python 2.5 on Mac and also Windows. ... wxPython is a GUI toolkit for the Python programming language. ... cases the native widgets are used on each platform. ...
    (comp.lang.python.announce)