groove-x / mqtt_bridge

mqtt_bridge provides a functionality to bridge between ROS and MQTT in bidirectional
MIT License
160 stars 146 forks source link

python3 compatibility (basestring) #35

Closed michrag closed 4 years ago

michrag commented 4 years ago

Had to substitute basestring with str in app.py and bridge.py to make it work with python3. I could push the commit if you let me. Thanks.

michrag commented 4 years ago

Don't know if it is related, but running the demo (after having removed a line from demo.launch like explained here, i get the following error:

[INFO] [1604420450.125915]: MQTT connected [ERROR] [1604420468.085236]: sequence item 0: expected str instance, bytes found

Any ideas?

mayershoc commented 4 years ago

Hey Otacon5555, I had the same issue and fixed it in my fork. Give it a try and let me know if you come across any problems. BR, Chris

michrag commented 4 years ago

Thank you very much mayershoc, your fork is working fine for me!

I'll close this issue then and use your version. Thank again!