roscore error | AttributeError: 'module' object has no attribute 'ThreadingMixIn'

asked 2020-08-17 14:48:22 -0500

sique gravatar image

updated 2020-08-18 09:19:54 -0500

Hello everyone,

it's first time to install ROS by using the bash script, But it shows me some errors. Could any one help me how should i fix it,pls?

Traceback (most recent call last): File "/opt/ros/melodic/bin/roscore", line 36, in <module> from rosmaster.master_api import NUM_WORKERS File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmaster/__init__.py", line 35, in <module> from .main import rosmaster_main File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmaster/main.py", line 43, in <module> import rosmaster.master File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmaster/master.py", line 45, in <module> import rosgraph.xmlrpc File "/opt/ros/melodic/lib/python2.7/dist-packages/rosgraph/__init__.py", line 36, in <module> from . masterapi import Master, MasterFailure, MasterError, MasterException File "/opt/ros/melodic/lib/python2.7/dist-packages/rosgraph/masterapi.py", line 41, in <module> from xmlrpc.client import ServerProxy # Python 3.x File "/opt/ros/melodic/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 87, in <module> class ThreadingXMLRPCServer(socketserver.ThreadingMixIn, SimpleXMLRPCServer): AttributeError: 'module' object has no attribute 'ThreadingMixIn'

edit retag flag offensive close merge delete

Comments

In order for (other) people to help you, please clarify three things:

  1. which "the bash script" are you referring to? Always link to tutorials, guides and/or other things you are reading and/or following. Otherwise it's impossible to know what you are doing
  2. which OS are you using?
  3. what is the output of python --version?
gvdhoorn gravatar image gvdhoorn  ( 2020-08-18 01:20:41 -0500 )edit

Hi, 1. The bash script is from here. 2. I'm using the Ubuntu 18.04 OS. 3. The version is Python 2.7.17 Actually, I have tried again installing following with the tutorials, but there is also same error. Thx again.

sique gravatar image sique  ( 2020-08-18 09:18:48 -0500 )edit