报错信息
(ROS_py2) rysin@rysin:~$ rosmsg show geometry_msgs/Twist
Traceback (most recent call last):
File "/opt/ros/melodic/bin/rosmsg", line 35, in <module>
rosmsg.rosmsgmain()
File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmsg/__init__.py", line 754, in rosmsgmain
sys.exit(rosmsg_cmd_show(ext, full, command))
File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmsg/__init__.py", line 582, in rosmsg_cmd_show
import rosbag
File "/opt/ros/melodic/lib/python2.7/dist-packages/rosbag/__init__.py", line 33, in <module>
from .bag import Bag, Compression, ROSBagException, ROSBagFormatException, ROSBagUnindexedException
File "/opt/ros/melodic/lib/python2.7/dist-packages/rosbag/bag.py", line 53, in <module>
from Cryptodome.Cipher import AES
ModuleNotFoundError: No module named 'Cryptodome'
解决方法:
$sudo apt-get install python-crypto-dbg python-crypto-doc python-pip-whl -y
$pip install pycryptodomex
$cd ./anaconda3/envs/ROS_py2/lib/python2.7/site-packages/
$sudo cp -r Cryptodome/ /opt/ros/melodic/lib/python2.7/dist-packages/
解决
疑惑:是什么问题导致的呢?我还不知道…卑微ing…