RetinaNet_Tensorflow_Rotation
RetinaNet_Tensorflow_Rotation copied to clipboard
compile error
environments: ubuntu 18.04 cuda 10.0 tensorflow-gpu1.13.1 curexc_type bbox.c:9512:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~~~~~ curexc_value bbox.c:9513:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~~~~~~~~~ curexc_traceback error: command 'gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1
@yangxue0827 I'm facing the same issue. could you please shed some light on this issue? Environment: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36) NAME="CentOS Linux" VERSION="7 (Core)"
Error trace is below,
python setup.py build_ext --inplace running build_ext skipping 'bbox.c' Cython extension (up-to-date) skipping 'nms.c' Cython extension (up-to-date) building 'cython_bbox' extension {'gcc': ['-Wno-cpp', '-Wno-unused-function']} gcc -pthread -B /home/gsadhasivam/anaconda3/envs/r3det/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/gsadhasivam/anaconda3/envs/r3det/lib/python3.7/site-packages/numpy/core/include -I/home/gsadhasivam/anaconda3/envs/r3det/include/python3.7m -c bbox.c -o build/temp.linux-x86_64-3.7/bbox.o -Wno-cpp -Wno-unused-function bbox.c: In function ‘__Pyx__ExceptionSave’: bbox.c:9439:19: error: ‘PyThreadState’ has no member named ‘exc_type’ *type = tstate->exc_type; ^ bbox.c:9440:20: error: ‘PyThreadState’ has no member named ‘exc_value’ *value = tstate->exc_value; ^ bbox.c:9441:17: error: ‘PyThreadState’ has no member named ‘exc_traceback’ *tb = tstate->exc_traceback; ^ bbox.c: In function ‘__Pyx__ExceptionReset’: bbox.c:9448:22: error: ‘PyThreadState’ has no member named ‘exc_type’ tmp_type = tstate->exc_type; ^ bbox.c:9449:23: error: ‘PyThreadState’ has no member named ‘exc_value’ tmp_value = tstate->exc_value; ^ bbox.c:9450:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tmp_tb = tstate->exc_traceback; ^ bbox.c:9451:11: error: ‘PyThreadState’ has no member named ‘exc_type’ tstate->exc_type = type; ^ bbox.c:9452:11: error: ‘PyThreadState’ has no member named ‘exc_value’ tstate->exc_value = value; ^ bbox.c:9453:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tstate->exc_traceback = tb; ^ bbox.c: In function ‘__Pyx__GetException’: bbox.c:9508:22: error: ‘PyThreadState’ has no member named ‘exc_type’ tmp_type = tstate->exc_type; ^ bbox.c:9509:23: error: ‘PyThreadState’ has no member named ‘exc_value’ tmp_value = tstate->exc_value; ^ bbox.c:9510:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tmp_tb = tstate->exc_traceback; ^ bbox.c:9511:11: error: ‘PyThreadState’ has no member named ‘exc_type’ tstate->exc_type = local_type; ^ bbox.c:9512:11: error: ‘PyThreadState’ has no member named ‘exc_value’ tstate->exc_value = local_value; ^ bbox.c:9513:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tstate->exc_traceback = local_tb; ^ error: command 'gcc' failed with exit status 1 make: *** [all] Error 1
The utils compiled without any errors. Previously, I compiled with python 3.7.3 and I got the above errors. I recreated the conda environment with below config and libraries. The compile and model training script works.
conda create -n conda-env python=3.5 conda activate conda-env conda install -c anaconda cudatoolkit=10.0 conda install cudnn pip uninstall numpy pip install numpy==1.16.4 pip install tensorflow==1.13.1 pip install tensorflow_gpu=1.13.1 pip install cython pip install pillow pip install opencv-python
Note: I got permission denied error while compiling box_utils. I ran with sudo and it works.
python 3.7 may be not supported.
python 3.7 may be not supported.
https://github.com/cython/cython/issues/1955
does the gcc version limited by the environment?