472,368 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,368 software developers and data experts.

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
Jun 27 '08 #1
5 4332
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
Jun 27 '08 #2


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
Jun 27 '08 #3
On Apr 30, 1:14 pm, Mike Driscoll <kyoso...@gmail.comwrote:
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
Jun 27 '08 #4
On Apr 30, 1:09 pm, blaine <frik...@gmail.comwrote:
On Apr 30, 1:14 pm, Mike Driscoll <kyoso...@gmail.comwrote:
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
Jun 27 '08 #5
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

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: BJörn Lindqvist | last post by:
See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard...
13
by: Peter Maas | last post by:
Recently I replaced Win2k with Linux on my desktop computer. Using mostly multi-platform software I thought this would be easy. It was not as easy as expected getting wxPython to work. There seemed...
1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
2
by: Grzegorz | last post by:
Hello, I'm using eclipse with pydev plugin, I'm working on a program using wxpython . When I'm executing that application standard error output does not show in eclipse console window - wxpython...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: Husey | last post by:
Hi, I am trying to create a very simple EJB project which requires me to create a new jboss configuration in Eclipse. I keep getting the error message "An error has occurred. See error log for...
4
by: king kikapu | last post by:
Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open the Debug...
8
by: Sean DiZazzo | last post by:
Is there something special you have to do to get a wxPython app to run remotely under xwindows? My Tkinter apps always automatically work that way, so I was surprised to even be confronted with...
4
by: leon.domingo | last post by:
Hello, I've installed Eclipse, Python 2.5 and wxPython on Ubuntu 8.04. The problem is that I can't get code completion for wx module. I don't know if it occurs the same with other libraries...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.