roscore error | AttributeError: 'module' object has no attribute 'ThreadingMixIn'
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'
In order for (other) people to help you, please clarify three things:
python --version
?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.