i have a error "Traceback (most recent call last):" could you help me?
~$ rosrun rosserial_python serial_node.py /dev/ttyACM0
Traceback (most recent call last): File "/home/ahmet/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 39, in <module> from rosserial_python import SerialClient, RosSerialServer File "/home/ahmet/catkin_ws/devel/lib/python2.7/dist-packages/rosserial_python/__init__.py", line 34, in <module> exec(__fh.read()) File "<string>", line 1, in <module> File "/home/ahmet/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 42, in <module> import queue ImportError: No module named queue"
When i used queue with capital Q in code, i have this error below.what should i do?
~$ rosrun rosserial_python serial_node.py /dev/ttyACM0
Traceback (most recent call last):
File "/home/ahmet/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 99, in <module> client.port.close() NameError: name 'client' is not defined
my ros is melodic version and python version is 2.7
In Python 2 the module is Queue with capital Q.
i edited question a minute ago.i have last error that " ~$ rosrun rosserial_python serial_node.py /dev/ttyACM0
Traceback (most recent call last):
File "/home/ahmet/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 99, in <module> client.port.close() NameError: name 'client' is not defined "
@turkoahmet. If you got a response to a question then it should be accepted an another question started not edited for your future consideration.
Your answer may not be correct, after all, the error persists. ?
It’s a different error.