My hopper project works fine by using Sara learning algorithm, but when I tried to use baseline Deep Q learning, it fails run when import my hopper task file which imports ROS tf package. Below is the code and error message. I try to manually import tf in python2.7, it works fine. BTW, I have source the Python3 virtue environment before that. Anyway to solve that?
Logging to /tmp/openai-2019-10-09-09-54-32-912843
Traceback (most recent call last):
File “/home/user/catkin_ws/src/hopper_new_code/src/start_training_deepq.py”, line 22, in
import hopper_robot_task_env
File “/home/user/catkin_ws/src/hopper_new_code/src/hopper_robot_task_env.py”, line 14, in
import tf
File “/opt/ros/kinetic/lib/python2.7/dist-packages/tf/init.py”, line 28, in
from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
File “/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_ros/init.py”, line 38, in
from tf2_py import *
File “/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_py/init.py”, line 38, in
from ._tf2 import *
ImportError: dynamic module does not define module export function (PyInit__tf2)
Thanks for your help. I skipped some unit, going directly to hopper training and didn’t note the request to source python3 setup file. Now the problem becomes roslaunch cannot find the hopper package after source python3 setup file. I found this topic “Chapter 8 - Problem with launch file” has same issue, so I replied there and hope to get answer.
this solution is not working in robotigniteacademy… can someone test and see maybe something is changed in openai_venv. I am unable to solve cubli with deepq