ValueError is thrown when debugging python code from _speedups.py#__bootstrap__()

Oct 8, 2013 at 6:51 PM
Edited Oct 8, 2013 at 6:52 PM
I get a ValueError thrown with a message saying "'c:\python27\lib\site-packages\pip-1.4.1-py2.7.egg' is not in list" every time when I start debugging my python application.

Stack trace looks like this:
insert_on in pkg_resources line 2621    Python
activate in pkg_resources line 2511 Python
<lambda> in pkg_resources line 3027 Python
subscribe in pkg_resources line 741 Python
pkg_resources module line 3027  Python
__bootstrap__ in _speedups line 3   Python
_speedups module line 7 Python
   ....
When I continue execution, I get "'c:\python27\lib\site-packages' is not in list" for three more times, and then debugging actually start :-)

Any way to avoid getting this error?