<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi, <div>I have set up <span style="font-size: 10pt; ">PYTHONPATH</span><span style="font-size: 10pt; "> :</span></div><div><span style="font-size: 10pt; "><br></span></div><div><div>>>> sys.path</div><div>['', '/<span style="font-size: 10pt; ">mypath</span><span style="font-size: 10pt; ">/numpy/lib/python2.7/site-packages', '/</span>
mypath<span style="font-size: 10pt; ">/python272/lib/python27.zip', '/</span>
mypath<span style="font-size: 10pt; ">/python272/lib/python2.7', '/</span>
mypath<span style="font-size: 10pt; ">/python272/lib/python2.7/plat-linux2', '/</span>
mypath <span style="font-size: 10pt; ">/python272/lib/python2.7/lib-tk', '/</span>
mypath<span style="font-size: 10pt; ">/python272/lib/python2.7/lib-old', '/</span>
mypath <span style="font-size: 10pt; ">/python272/lib/python2.7/lib-dynload', '/</span>
mypath<span style="font-size: 10pt; ">/python272/lib/python2.7/site-packages']</span></div><div><br></div><div>But still errors: </div><div><br></div><div><div>>>> import numpy</div><div>Traceback (most recent call last):</div><div>  File "<stdin>", line 1, in <module></div><div>  File "numpy/__init__.py", line 153, in <module></div><div>    import polynomial</div><div>  File "numpy/polynomial/__init__.py", line 18, in <module></div><div>    from polynomial import Polynomial</div><div>  File "numpy/polynomial/polynomial.py", line 60, in <module></div><div>    from polytemplate import polytemplate</div><div>ImportError: cannot import name polytemplate</div></div><div><br></div><div>Any help is appreciated. </div><div><br></div><div>Thanks</div><br><div><div id="SkyDrivePlaceholder"></div>> From: derek@astro.physik.uni-goettingen.de<br>> Date: Tue, 20 Dec 2011 21:23:24 +0100<br>> To: numpy-discussion@scipy.org<br>> Subject: Re: [Numpy-discussion] numpy1.6.1 install fortran compiler error<br>> <br>> On 20.12.2011, at 9:01PM, Jack Bryan wrote:<br>> <br>> > customize Gnu95FCompiler using config<br>> > C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC<br>> > <br>> > compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/remote/dcnl/Ding/backup_20100716/python272/include/python2.7 -c'<br>> > gcc: _configtest.c<br>> > gcc -pthread _configtest.o -o _configtest<br>> > success!<br>> > removing: _configtest.c _configtest.o _configtest<br>> > C compiler: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC<br>> > <br>> > <br>> > ........................<br>> > <br>> > compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/mypath/python272/include/python2.7 -c'<br>> > gcc: _configtest.c<br>> > gcc -pthread _configtest.o -o _configtest<br>> > _configtest<br>> > failure.<br>> > <br>> The blas failures further up are non-fatal, but I am not sure about the _configtest.c, <br>> or why it once succeeds, then fails again - anyway the installation appears to have <br>> finished. <br>> <br>> > at the end:<br>> > <br>> > running install_egg_info<br>> > Removing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info<br>> > Writing /mypath/numpy/lib/python2.7/site-packages/numpy-1.6.1-py2.7.egg-info<br>> > running install_clib<br>> > <br>> > Then <br>> > <br>> > I got: <br>> > <br>> > python<br>> > Python 2.7.2 (default, Dec 20 2011, 12:32:10)<br>> > [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2<br>> > Type "help", "copyright", "credits" or "license" for more information.<br>> > <br>> > >>> import numpy<br>> > Traceback (most recent call last):<br>> >   File "<stdin>", line 1, in <module><br>> > ImportError: No module named numpy<br>> > <br>> > <br>> > I have updated PATH for bin and lib of numpy. <br>> > <br>> You will need '/mypath/numpy/lib/python2.7/site-packages' in your <br>> PYTHONPATH - have you done that, and does it show up with <br>> <br>> >>> import sys<br>> >>> sys.path()<br>> <br>> in the Python shell?<br>> <br>> Cheers,<br>>                                  Derek<br>> <br>> <br>> _______________________________________________<br>> NumPy-Discussion mailing list<br>> NumPy-Discussion@scipy.org<br>> http://mail.scipy.org/mailman/listinfo/numpy-discussion<br></div></div>                                    </div></body>
</html>