[SciPy-user] Installing TimeSeries

Bradford Cross bradford.n.cross@gmail....
Thu Nov 1 12:29:16 CDT 2007


Install works OK for MAskedArray but fails for TimeSeries with following
output:

bcross@ubuntu:~/maskedarray$ sudo python setup.py install
Password:
running install
running build
running config_fc
running build_py
running install_lib
running install_data
running install_egg_info
Removing /usr/lib/python2.5/site-packages/maskedarray-0.0.0.egg-info
Writing /usr/lib/python2.5/site-packages/maskedarray-0.0.0.egg-info
bcross@ubuntu:~/maskedarray$ cd
bcross@ubuntu:~$ cd timeseries/
bcross@ubuntu:~/timeseries$ sudo python setup.py install
Warning: Assuming default configuration (./lib/{setup_lib,setup}.py was not
found)
Appending timeseries.lib configuration to timeseries
Ignoring attempt to set 'name' (from 'timeseries' to 'timeseries.lib')
Warning: Assuming default configuration (./tests/{setup_tests,setup}.py was
not found)
Appending timeseries.tests configuration to timeseries
Ignoring attempt to set 'name' (from 'timeseries' to 'timeseries.tests')
running install
running build
running config_fc
running build_src
building extension "timeseries.cseries" sources
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'timeseries.cseries' extension
compiling C sources
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC

compile options:
'-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy -I./include
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c'
gcc: ./src/cseries.c
In file included from ./src/cseries.c:1:
./include/c_lib.h:4:20: error: Python.h: No such file or directory
./include/c_lib.h:5:26: error: structmember.h: No such file or directory
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from ./include/c_lib.h:6,
                 from ./src/cseries.c:1:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:91:2:
error: #error Must use Python with unicode enabled.
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from ./include/c_lib.h:6,
                 from ./src/cseries.c:1:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:918:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:919:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'npy_uintp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1009:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1010:
error: expected ')' before '*' token
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1012:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1012:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1013:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1023:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1023:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1025:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1025:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1026:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1028:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1031:
error: expected ')' before '*' token
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1034:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1036:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1037:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1037:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1039:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1044:
error: expected specifier-qualifier-list before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1057:
error: expected specifier-qualifier-list before 'PyArray_GetItemFunc'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1159:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1191:
error: expected specifier-qualifier-list before 'PyObject'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1201:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1227:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1234:
error: expected declaration specifiers or '...' before 'PyObject'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1367:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1505:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1562:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1762:
error: expected specifier-qualifier-list before 'npy_intp'
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1777,
                 from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from ./include/c_lib.h:6,
                 from ./src/cseries.c:1:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:397:
error: 'NULL' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:
In function '_import_array':
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: 'PyObject' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: (Each undeclared identifier is reported only once
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: for each function it appears in.)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: 'numpy' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
warning: implicit declaration of function 'PyImport_ImportModule'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:946:
error: 'c_api' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:948:
warning: implicit declaration of function 'PyObject_GetAttrString'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:949:
warning: implicit declaration of function 'Py_DECREF'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:950:
warning: implicit declaration of function 'PyCObject_Check'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:951:
warning: implicit declaration of function 'PyCObject_AsVoidPtr'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:958:
warning: implicit declaration of function 'PyErr_Format'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:958:
error: 'PyExc_RuntimeError' undeclared (first use in this function)
In file included from ./src/cseries.c:1:
./include/c_lib.h: At top level:
./include/c_lib.h:19: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:20: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:21: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:22: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:23: error: expected ')' before '*' token
./include/c_lib.h:24: error: expected ')' before '*' token
./include/c_lib.h:26: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:28: error: expected ')' before '*' token
In file included from ./src/cseries.c:2:
./include/c_dates.h:103: error: expected ')' before '*' token
./include/c_dates.h:109: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:110: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:113: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:114: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:115: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:116: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:118: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:119: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:121: error: expected ')' before '*' token
In file included from ./src/cseries.c:3:
./include/c_tseries.h:6: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:8: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:9: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:11: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:13: error: expected ')' before '*' token
./src/cseries.c:5: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'cseries_methods'
./src/cseries.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'initcseries'
In file included from ./src/cseries.c:1:
./include/c_lib.h:4:20: error: Python.h: No such file or directory
./include/c_lib.h:5:26: error: structmember.h: No such file or directory
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from ./include/c_lib.h:6,
                 from ./src/cseries.c:1:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:91:2:
error: #error Must use Python with unicode enabled.
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from ./include/c_lib.h:6,
                 from ./src/cseries.c:1:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:918:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:919:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'npy_uintp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1009:
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1010:
error: expected ')' before '*' token
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1012:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1012:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1013:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1023:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1023:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1025:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1025:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1026:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1028:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1031:
error: expected ')' before '*' token
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1034:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1036:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1037:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1037:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1039:
error: expected declaration specifiers or '...' before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1044:
error: expected specifier-qualifier-list before 'npy_intp'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1057:
error: expected specifier-qualifier-list before 'PyArray_GetItemFunc'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1159:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1191:
error: expected specifier-qualifier-list before 'PyObject'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1201:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1227:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1234:
error: expected declaration specifiers or '...' before 'PyObject'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1367:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1505:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1562:
error: expected specifier-qualifier-list before 'PyObject_HEAD'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1762:
error: expected specifier-qualifier-list before 'npy_intp'
In file included from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:1777,
                 from
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h:14,
                 from ./include/c_lib.h:6,
                 from ./src/cseries.c:1:
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:397:
error: 'NULL' undeclared here (not in a function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:
In function '_import_array':
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: 'PyObject' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: (Each undeclared identifier is reported only once
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: for each function it appears in.)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
error: 'numpy' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:945:
warning: implicit declaration of function 'PyImport_ImportModule'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:946:
error: 'c_api' undeclared (first use in this function)
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:948:
warning: implicit declaration of function 'PyObject_GetAttrString'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:949:
warning: implicit declaration of function 'Py_DECREF'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:950:
warning: implicit declaration of function 'PyCObject_Check'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:951:
warning: implicit declaration of function 'PyCObject_AsVoidPtr'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:958:
warning: implicit declaration of function 'PyErr_Format'
/usr/lib/python2.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:958:
error: 'PyExc_RuntimeError' undeclared (first use in this function)
In file included from ./src/cseries.c:1:
./include/c_lib.h: At top level:
./include/c_lib.h:19: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:20: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:21: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:22: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:23: error: expected ')' before '*' token
./include/c_lib.h:24: error: expected ')' before '*' token
./include/c_lib.h:26: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_lib.h:28: error: expected ')' before '*' token
In file included from ./src/cseries.c:2:
./include/c_dates.h:103: error: expected ')' before '*' token
./include/c_dates.h:109: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:110: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:113: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:114: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:115: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:116: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:118: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:119: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_dates.h:121: error: expected ')' before '*' token
In file included from ./src/cseries.c:3:
./include/c_tseries.h:6: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:8: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:9: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:11: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
./include/c_tseries.h:13: error: expected ')' before '*' token
./src/cseries.c:5: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'cseries_methods'
./src/cseries.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'initcseries'
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC
-I/usr/lib/python2.5/site-packages/numpy/core/include/numpy -I./include
-I/usr/lib/python2.5/site-packages/numpy/core/include
-I/usr/include/python2.5 -c ./src/cseries.c -o
build/temp.linux-i686-2.5/src/cseries.o"
failed with exit status 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071101/ac74fefb/attachment-0001.html 


More information about the SciPy-user mailing list