BerkeleyAutomation / gqcnn

Python module for GQ-CNN training and deployment with ROS integration.
https://berkeleyautomation.github.io/gqcnn
Other
306 stars 149 forks source link

Issue: Installation Issue #110

Closed nalindas9 closed 4 years ago

nalindas9 commented 4 years ago

System information

Describe the problem I am trying to run the Dexnet 4.0 ROS Policy (https://berkeleyautomation.github.io/gqcnn/tutorials/tutorial.html#) in a Virtual Environment. The problem is that I am facing installation issues while installing the "Visualization" package from cpu_requirements.txt. All of the other packages are installing correctly.

I tried installing the visualization package in python 3.7 in anaconda and it works. However, it is not able to install it for Python2. Therefore, it is not able to import the visualization module in "policy.py". I am using python 2.7.12 in my virtual environment (using Virtualenv) since I want to avoid conflicts with ROS.

Could you let me know how to install the visualization package with pip on python2? Thanks!

Provide the exact sequence of commands / steps that you executed before running into the problem Creating the virtual environment

  1. virtualenv -p /home/username/opt/python-2.7.15/bin/python dexnet

ROS Installation

  1. Followed the same process given here - https://berkeleyautomation.github.io /gqcnn/install/install.html#ros-installation

Installation of CPU and GPU requirements

  1. Installed each package separately using "pip install". For eg. pip install autolab_core.
  2. Facing problem while running "pip install visualization".
    The error log is attached.
    error_log_visualization.txt
  3. Hence problem while running "roslaunch gqcnn grasp_planning_service.launch model_name:=GQCNN-4.0-PJ".

Traceback (most recent call last):
File "/home/nalindas9/sawyer_ws/src/gqcnn/ros_nodes/grasp_planner_node.py", line 49, in <mod ule>
from visualization import Visualizer2D as vis
ImportError: No module named visualization

Any other info / logs

visatish commented 4 years ago

Hi @nalindas9,

After a bit of googling around, it seems that your issue is caused by a missing libspatialindex as mentioned here. Can you try following these instructions from our Travis build to install it and then see if pip install rtree works?

Thanks, Vishal

nalindas9 commented 4 years ago

@visatish Okay sure. I will try that. Thank you! Also, I tried installing the visualization package via pip as well as pip3 on other computers as well. It's throwing up the same error. I tried installing the previous releases too. Nothing worked. I also tried updating setup tools using

pip install -U setuptools

It showed the same error. I think there is an issue in the visualization package. It seems to work only on python 3.7 +.