My version of Pydev is 1.6.3.2010100513 org.python.pydev.feature.feature.group
After a recent update from python2.5 to python 2.6, I have performed \"Autoconfig\" of the interpreter. After doing so, any attempt to import numpy or any other module that imports numpy resulted in the following message:
Traceback (most recent call last):
File \"Q:\\temp\\test.py\", line 5, in <module>
from matplotlib import pylab as pl
File \"C:\\Python26\\lib\\site-packages\\matplotlib\\__init__.py\", line 135, in <module>
from matplotlib.rcsetup import (defaultParams,
File \"C:\\Python26\\lib\\site-packages\\matplotlib\\rcsetup.py\", line 19, in <module>
from matplotlib.colors import is_color_like
File \"C:\\Python26\\lib\\site-packages\\matplotlib\\colors.py\", line 52, in <module>
import numpy as np
File \"C:\\Python26\\lib\\site-packages\\numpy\\__init__.py\", line 132, in <module>
import add_newdocs
File \"C:\\Python26\\lib\\site-packages\\numpy\\add_newdocs.py\", line 9, in <module>
from lib import add_newdoc
File \"C:\\Python26\\lib\\site-packages\\numpy\\lib\\__init__.py\", line 4, in <module>
from type_check import *
File \"C:\\Python26\\lib\\site-packages\\numpy\\lib\\type_check.py\", line 8, in <module>
import numpy.core.numeric as _nx
File \"C:\\Python26\\lib\\site-packages\\numpy\\core\\__init__.py\", line 13, in <module>
import defchararray as char
File \"C:\\Python26\\lib\\site-packages\\numpy\\core\\defchararray.py\", line 23, in <module>
from numpy.core.multiarray import _vec_string
ImportError: cannot import name _vec_string
The solution was to remove C:\\Python26\\lib\\site-packages\\numpy-1.5.0-py2.6-win32.egg from the \"System PYTHONPATH\" list in the interpreter configuration window. I should mention that on my computer this *.egg path is a plane folder, rather than a single archive file
Adding C:\\Python26\\Lib\\site-packages\\numpy to the \"System PYTHONPATH\" list (instead of the *.egg mentioned above) also solves the problem.
When both the folders appear in the \"System PYTHONPATH\" list, the problem exists.
My eclipse version is Version: Helios Service Release 1
Build id: 20100917-0705
eclipse installation details