Can't get fwrap to pass tests: ImportError: No module named all_char_fwrap

37 views
Skip to first unread message

als44118

unread,
Dec 7, 2010, 10:46:06 PM12/7/10
to Fwrap Users
Hello,

I'm running ubuntu 10.04, python 2.6.5, gfortran 4.4.3, cython 0.11.2
I can't get Fwrap 0.1.1 to pass tests.

When I do export F90=/usr/bin/gfortran
export LDFLAGS='-L/usr/lib/ -lgfortran'
python runtests.py -vv --fcompiler=gnu95 --no-cleanup

I get

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3]

wrapping all_char.f90 ... ERROR
wrapping char_args.f90 ... ERROR
wrapping cmplx_array.f90 ... ERROR
wrapping default_types.f90 ... ERROR
wrapping int_args.f90 ... ERROR
wrapping many_args.f90 ... ERROR
wrapping old_decl.f90 ... ERROR
wrapping py_kw_arg.f90 ... ERROR
wrapping simple_array.f90 ... ERROR
compiling and running all_char.f90 ... ERROR
compiling and running all_char_arrays.f90 ... ERROR
compiling and running all_complex.f90 ... ERROR
compiling and running all_complex_arrays.f90 ... ERROR
compiling and running all_integer_arrays.f90 ... ERROR
compiling and running all_ints.f90 ... ERROR
compiling and running all_logical_arrays.f90 ... ERROR
compiling and running all_logicals.f90 ... ERROR
compiling and running all_real_arrays.f90 ... ERROR
compiling and running all_reals.f90 ... ERROR
compiling and running array_intents.f90 ... ERROR
compiling and running array_types.f90 ... ERROR
compiling and running char_array.f90 ... ERROR
compiling and running default_types.f90 ... ERROR
compiling and running dim_expr.f90 ... ERROR
compiling and running func_returns.f90 ... ERROR
compiling and running int_args.f90 ... ERROR
compiling and running ndims.f90 ... ERROR
compiling and running old_decl.f90 ... ERROR

====================================================================
ERROR: wrapping all_char.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: No module named all_char_fwrap


All the other tests fail with a similar error.

Minor changes in LDFLAGS don't seem to make any difference.
Adding ~/..../fwrap-0.1.1 or ~/.../fwrap-0.1.1/fwrap/fparser to the
PYTHONPATH
also doesn't seem to make any difference.

This feels like a configuration problem, but there aren't any obvious
packages to add.
I don't use python, and the installation of python on my machine is
fairly minimal.

Any help would be greatly appreciated.

--Alex








Kurt Smith

unread,
Dec 7, 2010, 10:55:46 PM12/7/10
to fwrap...@googlegroups.com
On Tue, Dec 7, 2010 at 9:46 PM, als44118 <alex.so...@yahoo.com> wrote:
Hello,

Hi Alex,
 

Thank you for the report.

Could you please cut & paste the contents of BUILD/compile/all_char_fwrap/*.log please?  These are the log files which should contain more details about the problem.

Note that the build & configuration systems are undergoing massive improvements so this whole experience will be better on the next release.

Kurt

als44118

unread,
Dec 7, 2010, 11:57:47 PM12/7/10
to Fwrap Users


On Dec 7, 10:55 pm, Kurt Smith <kwmsm...@gmail.com> wrote:
> On Tue, Dec 7, 2010 at 9:46 PM, als44118 <alex.solomon...@yahoo.com> wrote:
>
> > I'm running ubuntu 10.04, python 2.6.5, gfortran 4.4.3, cython 0.11.2
> > I can't get Fwrap 0.1.1 to pass tests.
>
> > When I do export F90=/usr/bin/gfortran
> > export LDFLAGS='-L/usr/lib/  -lgfortran'
> > python runtests.py -vv --fcompiler=gnu95 --no-cleanup
>
> > I get
>
> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > [GCC 4.4.3]
>
>stuff deleted...
>
> > This feels like a configuration problem, but there aren't any obvious
> > packages to add.
> > I don't use python, and the installation of python on my machine is
> > fairly minimal.
>
> > Any help would be greatly appreciated.
>
> Thank you for the report.
>
> Could you please cut & paste the contents of
> BUILD/compile/all_char_fwrap/*.log please?  These are the log files which
> should contain more details about the problem.
>
> Note that the build & configuration systems are undergoing massive
> improvements so this whole experience will be better on the next release.
>
> Kurt

fparser.log:
DEBUG: Not implemented: Defined_Binary_Op
DEBUG: Not implemented: Defined_Binary_Op
DEBUG: Defined_Operator not defined used by Generic_Spec

fwrap.log:
2010-12-07 09:11:31,590 fwrap DEBUG: 580 - Command line arguments:
2010-12-07 09:11:31,590 fwrap DEBUG: 137 - Running with following
options:
2010-12-07 09:11:31,591 fwrap DEBUG: 201 - Wrapping the following
source:
2010-12-07 09:11:31,591 fwrap DEBUG: 203 - /home/alex/math/packages/
fwrap-0.1.1/tests/compile/all_char.f90
2010-12-07 09:11:31,591 fwrap INFO: 206 - Parsing source files.
2010-12-07 09:11:32,036 fwrap INFO: 215 - Parsing was successful.
2010-12-07 09:11:32,036 fwrap INFO: 218 - Wrapping fortran...
2010-12-07 09:11:32,036 fwrap INFO: 283 - Generating abstract syntax
tress for c and cython.
2010-12-07 09:11:32,141 fwrap INFO: 220 - Wrapping was successful.
2010-12-07 09:11:32,141 fwrap INFO: 234 - Compiling sources and
generating extension module..
.
2010-12-07 09:11:32,142 fwrap INFO: 238 - Changing to project
directory /home/alex/math/packages/fwrap-0.1.1/BUILD/compile/
all_char_fwrap
2010-12-07 09:11:32,362 fwrap INFO: 243 - Returning to /home/alex/math/
packages/fwrap-0.1.1
2010-12-07 09:11:32,362 fwrap INFO: 245 - Compiling was successful.




fwrap_setup.log:
running config
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --
fcompiler options
running build_src
building extension "all_char_fwrap" sources

subroutine outer(a)
use, intrinsic :: iso_c_binding
implicit none
character(kind=c_char), intent(inout) :: a
interface
subroutine inner(a)
use, intrinsic :: iso_c_binding
implicit none
character(1), intent(inout) :: a
end subroutine inner
end interface
call inner(a)
end subroutine outer

customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /usr/bin/gfortran
customize Gnu95FCompiler using fw_config
Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-c'
gfortran:f90: _configtest.f90
success!
removing: _configtest.f90 _configtest.o
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
Wall -Wstrict-prototypes -fPIC

compile options: '-I/usr/include/python2.6 -I/usr/lib/python2.6/dist-
packages/numpy/core/include -c'
gcc: _configtest.c
_configtest.c:1:20: error: Python.h: No such file or directory
In file included from /usr/include/python2.6/numpy/ndarrayobject.h:61,
from /usr/include/python2.6/numpy/arrayobject.h:14,
from _configtest.c:2:
usr/include/python2.6/numpy/npy_common.h:71:2: error: #error Must use
Python with unicode enabled.
In file included from /usr/include/python2.6/numpy/arrayobject.h:14,
from _configtest.c:2:
/usr/include//usr/include/python2.6/numpy/ndarrayobject.h:181: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:182: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘npy_uintp’
/usr/include/python2.6/numpy/ndarrayobject.h:284: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/python2.6/numpy/ndarrayobject.h:285: error: expected ‘)’
before ‘*’ token
/usr/include/python2.6/numpy/ndarrayobject.h:287: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:287: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:288: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:298: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:298: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:300: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:300: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:301: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:303: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:308: error: expected ‘)’
before ‘*’ token
/usr/include/python2.6/numpy/ndarrayobject.h:313: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:315: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:316: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:316: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:318: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:322: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:324: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:325: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:326: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:327: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:327: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:328: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:328: error: expected
declaration specifiers or ‘...’ before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:332: error: expected
specifier-qualifier-list before ‘npy_intp’
/usr/include/python2.6/numpy/ndarrayobject.h:345: error: expected
specifier-qualifier-list before ‘PyArray_GetItemFunc’
/usr/include/python2.6/numpy/ndarrayobject.h:446: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:478: error: expected
specifier-qualifier-list before ‘PyObject’
/usr/include/python2.6/numpy/ndarrayobject.h:488: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:513: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:521: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:528: error: expected
declaration specifiers or ‘...’ before ‘PyObject’
/usr/include/python2.6/numpy/ndarrayobject.h:670: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:817: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:871: error: expected
specifier-qualifier-list before ‘PyObject_HEAD’
/usr/include/python2.6/numpy/ndarrayobject.h:1084: error: expected
specifier-qualifier-list before ‘npy_intp’
In file included from /usr/include/python2.6/numpy/ndarrayobject.h:
1099,
from /usr/include/python2.6/numpy/arrayobject.h:14,
from _configtest.c:2:
/usr/include/python2.6/numpy/__multiarray_api.h:407: error: ‘NULL’
undeclared here (not in a function)
/usr/include/python2.6/numpy/__multiarray_api.h: In function
‘_import_array’:
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: ‘PyObject’
undeclared (first use in this function)
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: (Each
undeclared identifier is reported only once
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: for each
function it appears in.)
/usr/include/python2.6/numpy/__multiarray_api.h:971: error: ‘numpy’
undeclared (first use in this function)
/usr/include/python2.6/numpy/__multiarray_api.h:971: warning: implicit
declaration of function ‘PyImport_ImportModule’
/usr/include/python2.6/numpy/__multiarray_api.h:972: error: ‘c_api’
undeclared (first use in this function)
/usr/include/python2.6/numpy/__multiarray_api.h:974: warning: implicit
declaration of function ‘PyObject_GetAttrString’
/usr/include/python2.6/numpy/__multiarray_api.h:975: warning: implicit
declaration of function ‘Py_DECREF’
/usr/include/python2.6/numpy/__multiarray_api.h:976: warning: implicit
declaration of function ‘PyCObject_Check’
/usr/include/python2.6/numpy/__multiarray_api.h:977: warning: implicit
declaration of function ‘PyCObject_AsVoidPtr’
/usr/include/python2.6/numpy/__multiarray_api.h:984: warning: implicit
declaration of function ‘PyErr_Format’
/usr/include/python2.6/numpy/__multiarray_api.h:984: error:
‘PyExc_RuntimeError’ undeclared (first use in this function)
_configtest.c: At top level:
_configtest.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘npy_check_sizeof_type’
_configtest.c:7: warning: function declaration isn’t a prototype
_configtest.c: In function ‘main’:
_configtest.c:8: error: ‘npy_check_sizeof_type’ undeclared (first use
in this function)
_configtest.c:8: warning: unused variable ‘test_array’


Hope this helps,
--Alex

Kurt Smith

unread,
Dec 8, 2010, 12:12:36 AM12/8/10
to fwrap...@googlegroups.com
On Tue, Dec 7, 2010 at 10:57 PM, als44118 <alex.so...@yahoo.com> wrote:


On Dec 7, 10:55 pm, Kurt Smith <kwmsm...@gmail.com> wrote:
> On Tue, Dec 7, 2010 at 9:46 PM, als44118 <alex.solomon...@yahoo.com> wrote:
>
> > I'm running ubuntu 10.04, python 2.6.5, gfortran 4.4.3, cython 0.11.2
> > I can't get Fwrap 0.1.1 to pass tests.
>
> > When I do export F90=/usr/bin/gfortran
> > export LDFLAGS='-L/usr/lib/  -lgfortran'
> > python runtests.py -vv --fcompiler=gnu95 --no-cleanup
>
> > I get
>
> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > [GCC 4.4.3]
>
 >stuff deleted...
>
> > This feels like a configuration problem, but there aren't any obvious
> > packages to add.
> > I don't use python, and the installation of python on my machine is
> > fairly minimal.
>
> > Any help would be greatly appreciated.
>
> Thank you for the report.
>
> Could you please cut & paste the contents of
> BUILD/compile/all_char_fwrap/*.log please?  These are the log files which
> should contain more details about the problem.
>
> Note that the build & configuration systems are undergoing massive
> improvements so this whole experience will be better on the next release.
>
> Kurt


Thanks -- looks like you don't have Python.h, which means you need to install the python header files.

Do the following:

$ sudo apt-get install python-dev

and try the test exactly as you did originally.

Kurt

 

als44118

unread,
Dec 8, 2010, 1:32:28 AM12/8/10
to Fwrap Users

> Thanks -- looks like you don't have Python.h, which means you need to
> install the python header files.
>
> Do the following:
>
> $ sudo apt-get install python-dev
>
> and try the test exactly as you did originally.
>
> Kurt
>


Well, it gets farther along, but all the tests still fail.
It would be a big help to have a complete list of dependancies.


Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3]

======================================================================
ERROR: wrapping all_char.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
File "all_char_fwrap.pyx", line 25, in all_char_fwrap
(all_char_fwrap.c:3501)
NameError: np

======================================================================



::::::::::::::
fparser.log
::::::::::::::
DEBUG: Not implemented: Defined_Binary_Op
DEBUG: Not implemented: Defined_Binary_Op
DEBUG: Defined_Operator not defined used by Generic_Spec
::::::::::::::
fwrap.log
::::::::::::::
2010-12-08 01:11:30,794 fwrap DEBUG: 580 - Command line arguments:
2010-12-08 01:11:30,794 fwrap DEBUG: 137 - Running with following
options:
2010-12-08 01:11:30,795 fwrap DEBUG: 201 - Wrapping the following
source:
2010-12-08 01:11:30,795 fwrap DEBUG: 203 - /home/alex/math/packages/
fwrap-0.1.1/tests/compile/all
_char.f90
2010-12-08 01:11:30,795 fwrap INFO: 206 - Parsing source files.
2010-12-08 01:11:31,207 fwrap INFO: 215 - Parsing was successful.
2010-12-08 01:11:31,207 fwrap INFO: 218 - Wrapping fortran...
2010-12-08 01:11:31,208 fwrap INFO: 283 - Generating abstract syntax
tress for c and cython.
2010-12-08 01:11:31,314 fwrap INFO: 220 - Wrapping was successful.
2010-12-08 01:11:31,314 fwrap INFO: 234 - Compiling sources and
generating extension module...
2010-12-08 01:11:31,314 fwrap INFO: 238 - Changing to project
directory /home/alex/math/packages/fw
rap-0.1.1/BUILD/compile/all_char_fwrap
2010-12-08 01:11:34,307 fwrap INFO: 243 - Returning to /home/alex/math/
packages/fwrap-0.1.1
2010-12-08 01:11:34,307 fwrap INFO: 245 - Compiling was successful.
removing: _configtest.c _configtest.o
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
Wall -Wstrict-prototypes -fPIC

compile options: '-I/usr/include/python2.6 -I/usr/lib/python2.6/dist-
packages/numpy/core/include -c'
gcc: _configtest.c
_configtest.c:7: warning: function declaration isn’t a prototype
_configtest.c: In function ‘main’:
_configtest.c:8: error: size of array ‘test_array’ is negative
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
Wall -Wstrict-prototypes -fPIC

compile options: '-I/usr/include/python2.6 -I/usr/lib/python2.6/dist-
packages/numpy/core/include -c'
gcc: _configtest.c
_configtest.c:7: warning: function declaration isn’t a prototype
_configtest.c: In function ‘main’:
_configtest.c:8: error: size of array ‘test_array’ is negative
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
Wall -Wstrict-prototypes -fPIC

compile options: '-I/usr/include/python2.6 -I/usr/lib/python2.6/dist-
packages/numpy/core/include -c'
gcc: _configtest.c
removing: _configtest.c _configtest.o _configtest.c _configtest.o
_configtest.c _configtest.o

subroutine outer(a)
use, intrinsic :: iso_c_binding
implicit none
integer(kind=c_signed_char), intent(inout) :: a
interface
subroutine inner(a)
use, intrinsic :: iso_c_binding
implicit none
integer(kind=kind(0)), intent(inout) :: a
end subroutine inner
end interface
call inner(a)
end subroutine outer

Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-c'
gfortran:f90: _configtest.f90
_configtest.f90:13.13:

call inner(a)
1
Error: Type mismatch in argument 'a' at (1); passed INTEGER(1) to
INTEGER(4)
failure.
removing: _configtest.f90 _configtest.o

subroutine outer(a)
use, intrinsic :: iso_c_binding
implicit none
integer(kind=c_short), intent(inout) :: a
interface
subroutine inner(a)
use, intrinsic :: iso_c_binding
implicit none
integer(kind=kind(0)), intent(inout) :: a
end subroutine inner
end interface
call inner(a)
end subroutine outer

Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-c'
gfortran:f90: _configtest.f90
_configtest.f90:13.13:

call inner(a)
1
Error: Type mismatch in argument 'a' at (1); passed INTEGER(2) to
INTEGER(4)
failure.
removing: _configtest.f90 _configtest.o

subroutine outer(a)
use, intrinsic :: iso_c_binding
implicit none
integer(kind=c_int), intent(inout) :: a
interface
subroutine inner(a)
use, intrinsic :: iso_c_binding
implicit none
integer(kind=kind(0)), intent(inout) :: a
end subroutine inner
end interface
call inner(a)
end subroutine outer

Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-c'
gfortran:f90: _configtest.f90
success!
removing: _configtest.f90 _configtest.o
adding 'fwrap_ktp_mod.f90' to sources.
cythoning all_char_fwrap.pyx to all_char_fwrap.c
running build_ext
customize UnixCCompiler
customize UnixCCompiler using fw_build_ext
customize Gnu95FCompiler
customize Gnu95FCompiler using fw_build_ext
building 'all_char_fwrap' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
Wall -Wstrict-prototypes -fPIC

creating build
creating build/temp.linux-i686-2.6
compile options: '-I/usr/lib/python2.6/dist-packages/numpy/core/
include -I/usr/include/python2.6 -c'
gcc: all_char_fwrap.c
compiling Fortran 90 module sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-I/usr/lib/python2.6/dist-packages/numpy/core/
include -I/usr/include/python2.6 -c'
extra options: '-Jbuild/temp.linux-i686-2.6/ -Ibuild/temp.linux-
i686-2.6/'
gfortran:f90: fwrap_ktp_mod.f90
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -fno-second-underscore -
fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -ffixed-form -fno-second-
underscore -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
creating build/temp.linux-i686-2.6/home
creating build/temp.linux-i686-2.6/home/alex
creating build/temp.linux-i686-2.6/home/alex/math
creating build/temp.linux-i686-2.6/home/alex/math/packages
creating build/temp.linux-i686-2.6/home/alex/math/packages/fwrap-0.1.1
creating build/temp.linux-i686-2.6/home/alex/math/packages/fwrap-0.1.1/
tests
creating build/temp.linux-i686-2.6/home/alex/math/packages/fwrap-0.1.1/
tests/compile
compile options: '-I/usr/lib/python2.6/dist-packages/numpy/core/
include -I/usr/include/python2.6 -c'
extra options: '-Jbuild/temp.linux-i686-2.6/ -Ibuild/temp.linux-
i686-2.6/'
gfortran:fix: /home/alex/math/packages/fwrap-0.1.1/tests/compile/
all_char.f90
gfortran:f90: all_char_fwrap_fc.f90
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib/ -
lgfortran build/temp.linux-i686-2.6/all_char_fwrap.o build/temp.linux-
i686-2.6/fwrap_ktp_mod.o build/temp.linux-i686-2.6/home/alex/math/
packages/fwrap-0.1.1/tests/compile/all_char.o build/temp.linux-
i686-2.6/all_char_fwrap_fc.o -o all_char_fwrap.so
running scons


----Alex

Dag Sverre Seljebotn

unread,
Dec 8, 2010, 1:45:22 AM12/8/10
to fwrap...@googlegroups.com
On 12/08/2010 07:32 AM, als44118 wrote:
>
>> Thanks -- looks like you don't have Python.h, which means you need to
>> install the python header files.
>>
>> Do the following:
>>
>> $ sudo apt-get install python-dev
>>
>> and try the test exactly as you did originally.
>>
>> Kurt
>>
>>
>
> Well, it gets farther along, but all the tests still fail.
> It would be a big help to have a complete list of dependancies.
>

Please check your gfortran version against what is stated on the
complete list of dependencies on http://fwrap.sourceforge.net/

(Yes, I guess python-dev could be mentioned there).

Dag Sverre

> _configtest.c:7: warning: function declaration isn�t a prototype
> _configtest.c: In function �main�:
> _configtest.c:8: error: size of array �test_array� is negative


> C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -
> Wall -Wstrict-prototypes -fPIC
>
> compile options: '-I/usr/include/python2.6 -I/usr/lib/python2.6/dist-
> packages/numpy/core/include -c'
> gcc: _configtest.c

> _configtest.c:7: warning: function declaration isn�t a prototype
> _configtest.c: In function �main�:
> _configtest.c:8: error: size of array �test_array� is negative

als44118

unread,
Dec 8, 2010, 2:14:57 AM12/8/10
to Fwrap Users

> >> Thanks -- looks like you don't have Python.h, which means you need to
> >> install the python header files.
>
> >> Do the following:
>
> >> $ sudo apt-get install python-dev
>
> >> and try the test exactly as you did originally.
>
> >> Kurt
>
> > Well, it gets farther along, but all the tests still fail.
> > It would be a big help to have a complete list of dependancies.


> Please check your gfortran version against what is stated on the
> complete list of dependencies onhttp://fwrap.sourceforge.net/
>
> (Yes, I guess python-dev could be mentioned there).
>
> Dag Sverre
>

The version is
GNU Fortran (Ubuntu 4.4.3-4ubuntu5) 4.4.3

And nose is also a dependancy.

--Alex

Kurt Smith

unread,
Dec 8, 2010, 12:22:05 PM12/8/10
to fwrap...@googlegroups.com

Hi Alex,

Looks like you might not have numpy installed.  First, do the following:

$ sudo apt-get install python-numpy

To ensure everything is working, do the following from the command line:

$ python -c "import numpy; print numpy.version.version"

It will print out numpy's version.  Ensure that it is a supported version of numpy (see README.txt & other top-level documentation).

Kurt




::::::::::::::

--
You received this message because you are subscribed to the Google Groups "Fwrap Users" group.
To post to this group, send email to fwrap...@googlegroups.com.
To unsubscribe from this group, send email to fwrap-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fwrap-users?hl=en.


als44118

unread,
Dec 8, 2010, 8:39:43 PM12/8/10
to Fwrap Users


On Dec 8, 12:22 pm, Kurt Smith <kwmsm...@gmail.com> wrote:
> On Wed, Dec 8, 2010 at 12:32 AM, als44118 <alex.solomon...@yahoo.com> wrote:
>
> > > Thanks -- looks like you don't have Python.h, which means you need to
> > > install the python header files.
>
> > > Do the following:
>
> > > $ sudo apt-get install python-dev
>
> > > and try the test exactly as you did originally.
>
> > > Kurt
>
> > Well, it gets farther along, but all the tests still fail.
> > It would be a big help to have a complete list of dependancies.
>
> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > [GCC 4.4.3]
>
> > ...........

>
> Hi Alex,
>
> Looks like you might not have numpy installed.  First, do the following:
>
> $ sudo apt-get install python-numpy
>
> To ensure everything is working, do the following from the command line:
>
> $ python -c "import numpy; print numpy.version.version"
>
> It will print out numpy's version.  Ensure that it is a supported version of
> numpy (see README.txt & other top-level documentation).
>
>Kurt


python -c "import numpy; print numpy.version.version"
1.3.0

python -c "import numpy; print numpy.version"
<module 'numpy.version' from '/usr/lib/python2.6/dist-packages/numpy/
version.pyc'>

I installed python-numpy-ext,
but that didn't seem to make any difference.

--Alex
Reply all
Reply to author
Forward
0 new messages