ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

I recently struggled with the same problem, so follow these instructions and it would get working:

1) If you have both Python 2 and Python 3 at the same system then founding the right packages in the right directories can become a big mess. What I did was use Pycharm (virtual environment) and use Python 2.7 as the interpreter when you create a new project.

2) Use the command 'python -m site' and see the defined directories to look for the required packages. For example, right now it can't find the inject package in the defined directories but the package would be installed (probably in python 3.7 directory).

3) Install the specified required versions listed in the requirements.txt packages and NOT the latest ones. Use the pip install --target=/someplace package_name.version For example, I downloaded the packages in the python2.7/sitepackages

4) Start mosquitto by just writing 'mosquitto' in a new terminal.

5) Run the roslaunch command.

6) You might also have to install the rosbridge package.

Do these steps and I believe it will get working. I spent a lot of time struggling with the same issue so hopefully it helps :)