groove-x/mqtt_bridge

Unable to install inject

mazharshaikh0593 opened this issue · 6 comments

Hello,

I'm trying to use this package for my Master's project work.

I have Ubuntu 20.4 with ROS noetic python3 as well as Ubuntu 16 with ROS kinetic python 2.7.

On noetic, I was able to install all the libraries and run mqtt_bridge successfully, but the codes in app.py and bridge.py don't support python3 language. For example, it doesn't take the base string data type. I tried using str instead-but in line 77 of bridge.py its causing me encoding errors. Do you have any workaround for this? Or m I missing something?

On kinetic, I m unable to install the inject python module. I ran pip2 as well as pip with both suggestions given in this forum.
Error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-JEKfkg/inject/
It seems the inject python module doesn't support python2 now and only python3 is working with it.

Any suggestions or help is welcome. I tried lots of things. Thank you in advance.

I was able to run the mqtt_bridge connection by installing the dependencies manually on kinetic using python 2.7. Everything works fine when I run the code with the MQTT broker locally. However, when I run the code on a separate machine and try to reach the broker on my machine by changing the host address from 'localhost' to 'my IP' I get an error (111: connection refused).

I'm using VMware workstation pro which is installed with ubuntu 16.04 and ROS kinetic version. The network connection is set to the NAT option on VM. Below are the config file details I input. I tried lots of ways to input the host address but got the same error. Anyone has idea what how to solve this? IS there a format In which the host address needs to be specified which I'm not following? Or the host address needs to be something else?

Config file:

host: 192.168.109.132
port: 1883

Same problem.
I'm using Parallels to run Ubuntu 18.04(ROS melodic) on my Mac.
Unfortunately, it's my first time I use mqtt_birdge.
While I follow the guideline, installing requirements.txt, the same error occurred.
스크린샷 2020-08-31 14 35 41

So when I try to run the launch file, the following error has occurred.
스크린샷 2020-08-31 14 50 00

When you could run this mqtt_bridge successfully on Ubuntu 16, haven't you seen this error?

I found the solution for yours and mine.
https://pypi.org/project/Inject/#description

check here to confirm both your python and inject module version.
for me, I built ROS packages with python 2.7.
스크린샷 2020-08-31 17 42 37
therefore, I should have installed inject version 3.x.

so I did
pip install Inject==3.5.4
and it solved.

I found the solution for yours and mine.
https://pypi.org/project/Inject/#description

check here to confirm both your python and inject module version.
for me, I built ROS packages with python 2.7.
스크린샷 2020-08-31 17 42 37
therefore, I should have installed inject version 3.x.

so I did
pip install Inject==3.5.4
and it solved.

good ~!

Sorry for replying too late. I fixed this issue on #37.