无法从流程示例文件夹中运行sugiyama.py示例

时间:2019-11-12 22:39:09

标签: flow-project

我按照下载说明进行了操作,使conda env正常工作 但是当我尝试运行示例程序时,我收到一条消息,提示我不知道如何解决

似乎认为opencv在python2中? 为什么会这样呢?

Traceback (most recent call last):  
File "examples/sumo/sugiyama.py", line 11, in  
from flow.envs.ring.accel import AccelEnv, ADDITIONAL_ENV_PARAMS  
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/envs/init.py", line 2, in
from flow.envs.base import Env  
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/envs/base.py", line 10, in
from flow.renderer.pyglet_renderer import PygletRenderer as Renderer  
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/renderer/init.py", line 3, in
from flow.renderer.pyglet_renderer import PygletRenderer  
File "/home/airlab/Desktop/RL-Traffic-Lights/flow/flow/renderer/pyglet_renderer.py", line 7, in
import cv2  
ImportError: /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so: undefined symbol: PyCObject_Type  

0 个答案:

没有答案