Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Gong, Shawn (Contractor) wrote: Hi Robert, I used exactly your text in site.cfg. The out.txt seems to get the lib_dir, but import numpy in python stills gives error. *What* error? Please copy-and-paste the complete error message. Please see the attached files. Should I ask system guys to move the libs to /usr/lib so I don't have to fight with site.cfg ? Not until you tell us what the error message is. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Gong, Shawn (Contractor) wrote: 2) Then in Python, when I type import numpy It says: Running from numpy source directory Then I type numpy.sqrt(5) AttributeError: 'module' object has no attribute 'sqrt' I assume that this means numpy was not installed successfully. No, it means that you are running from the numpy source directory. That means it is picking up the partial numpy package in the source that's used to bootstrap the installation. Change out of that directory and try again. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Hi Robert Running from numpy source directory message also appears when I installed numpy. I am running python 2.3.6, not 2.4 You said It is picking up the partial numpy package in the source. Do you mean it is picking up the partial numpy package from python 2.3.6 ? How do I change out of that directory and try again? Thanks, Shawn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Kern Sent: Tuesday, May 22, 2007 1:05 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Gong, Shawn (Contractor) wrote: 2) Then in Python, when I type import numpy It says: Running from numpy source directory Then I type numpy.sqrt(5) AttributeError: 'module' object has no attribute 'sqrt' I assume that this means numpy was not installed successfully. No, it means that you are running from the numpy source directory. That means it is picking up the partial numpy package in the source that's used to bootstrap the installation. Change out of that directory and try again. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
On Tue, May 22, 2007 at 01:11:35PM -0400, Gong, Shawn (Contractor) wrote: Hi Robert Running from numpy source directory message also appears when I installed numpy. I am running python 2.3.6, not 2.4 Just what it says; the current directory is the directory that the numpy source is in. If you do 'import numpy' there, it finds the *source* first, not the installed package. You said It is picking up the partial numpy package in the source. Do you mean it is picking up the partial numpy package from python 2.3.6 ? How do I change out of that directory and try again? cd .. -- ||\/| /--\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |[EMAIL PROTECTED] ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import numpy Traceback (most recent call last): File stdin, line 1, in ? File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/__init__.py, line 40, in ? import linalg File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/__init__. py, line 4, in ? from linalg import * File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/linalg.py , line 25, in ? from numpy.linalg import lapack_lite ImportError: /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/lapack_lit e.so: undefined symbol: pthread_join ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Sorry forgot to mention that Python was installed with-thread=no as it is required for OpenEV application. I remember that when I installed numarray I had to set --unthreaded Maybe I need to do the same thing. Can someone tell me how to set this flag? Thanks, Shawn -Original Message- From: Gong, Shawn (Contractor) Sent: Tuesday, May 22, 2007 1:28 PM To: 'Discussion of Numerical Python' Subject: RE: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import numpy Traceback (most recent call last): File stdin, line 1, in ? File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/__init__.py, line 40, in ? import linalg File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/__init__. py, line 4, in ? from linalg import * File /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/linalg.py , line 25, in ? from numpy.linalg import lapack_lite ImportError: /home/sgong/dev/dist/lib/python2.3/site-packages/numpy/linalg/lapack_lit e.so: undefined symbol: pthread_join ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed
Gong, Shawn (Contractor) wrote: Hi Robert, I added ref to site.cfg, but still getting the same error message: see out.txt file. It seems that install can't find the libraries in /usr/local/lib/atlas/ (see the out.txt file Line 14: libraries lapack,blas not found in /usr/local/lib/atlas) Delete your [atlas] section entirely. It is wrong. Follow the instructions in the example. To make this clear, use exactly the following text in your site.cfg: [blas_opt] library_dirs = /usr/local/lib/atlas libraries = f77blas, cblas, atlas [lapack_opt] library_dirs = /usr/local/lib/atlas libraries = lapack, f77blas, cblas, atlas -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion