floatlazer / semantic_slam

Real time semantic slam in ROS with a hand held RGB-D camera
GNU General Public License v3.0
612 stars 177 forks source link

semantic_cloud.py unable to import from color_pcl_generator #26

Closed codieboomboom closed 3 years ago

codieboomboom commented 3 years ago

Hi, anybody know how to solve this?

Traceback (most recent call last): File "/home/boom/catkin_ws/src/semantic_slam/semantic_cloud/src/semantic_cloud.py", line 21, in from color_pcl_generator import PointType, ColorPclGenerator File "/home/boom/catkin_ws/devel/lib/python3/dist-packages/color_pcl_generator/init.py", line 34, in exec(fh.read()) File "", line 1, in ImportError: cannot import name 'PointType' from partially initialized module 'color_pcl_generator' (most likely due to a circular import) (/home/boom/catkin_ws/devel/lib/python3/dist-packages/color_pcl_generator/init.py) [semantic_cloud-2] process has died [pid 6982, exit code 1, cmd /home/boom/catkin_ws/src/semantic_slam/semantic_cloud/src/semantic_cloud.py name:=semantic_cloud __log:=/home/boom/.ros/log/08006776-e2f5-11ea-a59a-6397d188ae3a/semantic_cloud-2.log]. log file: /home/boom/.ros/log/08006776-e2f5-11ea-a59a-6397d188ae3a/semantic_cloud-2*.log

I'm trying to run this with the demo rosbag and seems to be stuck at this issue.

Yueting-Li commented 3 years ago

Hi guy! have you solved this problem?

codieboomboom commented 3 years ago

@Yueting-Li which version of Python running? Maybe you can try modifying the init.py file in the include folder of color_pcl_generator.py and remove the import statement, seems to help for me

Yueting-Li commented 3 years ago

Thanks for your advice! I am running Python 2.7. It seems to help for me, too. No error now.