Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > I messed up my wxPython install (Eclipse Configuration Issue)

Reply
Thread Tools

I messed up my wxPython install (Eclipse Configuration Issue)

 
 
blaine
Guest
Posts: n/a
 
      04-30-2008
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
 
Reply With Quote
 
 
 
 
Peter Otten
Guest
Posts: n/a
 
      04-30-2008
blaine wrote:

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


Rename your script wx.py to something that doesn't clash with the installed
modules, e.g. my_wx.py. And don't forget to remove

/Users/frikk/Documents/workspace/Bili_UI/src/wx.pyc # note the .pyc suffix

too.

Peter

> 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


 
Reply With Quote
 
 
 
 
Mike Driscoll
Guest
Posts: n/a
 
      04-30-2008


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


What does that mean? The wxPython group is almost always very quick to
respond with relevant answers.

As to your question, I think Peter is correct. Your wx.py and wx.pyc
files are masking the wx package.

Mike
 
Reply With Quote
 
blaine
Guest
Posts: n/a
 
      04-30-2008
On Apr 30, 1:14 pm, Mike Driscoll <kyoso...@gmail.com> wrote:
> blaine wrote:
> > The wxPython group is a bit stale compared to this group, so I'll give
> > it a shot

>
> What does that mean? The wxPython group is almost always very quick to
> respond with relevant answers.
>
> As to your question, I think Peter is correct. Your wx.py and wx.pyc
> files are masking the wx package.
>
> Mike


I didn't mean anything by it, I promise. This group is just amazing -
there are always very active topics and I get responses in no time.
The wxPython group I noticed only has had recent discussions a few
times in the past month, and their subscribers aren't as high as the
Python group.

That worked. You guys are awesome, thank you! I can't believe I named
that test script wx.py - duh. Thank you for your help!
Blaine
 
Reply With Quote
 
Mike Driscoll
Guest
Posts: n/a
 
      04-30-2008
On Apr 30, 1:09 pm, blaine <frik...@gmail.com> wrote:
> On Apr 30, 1:14 pm, Mike Driscoll <kyoso...@gmail.com> wrote:
>
> > blaine wrote:
> > > The wxPython group is a bit stale compared to this group, so I'll give
> > > it a shot

>
> > What does that mean? The wxPython group is almost always very quick to
> > respond with relevant answers.

>
> > As to your question, I think Peter is correct. Your wx.py and wx.pyc
> > files are masking the wx package.

>
> > Mike

>
> I didn't mean anything by it, I promise. This group is just amazing -
> there are always very active topics and I get responses in no time.
> The wxPython group I noticed only has had recent discussions a few
> times in the past month, and their subscribers aren't as high as the
> Python group.
>


That's weird...I subscribe to the wxPython group and I got 10 digests
on the 28th. Typically they send out 2-5 digests per day. Where are
you getting this information?

This looks up-to-date: http://lists.wxwidgets.org/pipermail/wxpython-users/

> That worked. You guys are awesome, thank you! I can't believe I named
> that test script wx.py - duh. Thank you for your help!
> Blaine


No problem. Glad it worked! That's always something to look for when
you get that type of error, btw.

Mike
 
Reply With Quote
 
Bjoern Schliessmann
Guest
Posts: n/a
 
      04-30-2008
blaine wrote:

> I didn't mean anything by it, I promise. This group is just
> amazing - there are always very active topics and I get responses
> in no time. The wxPython group I noticed only has had recent
> discussions a few times in the past month, and their subscribers
> aren't as high as the Python group.


There _is_ a difference between quality and volume. Also, in some
cases high quality goes along with low volume, as in others do high
volume and low quality.

Regards,


Björn

--
BOFH excuse #34:

(l)user error

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I totally messed up rubygems (deleted the sources gem) and now Ican't install any gem anymore kazaam Ruby 1 11-01-2007 07:28 PM
Messed up user login during wireless install Charles Kenyon Wireless Networking 2 04-15-2006 04:23 AM
wxPython - wx package (new style wxPython?) Logan Python 5 12-11-2003 04:12 PM
[PY GUI] interest function in python GUI(wxpython,pyqt) program.wxpython,pyqt ulysses Python 4 10-22-2003 03:28 PM
wxPython looses function "wxPython.wx.miscc" Anand Python 1 07-23-2003 01:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57