ModuleNotFoundError: No module named 'parse', seemes to be coming from pysdf package [closed]

asked 2022-01-14 08:37:22 -0500

Arnob gravatar image

hi ros developers, recently i've been trying to work with openai and ros. i downloaded openai example projects. while running a launch file from the shadow robot, i faced with this error. i have tried installing "parse" using pip3 install parse but then i faced with another error namely "can not import 'SDF'". so i uninstalled parse. this might be not the parse module i need to install. thank you. im using ros neotic on ubuntu 20.04. my python verson is 3.6 here is the traceback:

Traceback (most recent call last): File "/home/humanoid/simulation_ws/src/shadow_robot_smart_grasping_sandbox/gazebo2rviz/src/gazebo2rviz/gazebo2moveit_collision_node.py", line 12, in <module> from sdf2moveit_collision_node import Sdf2moveit File "/home/humanoid/simulation_ws/src/shadow_robot_smart_grasping_sandbox/gazebo2rviz/src/gazebo2rviz/sdf2moveit_collision_node.py", line 18, in <module> import pysdf File "/home/humanoid/simulation_ws/devel/lib/python3/dist-packages/pysdf/__init__.py", line 34, in <module> exec(__fh.read()) File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'parse'

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by osilva
close date 2022-01-15 19:07:04.617392

Comments

Hi @Arnob

Are you trying to run a Python3 module from OpenAI in ROS Melodic?

If so please note ROS Melodic uses Python2 so when you install with pip3 it will not work.

osilva gravatar image osilva  ( 2022-01-15 17:32:08 -0500 )edit

Repeat question: #q394326. Incorrect tag: Melodic, #q394326 has correct Noetic tag.

osilva gravatar image osilva  ( 2022-01-15 19:07:45 -0500 )edit