我有一个ImportError:
(tensorflow) kei@giga:~/darkflow$ ./flow --model cfg/yolo.cfg --load yolo.weights --savepb
Traceback (most recent call last):
File "./flow", line 4, in
from darkflow.cli import cliHandler
File "/home/kei/darkflow/darkflow/cli.py", line 3, in
from .net.build import TFNet
File "/home/kei/darkflow/darkflow/net/build.py", line 7, in
from .framework import create_framework
File "/home/kei/darkflow/darkflow/net/framework.py", line 1, in
from . import yolo
File "/home/kei/darkflow/darkflow/net/yolo/init.py", line 2, in
from . import predict
File "/home/kei/darkflow/darkflow/net/yolo/predict.py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
ImportError: /home/kei/darkflow/darkflow/cython_utils/cy_yolo_findboxes.so: undefined symbol: _Py_ZeroStruct
我该怎么办?
预先感谢
答案 0 :(得分:1)
您有一个混合的编译问题。您是否尝试使用Python 2.7或3.x或类似的工具进行构建?最好是彻底清理项目,然后使用目标版本进行重建。
答案 1 :(得分:1)
我遇到了类似的问题,我通过在Cython中清理和重建应用程序来解决了该问题
setup.py clean --all