pip doest'n work

asked 2020-03-24 09:28:01 -0500

rusanrod gravatar image

updated 2020-03-24 10:10:35 -0500

gvdhoorn gravatar image

Straight dump of the error:

 ~/catkin_ws$ sudo pip install pyserial
WARNING: The directory '/home/rusanrod/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pyserial in /usr/local/lib/python3.5/dist-packages (3.4)
~/catkin_ws$ sudo -H pip install pyserial
Requirement already satisfied: pyserial in /usr/local/lib/python3.5/dist-packages (3.4)

al this comes from this error:

~/catkin_ws$ rosrun rosserial_python serial_node.py /dev/ttyUSB0
[rosrun] Couldn't find executable named serial_node.py below /opt/ros/kinetic/share/rosserial_python
edit retag flag offensive close merge delete


As ROS defaults to python 2, maybe try with pip2?

nkhedekar gravatar image nkhedekar  ( 2020-03-24 17:52:46 -0500 )edit

okey, i used it and that happened.: ~/catkin_ws$ sudo -H pip2 install pyserial/usr/local/lib/python2.7/dist-packages/pip-20.0.2-py2.7.egg/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown. warnings.warn(warning, RequestsDependencyWarning) DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/develop... Requirement already satisfied: pyserial in /usr/lib/python2.7/dist-packages (3.0.1)

rusanrod gravatar image rusanrod  ( 2020-03-24 18:07:24 -0500 )edit