📌  相关文章
📜  SerialClient.py”,第 41 行,在<module>import queue ImportError: No module named queue - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:38.097000             🧑  作者: Mango

代码示例1
# The error is showing that in SerialClient.py, line 41 
# imports the queue module, but apparently there can be 
# a version mismatch between python 2/3 calling the module 
# "Queue" vs "queue".

# In your catkin workspace, src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py, 
# Change the line "import queue" to the following:

try: 
    import queue
except ImportError:
    import Queue as queue