[SciPy-user] problem installing sciPy

marco turchi marco.turchi@gmail....
Fri Oct 5 17:07:53 CDT 2007


Dear Chris,
I have just said to David that i have tried to install  numpy and scipy
using  python 2.3, but on that machine there is not python-dev, and the
administrator cannot install it, he has some problems with licences. I guess
that I cannot use rpm, because I'm not administrator. That's the reason
because I have installed in /usr/local another version of Python and then I
have followed the normal instruction for numpy and scipy.

The installation arrives to the end, but when I open Python, new or old
version, I can import Numpy, but I cannot import scipy, because the module
is not present.

I can try another time to do everything from the beginning, but i do not
know how useful it can be.

Sorry for all these troubles.
thanks a lot
Marco

On 10/5/07, Christopher Burns <cburns@berkeley.edu> wrote:
>
> Marco,
>
> I have not looked through your error messages closely, but perhaps it's
> worth taking a step back and trying an easier install.
>
> As David mentioned, SciPy supports Python 2.3, which should be installed
> on your system.  I'd recommend just going with that.  A basic install:
> 0) Read scipy-0.6.0/INSTALL.txt.  (if you haven't done so already)
>      It includes the basic install instructions and various install
> options.
> 1) Install lapack through an rpm.  You can find them here:
> http://www.netlib.org/lapack/rpms/
> 2) Install numpy 1.0.3.1 from the tarball.  (I appears you already did
> this successfully once.)
> 3) Install scipy 0.6.0 from the tarball.
>
> That should be sufficient to get you up and running.
>
> As you mentioned, there are a lot of messages flying past during the
> build, some of which appear to be errors.  If the build succeeds you can
> probably ignore those messages.  They're usually along the lines of:
> couldn't find ideal fortran compiler but found this one instead...
>
> Chris
>
> On 10/5/07, marco turchi <marco.turchi@gmail.com> wrote:
> >
> > Dear Davis,
> > I have send to a file the output of the installation.
> > I have found the following error:
> > 1)
> > ./xconfig -d s /usr/local/scipy/garnumpy-0.3
> > /bootstrap/ATLAS/work/main.d/atlas-3.7.33/GarObj/../ -d b
> > /usr/local/scipy/garnumpy- 0.3/bootstrap/ATLAS/work/main.d/atlas-3.7.33/GarObj
> > -Si archdef 1 -Ss flapack /home/ematxmt/garnumpyinstall/lib/liblapack.a -b
> > 32 -C if g77 -Fa alg
> >
> > ERROR around arg 20 (out of arguments).
> >
> > 2)
> > building extension " numpy.random.mtrand" sources
> > creating build/src.linux-i686-2.5/numpy/random
> > C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> > -Wstrict-prototypes -fPIC
> > compile options: '-Inumpy/core/src -Inumpy/core/include
> > -I/usr/local/Python- 2.5.1/Include -I/usr/local/Python-2.5.1 -c'
> > gcc: _configtest.c
> > _configtest.c:7:2: #error No _WIN32
> > _configtest.c:7:2: #error No _WIN32
> > failure.
> > removing: _configtest.c _configtest.o
> >
> > 3)
> > C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> > -Wstrict-prototypes -fPIC
> >
> > compile options: '-Inumpy/core/src -Inumpy/core/include
> > -I/usr/local/Python-2.5.1/Include -I/usr/local/Python-2.5.1 -c'
> > gcc: _configtest.c
> > _configtest.c:7:2: #error No _WIN32
> > _configtest.c:7:2: #error No _WIN32
> > failure.
> > removing: _configtest.c _configtest.o
> >
> > 4)
> > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
> > -Wstrict-prototypes -fPIC
> > -I/home/ematxmt/garnumpyinstall/lib/python2.5/site-packages/numpy/core/include
> > -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include -I.
> > -I/usr/local/include -I/usr/include -I.
> > -I/home/ematxmt/garnumpyinstall/lib/python2.5/site-packages/numpy/core/include/freetype2
> > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
> > -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2
> > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2
> > -I/usr/local/Python- 2.5.1/Include -I/usr/local/Python-2.5.1 -c
> > src/_image.cpp -o build/temp.linux-i686-2.5/src/_image.o -DSCIPY=1
> > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> > Ada/C/ObjC but not for C++
> > src/_image.cpp:5:17: png.h: No such file or directory
> > In file included from /usr/local/Python-2.5.1/Include/Python.h:8,
> >                  from src/_image.cpp:7:
> > /usr/local/Python-2.5.1/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE"
> > redefined
> > In file included from
> > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/i386-redhat-linux/bits/os_defines.h:39,
> >                  from
> > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/i386-redhat-linux/bits/c++config.h:35,
> >
> >                  from
> > /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/iostream:44,
> >                  from src/_image.cpp:1:
> > /usr/include/features.h:150:1: warning: this is the location of the
> > previous definition
> > src/_image.cpp: In member function `Py::Object Image::write_png(const
> > Py::Tuple&)':
> > src/_image.cpp:654: error: `png_structp' was not declared in this scope
> > src/_image.cpp:654: error: expected `;' before "png_ptr"
> > src/_image.cpp:655: error: `png_infop' was not declared in this scope
> > src/_image.cpp:655: error: expected `;' before "info_ptr"
> > etc etc
> >
> > is it possible that for error 4) it depends on the old version of gcc?
> >
> > sorry about all these email...
> > Thanks
> > Marco
> >
> > _______________________________________________
> > SciPy-user mailing list
> > SciPy-user@scipy.org
> > http://projects.scipy.org/mailman/listinfo/scipy-user
> >
> >
>
>
> --
> Christopher Burns, Software Engineer
> Computational Infrastructure for Research Labs
> 10 Giannini Hall, UC Berkeley
> phone: 510.643.4014
> http://cirl.berkeley.edu/
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071005/2225e379/attachment.html 


More information about the SciPy-user mailing list