The following forum message was posted by prof7bit at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3534308:

just for the record and for the search engines:

I was fighting with the same problem and also initially found no solution (but
now it works, see below).

While searching for solutions I have found a lot of threads here and elsewhere
dealing with this problem, many of them suggest:
* removing and re-adding the python interpreter
* adding wx and wxPython to the forced builtins
* check that the pythonpath is correct

Here is now what happened to me:

I recently decided working on an old wxPython application again after doing
nothing python related for nearly 2 years and therefoe I installed a fresh new
copy of eclipse Helios and the latest release of PyDev

Although it is now already January 2011 I still have Ubuntu Hardy which has
Python 2.5 and wxpython 2.8

The same problem as described above and in the many other threads occurred.
Every import in my project was recognized by PyDev except anything that had
to do with wx. I had hundreds of lines marked as error.

I then tried the following:
* removed and re-added the python interpreter (no success)
* added all subdirectories of the wxpython directory individually to the python
path (no success)
* tried the same in the project settings / external libraries (no success)
* made sure that wx is in the "forced builtins" list (it is there already by
default, so I did nothing -> no success)
* removed the python nature from the project and re-added it (no success)
* closed / opened / refreshed the project, closed and re-started eclipse (no
success)

I was at the point of giving up now.

* Then I _REMOVED_ wx from the forced builtin list and IMMEDIATELY it started
all working like a charm!

So it seems there is no reason why wx should be on the forced builtins list,
obviously it can all work without it being there and putting it there might
do more harm than good! Maybe it should not be there by default. I don't know
exactly what this "forced builtin" really does internally but it seems at least
on my machine (which has a pretty standard configuration) it seems to do the
wrong thing.


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to