Couldn't import dot_parser, loading of dot files will not be possible.
/home/zhihui/.pyxbld/temp.linux-x86_64-2.7/pyrex/darkflow/darkflow/cython_utils/cy_yolo_findboxes.c:435:31: fatal error: numpy/arrayobject.h: No such file or directory
include "numpy/arrayobject.h"
^
compilation terminated.
Traceback (most recent call last):
File "run.py", line 3, in
from darkflow.darkflow.net.build import TFNet
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/build.py", line 7, in
from .framework import create_framework
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/framework.py", line 1, in
from . import yolo
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/yolo/init.py", line 2, in
from . import predict
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/yolo/predict.py", line 9, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 445, in load_module
language_level=self.language_level)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 234, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 216, in load_module
inplace=build_inplace, language_level=language_level)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 192, in build_module
reload_support=pyxargs.reload_support)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.py", line 185, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 496, in build_extension
depends=ext.depends)
File "/usr/lib/python2.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python2.7/distutils/unixccompiler.py", line 122, in _compile
raise CompileError, msg
ImportError: Building module darkflow.darkflow.cython_utils.cy_yolo_findboxes failed: ["CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]
I inplace with python2.7, and no error after inplace, but when I run the run.py, it display errors. What should I do?
Thanks a lot
Couldn't import dot_parser, loading of dot files will not be possible. /home/zhihui/.pyxbld/temp.linux-x86_64-2.7/pyrex/darkflow/darkflow/cython_utils/cy_yolo_findboxes.c:435:31: fatal error: numpy/arrayobject.h: No such file or directory
include "numpy/arrayobject.h"
compilation terminated. Traceback (most recent call last): File "run.py", line 3, in
from darkflow.darkflow.net.build import TFNet
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/build.py", line 7, in
from .framework import create_framework
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/framework.py", line 1, in
from . import yolo
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/yolo/init.py", line 2, in
from . import predict
File "/home/zhihui/Jillian/Programes/Tracking-with-darkflow/darkflow/darkflow/net/yolo/predict.py", line 9, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 445, in load_module
language_level=self.language_level)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 234, in load_module
exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 216, in load_module
inplace=build_inplace, language_level=language_level)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.py", line 192, in build_module
reload_support=pyxargs.reload_support)
File "/usr/local/lib/python2.7/dist-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.py", line 185, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.py", line 193, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 496, in build_extension
depends=ext.depends)
File "/usr/lib/python2.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python2.7/distutils/unixccompiler.py", line 122, in _compile
raise CompileError, msg
ImportError: Building module darkflow.darkflow.cython_utils.cy_yolo_findboxes failed: ["CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]
I inplace with python2.7, and no error after inplace, but when I run the run.py, it display errors. What should I do? Thanks a lot