I might be behind a firewall or proxy, at university.
here is the full error I get : (as I said before there is already something
which looks obviously wrong like missing {} or integer function returning
void ?)
julien@derr-Precision-T1500:~/Téléchargements/pysparse$ sudo python setup.py
install
[sudo] password for julien:
/usr/lib/python2.6/dist-packages/numpy/distutils/system_info.py:1383:
UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
Sparse:: Using BLAS info:
{'libraries': ['blas'], 'library_dirs': ['/usr/lib64'], 'language': 'f77',
'define_macros': [('NO_ATLAS_INFO', 1)]}
Appending pysparse.sparse configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.sparse')
Using dflt_lib_dirs = []
Using dflt_libs = []
Eigen:: Using BLAS info:
{'libraries': ['blas'], 'library_dirs': ['/usr/lib64'], 'language': 'f77',
'define_macros': [('NO_ATLAS_INFO', 1)]}
/usr/lib/python2.6/dist-packages/numpy/distutils/system_info.py:1290:
UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
Eigen:: Using LAPACK info:
{'libraries': ['lapack', 'blas'], 'library_dirs': ['/usr/lib64'],
'language': 'f77', 'define_macros': [('NO_ATLAS_INFO', 1)]}
Appending pysparse.eigen configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.eigen')
Direct:: Using BLAS info:
{'libraries': ['blas'], 'library_dirs': ['/usr/lib64'], 'language': 'f77',
'define_macros': [('NO_ATLAS_INFO', 1)]}
Using default UMFPACK and AMD
If you do not like this, edit the [UMFPACK] and [AMD]
sections of site.cfg
Using default SuperLU.
If you do not like this, edit the [SuperLU] section of site.cfg
Appending pysparse.direct configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.direct')
Appending pysparse.itsolvers configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.itsolvers')
Appending pysparse.precon configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.precon')
Warning: Assuming default configuration (./tools/{setup_tools,setup}.py was
not found)
Appending pysparse.tools configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.tools')
Warning: Assuming default configuration (./misc/{setup_misc,setup}.py was
not found)
Appending pysparse.misc configuration to pysparse
Ignoring attempt to set 'name' (from 'pysparse' to 'pysparse.misc')
non-existing path in '.': 'pysparse/include'
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
options
running build_src
building py_modules sources
building extension "pysparse.sparse.spmatrix" sources
building extension "pysparse.eigen.jdsym" sources
building extension "pysparse.direct.umfpack" sources
building extension "pysparse.direct.superlu" sources
building extension "pysparse.itsolvers.krylov" sources
building extension "pysparse.precon.precon" sources
running build_py
copying build/src.linux-x86_64-2.6/pysparse/__config__.py ->
build/lib.linux-x86_64-2.6/pysparse
copying build/src.linux-x86_64-2.6/pysparse/sparse/__config__.py ->
build/lib.linux-x86_64-2.6/pysparse/sparse
copying build/src.linux-x86_64-2.6/pysparse/eigen/__config__.py ->
build/lib.linux-x86_64-2.6/pysparse/eigen
copying build/src.linux-x86_64-2.6/pysparse/direct/__config__.py ->
build/lib.linux-x86_64-2.6/pysparse/direct
copying build/src.linux-x86_64-2.6/pysparse/itsolvers/__config__.py ->
build/lib.linux-x86_64-2.6/pysparse/itsolvers
copying build/src.linux-x86_64-2.6/pysparse/precon/__config__.py ->
build/lib.linux-x86_64-2.6/pysparse/precon
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Found executable /usr/bin/f95
customize VastFCompiler
customize GnuFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'pysparse.sparse.spmatrix' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC
compile options: '-DLENFUNC_OK=1 -DNO_ATLAS_INFO=1 -Isparse/src
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c'
gcc: sparse/src/spmatrixmodule.c
In file included from sparse/src/Python.h:71,
from sparse/src/spmatrixmodule.c:1:
sparse/src/unicodeobject.h:65: warning: "Py_USING_UNICODE" redefined
/usr/include/python2.6/pyconfig.h:871: note: this is the location of the
previous definition
In file included from sparse/src/spmatrixmodule.c:19:
sparse/src/mmio_patched.c: In function ‘mm_read_unsymmetric_sparse’:
sparse/src/mmio_patched.c:77: warning: ignoring return value of ‘fscanf’,
declared with attribute warn_unused_result
In file included from sparse/src/spmatrixmodule.c:20:
sparse/src/ll_mat.c: In function ‘create_indexlist’:
sparse/src/ll_mat.c:535: warning: implicit declaration of function
‘PyInt_Check’
sparse/src/ll_mat.c:536: warning: implicit declaration of function
‘PyInt_AS_LONG’
sparse/src/ll_mat.c: In function ‘setSubMatrix_FromList’:
sparse/src/ll_mat.c:935: warning: implicit declaration of function
‘PyInt_AsLong’
In file included from sparse/src/spmatrixmodule.c:20:
sparse/src/ll_mat.c: In function ‘LLMat_compress’:
sparse/src/ll_mat.c:1745: warning: implicit declaration of function
‘PyInt_FromLong’
sparse/src/ll_mat.c:1745: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c: In function ‘LLMatType_getattr’:
sparse/src/ll_mat.c:3165: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c:3167: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c:3169: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c:3178: warning: implicit declaration of function
‘PyString_FromString’
sparse/src/ll_mat.c:3178: warning: passing argument 3 of ‘PyList_SetItem’
makes pointer from integer without a cast
sparse/src/listobject.h:53: note: expected ‘struct PyObject *’ but argument
is of type ‘int’
sparse/src/ll_mat.c:3186: warning: implicit declaration of function
‘Py_FindMethod’
sparse/src/ll_mat.c:3186: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c: At top level:
sparse/src/ll_mat.c:3304: warning: missing braces around initializer
sparse/src/ll_mat.c:3304: warning: (near initialization for
‘LLMatType.ob_base.ob_base’)
sparse/src/ll_mat.c:3306: warning: initialization makes integer from pointer
without a cast
sparse/src/ll_mat.c:3309: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3310: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3311: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3317: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3324: warning: initialization makes pointer from integer
without a cast
sparse/src/ll_mat.c:3325: warning: initialization from incompatible pointer
type
In file included from sparse/src/spmatrixmodule.c:21:
sparse/src/csr_mat.c: In function ‘CSRMatType_getattr’:
sparse/src/csr_mat.c:214: warning: return makes pointer from integer without
a cast
sparse/src/csr_mat.c:222: warning: passing argument 3 of ‘PyList_SetItem’
makes pointer from integer without a cast
sparse/src/listobject.h:53: note: expected ‘struct PyObject *’ but argument
is of type ‘int’
sparse/src/csr_mat.c:230: warning: return makes pointer from integer without
a cast
sparse/src/csr_mat.c: At top level:
sparse/src/csr_mat.c:238: warning: missing braces around initializer
sparse/src/csr_mat.c:238: warning: (near initialization for
‘CSRMatType.ob_base.ob_base’)
sparse/src/csr_mat.c:240: warning: initialization makes integer from pointer
without a cast
sparse/src/csr_mat.c:243: warning: initialization from incompatible pointer
type
sparse/src/csr_mat.c:244: warning: initialization from incompatible pointer
type
sparse/src/csr_mat.c:245: warning: initialization from incompatible pointer
type
In file included from sparse/src/spmatrixmodule.c:22:
sparse/src/sss_mat.c: In function ‘SSSMatType_getattr’:
sparse/src/sss_mat.c:155: warning: return makes pointer from integer without
a cast
sparse/src/sss_mat.c:163: warning: passing argument 3 of ‘PyList_SetItem’
makes pointer from integer without a cast
sparse/src/listobject.h:53: note: expected ‘struct PyObject *’ but argument
is of type ‘int’
sparse/src/sss_mat.c:171: warning: return makes pointer from integer without
a cast
sparse/src/sss_mat.c: At top level:
sparse/src/sss_mat.c:222: warning: missing braces around initializer
sparse/src/sss_mat.c:222: warning: (near initialization for
‘SSSMatType.ob_base.ob_base’)
sparse/src/sss_mat.c:224: warning: initialization makes integer from pointer
without a cast
sparse/src/sss_mat.c:227: warning: initialization from incompatible pointer
type
sparse/src/sss_mat.c:228: warning: initialization from incompatible pointer
type
sparse/src/sss_mat.c:229: warning: initialization from incompatible pointer
type
sparse/src/sss_mat.c:235: warning: initialization from incompatible pointer
type
sparse/src/spmatrixmodule.c:359: warning: return type defaults to ‘int’
sparse/src/spmatrixmodule.c: In function ‘DL_EXPORT’:
sparse/src/spmatrixmodule.c:359: error: expected declaration specifiers
before ‘initspmatrix’
sparse/src/spmatrixmodule.c:392: error: expected ‘{’ at end of input
In file included from sparse/src/Python.h:71,
from sparse/src/spmatrixmodule.c:1:
sparse/src/unicodeobject.h:65: warning: "Py_USING_UNICODE" redefined
/usr/include/python2.6/pyconfig.h:871: note: this is the location of the
previous definition
In file included from sparse/src/spmatrixmodule.c:19:
sparse/src/mmio_patched.c: In function ‘mm_read_unsymmetric_sparse’:
sparse/src/mmio_patched.c:77: warning: ignoring return value of ‘fscanf’,
declared with attribute warn_unused_result
In file included from sparse/src/spmatrixmodule.c:20:
sparse/src/ll_mat.c: In function ‘create_indexlist’:
sparse/src/ll_mat.c:535: warning: implicit declaration of function
‘PyInt_Check’
sparse/src/ll_mat.c:536: warning: implicit declaration of function
‘PyInt_AS_LONG’
sparse/src/ll_mat.c: In function ‘setSubMatrix_FromList’:
sparse/src/ll_mat.c:935: warning: implicit declaration of function
‘PyInt_AsLong’
In file included from sparse/src/spmatrixmodule.c:20:
sparse/src/ll_mat.c: In function ‘LLMat_compress’:
sparse/src/ll_mat.c:1745: warning: implicit declaration of function
‘PyInt_FromLong’
sparse/src/ll_mat.c:1745: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c: In function ‘LLMatType_getattr’:
sparse/src/ll_mat.c:3165: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c:3167: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c:3169: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c:3178: warning: implicit declaration of function
‘PyString_FromString’
sparse/src/ll_mat.c:3178: warning: passing argument 3 of ‘PyList_SetItem’
makes pointer from integer without a cast
sparse/src/listobject.h:53: note: expected ‘struct PyObject *’ but argument
is of type ‘int’
sparse/src/ll_mat.c:3186: warning: implicit declaration of function
‘Py_FindMethod’
sparse/src/ll_mat.c:3186: warning: return makes pointer from integer without
a cast
sparse/src/ll_mat.c: At top level:
sparse/src/ll_mat.c:3304: warning: missing braces around initializer
sparse/src/ll_mat.c:3304: warning: (near initialization for
‘LLMatType.ob_base.ob_base’)
sparse/src/ll_mat.c:3306: warning: initialization makes integer from pointer
without a cast
sparse/src/ll_mat.c:3309: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3310: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3311: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3317: warning: initialization from incompatible pointer
type
sparse/src/ll_mat.c:3324: warning: initialization makes pointer from integer
without a cast
sparse/src/ll_mat.c:3325: warning: initialization from incompatible pointer
type
In file included from sparse/src/spmatrixmodule.c:21:
sparse/src/csr_mat.c: In function ‘CSRMatType_getattr’:
sparse/src/csr_mat.c:214: warning: return makes pointer from integer without
a cast
sparse/src/csr_mat.c:222: warning: passing argument 3 of ‘PyList_SetItem’
makes pointer from integer without a cast
sparse/src/listobject.h:53: note: expected ‘struct PyObject *’ but argument
is of type ‘int’
sparse/src/csr_mat.c:230: warning: return makes pointer from integer without
a cast
sparse/src/csr_mat.c: At top level:
sparse/src/csr_mat.c:238: warning: missing braces around initializer
sparse/src/csr_mat.c:238: warning: (near initialization for
‘CSRMatType.ob_base.ob_base’)
sparse/src/csr_mat.c:240: warning: initialization makes integer from pointer
without a cast
sparse/src/csr_mat.c:243: warning: initialization from incompatible pointer
type
sparse/src/csr_mat.c:244: warning: initialization from incompatible pointer
type
sparse/src/csr_mat.c:245: warning: initialization from incompatible pointer
type
In file included from sparse/src/spmatrixmodule.c:22:
sparse/src/sss_mat.c: In function ‘SSSMatType_getattr’:
sparse/src/sss_mat.c:155: warning: return makes pointer from integer without
a cast
sparse/src/sss_mat.c:163: warning: passing argument 3 of ‘PyList_SetItem’
makes pointer from integer without a cast
sparse/src/listobject.h:53: note: expected ‘struct PyObject *’ but argument
is of type ‘int’
sparse/src/sss_mat.c:171: warning: return makes pointer from integer without
a cast
sparse/src/sss_mat.c: At top level:
sparse/src/sss_mat.c:222: warning: missing braces around initializer
sparse/src/sss_mat.c:222: warning: (near initialization for
‘SSSMatType.ob_base.ob_base’)
sparse/src/sss_mat.c:224: warning: initialization makes integer from pointer
without a cast
sparse/src/sss_mat.c:227: warning: initialization from incompatible pointer
type
sparse/src/sss_mat.c:228: warning: initialization from incompatible pointer
type
sparse/src/sss_mat.c:229: warning: initialization from incompatible pointer
type
sparse/src/sss_mat.c:235: warning: initialization from incompatible pointer
type
sparse/src/spmatrixmodule.c:359: warning: return type defaults to ‘int’
sparse/src/spmatrixmodule.c: In function ‘DL_EXPORT’:
sparse/src/spmatrixmodule.c:359: error: expected declaration specifiers
before ‘initspmatrix’
sparse/src/spmatrixmodule.c:392: error: expected ‘{’ at end of input
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -DLENFUNC_OK=1 -DNO_ATLAS_INFO=1
-Isparse/src -I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c sparse/src/spmatrixmodule.c -o
build/temp.linux-x86_64-2.6/sparse/src/spmatrixmodule.o" failed with exit
status 1
On Thu, Feb 24, 2011 at 5:28 PM, Jonathan Guyer <[email protected]>wrote:
>
>
> On Feb 24, 2011, at 11:02 AM, Julien Derr wrote:
>
> > Thanks a lot Daniel and Jonathan for your help,
> >
> > but unfortunately, I think I've tried everything without success...
> >
> > * sudo apt-get install python-sparse
> > tells me I have the up to date distribution
>
> Is there a way to query what version it has?
>
> > * the deb link <http://matforge.org/fipy/downloader/download/release/16>
> seems to be broken temporarly,
>
> Thanks for letting us know. I've restarted that webserver.
>
>
> > but actually I installed fipy in the first place using a deb file, I
> guess it was this one, and it comes with pysparse 1.1 (isn't it ?)
>
> I have no idea what requirements are set there. Perhaps Wheeler knows.
>
>
> > * easy_install
> https://pysparse.svn.sourceforge.net/svnroot/pysparse/trunk
> >
> > sudo easy_install
> https://pysparse.svn.sourceforge.net/svnroot/pysparse/trunk
> > install_dir /usr/local/lib/python2.6/dist-packages/
> > Downloading https://pysparse.svn.sourceforge.net/svnroot/pysparse/trunk
> > error: Download error for
> https://pysparse.svn.sourceforge.net/svnroot/pysparse/trunk: [Errno 113]
> No route to host
>
> Are you behind a firewall or proxy or anything? This works fine for me.
>
>
> > so I tried to install it manually, I downloaded the trunk tarball, and
> runned python setup.py install, and get the same errors as before
>
> Can you post the full error text? I have no idea why you would need to
> alter the code to get it to compile.
>
>
>
>
>