Skip to content

setup_ssd.py build_ext error #32

@ZM-J

Description

@ZM-J

Thanks for your work. I tried to run make.sh in windows, namely, setup python extensions. However, I got some errors.

Can you help me?

P.S. My python version is 3.7.

> python setup_ssd.py build_ext --inplace -f
running build_ext
building 'cython_bbox' extension
D:\Software\Anaconda3\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -ID:\Software\Anaconda3\lib\site-packages\numpy\core\include -ID:\Software\Anaconda3\include 
-ID:\Software\Anaconda3\include -c cython_bbox.c -o build\temp.win-amd64-3.7\Release\cython_bbox.o -Wno-cpp
In file included from D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1969:0,
                 from D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
                 from D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,
                 from cython_bbox.c:620:
D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
 #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \
         ^
cython_bbox.c: In function '__Pyx_ImportType':
cython_bbox.c:6874:13: warning: unknown conversion type character 'z' in format [-Wformat=]
             "%s.%s size changed, may indicate binary incompatibility. "
             ^
cython_bbox.c:6874:13: warning: unknown conversion type character 'z' in format [-Wformat=]
cython_bbox.c:6874:13: warning: too many arguments for format [-Wformat-extra-args]
writing build\temp.win-amd64-3.7\Release\cython_bbox.cp37-win_amd64.def
D:\Software\Anaconda3\Library\mingw-w64\bin\gcc.exe -shared -s build\temp.win-amd64-3.7\Release\cython_bbox.o build\temp.win-amd64-3.7\Release\cython_bbox.cp37-win_amd64.def -LD:\Software\Anaconda3\libs -LD:\Software\Anaconda3\PCbuild\amd64 -lpython37 -lmsvcr140 -o build\lib.win-amd64-3.7\cython_bbox.cp37-win_amd64.pyd
building 'cython_nms' extension
D:\Software\Anaconda3\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -ID:\Software\Anaconda3\lib\site-packages\numpy\core\include -ID:\Software\Anaconda3\include 
-ID:\Software\Anaconda3\include -c cython_nms.c -o build\temp.win-amd64-3.7\Release\cython_nms.o -Wno-cpp
In file included from D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1969:0,
                 from D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
                 from D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,
                 from cython_nms.c:485:
D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: D:\Software\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
 #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it with " \
         ^
cython_nms.c: In function '__Pyx__ExceptionSave':
cython_nms.c:9131:19: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'
     *type = tstate->exc_type;
                   ^
cython_nms.c:9132:20: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'
     *value = tstate->exc_value;
                    ^
cython_nms.c:9133:17: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'
     *tb = tstate->exc_traceback;
                 ^
cython_nms.c: In function '__Pyx__ExceptionReset':
cython_nms.c:9140:22: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'
     tmp_type = tstate->exc_type;
                      ^
cython_nms.c:9141:23: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'
     tmp_value = tstate->exc_value;
                       ^
cython_nms.c:9142:20: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'
     tmp_tb = tstate->exc_traceback;
                    ^
cython_nms.c:9143:11: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'
     tstate->exc_type = type;
           ^
cython_nms.c:9144:11: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'
     tstate->exc_value = value;
           ^
cython_nms.c:9145:11: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'
     tstate->exc_traceback = tb;
           ^
cython_nms.c: In function '__Pyx__GetException':
cython_nms.c:9200:22: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'
     tmp_type = tstate->exc_type;
                      ^
cython_nms.c:9201:23: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'
     tmp_value = tstate->exc_value;
                       ^
cython_nms.c:9202:20: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'
     tmp_tb = tstate->exc_traceback;
                    ^
cython_nms.c:9203:11: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_type'
     tstate->exc_type = local_type;
           ^
cython_nms.c:9204:11: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_value'
     tstate->exc_value = local_value;
cython_nms.c:9205:11: error: 'PyThreadState {aka struct _ts}' has no member named 'exc_traceback'
     tstate->exc_traceback = local_tb;
           ^
cython_nms.c: In function '__Pyx_ImportType':
cython_nms.c:10623:13: warning: unknown conversion type character 'z' in format [-Wformat=]
             "%s.%s size changed, may indicate binary incompatibility. Expected %zd, got %zd",
             ^
cython_nms.c:10623:13: warning: unknown conversion type character 'z' in format [-Wformat=]
cython_nms.c:10623:13: warning: too many arguments for format [-Wformat-extra-args]
error: command 'D:\\Software\\Anaconda3\\Library\\mingw-w64\\bin\\gcc.exe' failed with exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions