Traceback (most recent call last):
File "/opt/ros/kinetic/bin/roscore", line 36, in <module>
from rosmaster.master_api import NUM_WORKERS
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/__init__.py", line 35, in <module>
from .main import rosmaster_main
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/main.py", line 43, in <module>
import rosmaster.master
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/master.py", line 47, in <module>
import rosmaster.master_api
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/master_api.py", line 72, in <module>
from rosmaster.util import xmlrpcapi
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/util.py", line 48, in <module>
from defusedxml.xmlrpc import monkey_patch
ImportError: No module named 'defusedxml'
Traceback (most recent call last):
File "/opt/ros/kinetic/bin/roscore", line 69, in <module>
import roslaunch
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 51, in <module>
from . import param_dump as roslaunch_param_dump
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/param_dump.py", line 40, in <module>
import roslaunch.config
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/config.py", line 45, in <module>
import rospkg.distro
File "/usr/lib/python2.7/dist-packages/rospkg/distro.py", line 44, in <module>
import yaml
File "/usr/local/lib/python3.5/dist-packages/yaml/__init__.py", line 399
class YAMLObject(metaclass=YAMLObjectMetaclass):
^
SyntaxError: invalid syntax
这两个问题如何解决
goodQ已获得悬赏 1 阿木币
最佳答案
关键词:ImportError: No module named 'defusedxml' 找一下defusedxml这个模块是否已被安装吧