Problem installing Cython-0.22.1 using python 2.7.10

107 views
Skip to first unread message

Akash Sahu

unread,
Jun 30, 2015, 7:35:03 AM6/30/15
to cython...@googlegroups.com
Following are the libraries I have already installed

gcc - 4.8.1
python - 2.7.10
Mingw32

distutils.cfg value has the following
[build]
compiler = mingw32


I downloaded Cython-0.22.1, but while running python setup.py install I get the following error

building 'Cython.Plex.Scanners' extension
C:\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c -o d:\cython-0.22.1\cython-0.22.
1\cython\plex\scanners.o
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c: In function '__Pyx_RaiseArgtupleInvalid':
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6708:18: warning: unknown conversion type character 'z' in format [-Wformat=]
                  (num_expected == 1) ? "" : "s", num_found);
                  ^
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6708:18: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'Py_ssize_t' [-Wforma
t=]
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6708:18: warning: unknown conversion type character 'z' in format [-Wformat=]
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6708:18: warning: too many arguments for format [-Wformat-extra-args]
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c: In function '__Pyx_RaiseTooManyValuesError':
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6991:18: warning: unknown conversion type character 'z' in format [-Wformat=]
                  "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
                  ^
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6991:18: warning: too many arguments for format [-Wformat-extra-args]
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c: In function '__Pyx_RaiseNeedMoreValuesError':
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6997:18: warning: unknown conversion type character 'z' in format [-Wformat=]
                  index, (index == 1) ? "" : "s");
                  ^
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6997:18: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'Py_ssize_t' [-Wforma
t=]
D:\Cython-0.22.1\Cython-0.22.1\Cython\Plex\Scanners.c:6997:18: warning: too many arguments for format [-Wformat-extra-args]
writing d:\cython-0.22.1\cython-0.22.1\cython\plex\Scanners.def
C:\MinGW\bin\gcc.exe -shared -s d:\cython-0.22.1\cython-0.22.1\cython\plex\scanners.o d:\cython-0.22.1\cython-0.22.1\cython\plex\Scanners.def -LC:\Python27\libs -LC
:\Python27\PCbuild -lpython27 -lmsvcr90 -o build\lib.win32-2.7\Cython\Plex\Scanners.pyd
C:\Python27\libs/libpython27.a(dmmes01026.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00012.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00245.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00976.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes01018.o):(.idata$7+0x0): undefined reference to `_head_C__build27_cpython_PCBuild_libpython27_a'
C:\Python27\libs/libpython27.a(dmmes00242.o):(.idata$7+0x0): more undefined references to `_head_C__build27_cpython_PCBuild_libpython27_a' follow
collect2.exe: error: ld returned 1 exit status
error: command 'C:\\MinGW\\bin\\gcc.exe' failed with exit status 1

any help will be highly appreciated.
Reply all
Reply to author
Forward
0 new messages