On Tue, Dec 20, 2011 at 3:16 PM, Jack Bryan <dtustud...@hotmail.com> wrote:
> Hi, > I have set up PYTHONPATH : > > >>> sys.path > ['', '/mypath/numpy/lib/python2.7/site-packages', '/ > mypath/python272/lib/python27.zip', > '/ mypath/python272/lib/python2.7', '/ > mypath/python272/lib/python2.7/plat-linux2', > '/ mypath /python272/lib/python2.7/lib-tk', '/ > mypath/python272/lib/python2.7/lib-old', > '/ mypath /python272/lib/python2.7/lib-dynload', '/ mypath > /python272/lib/python2.7/site-packages'] > > But still errors: > > >>> import numpy > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "numpy/__init__.py", line 153, in <module> > import polynomial > File "numpy/polynomial/__init__.py", line 18, in <module> > from polynomial import Polynomial > File "numpy/polynomial/polynomial.py", line 60, in <module> > from polytemplate import polytemplate > ImportError: cannot import name polytemplate > > Any help is appreciated. > > Strange. Is polytemplate.py present in <your installation>/lib/python2.7/site-packages/numpy/polynomial/ ? You might try deleting the current numpy installation and build directory, then rebuilding and reinstalling. But I suspect something strange is going on with the paths. BTW, it is usual on the list to bottom post rather than top post, that is, your reply should be located under the previous replies. <snip> Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion