chainer / chainercv

ChainerCV: a Library for Deep Learning in Computer Vision
MIT License
1.48k stars 306 forks source link

build wheels for chainerCV failed #943

Open chenf99 opened 4 years ago

chenf99 commented 4 years ago

I tried to install chainercv on ubuntu16.04 but got this error:

Building wheels for collected packages: chainercv
  Building wheel for chainercv (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/chenfan/anaconda3/envs/CDD/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5hil58zc/chainercv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5hil58zc/chainercv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-jysike7a --python-tag cp37
       cwd: /tmp/pip-install-5hil58zc/chainercv/
  Complete output (234 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/chainercv
  copying chainercv/__init__.py -> build/lib.linux-x86_64-3.7/chainercv
...
chainercv/utils/bbox/_nms_gpu_post.c:6025:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tstate->exc_traceback = local_tb;
             ^
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for chainercv
  Running setup.py clean for chainercv
Failed to build chainercv
LeiXian1203 commented 3 years ago

same problem,how to solve it?