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

Is mongodb_store compatible with python3?

asked 2020-12-16 15:06:33 -0500

stefan_frei gravatar image

I've installed mongodb_store following the steps outlined here and try to run the example 7.1 Python Message Store Client here. By default, I use python3 and get the error ModuleNotFoundError: No module named 'StringIO'. I verified running with python2 and it executes fine. I found out that the StringIO package is deprecated in python3. So, is there a way to run mongodb_store with python3?

edit retag flag offensive close merge delete


Can you provide more information, like your host OS and a list of your installation and execution commands. For what it is worth Python 3 is only supported in Noetic and ROS 2.

kscottz gravatar image kscottz  ( 2020-12-16 17:07:09 -0500 )edit

I am on ubuntu 18.04 with ros-melodic. Thanks for the hint. mongodb_store is not available for noetic, so it only works with python2.

stefan_frei gravatar image stefan_frei  ( 2020-12-17 01:04:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-12-17 05:08:11 -0500

stefan_frei gravatar image

For the record: mongodb_store is only available for kinetic and melodic but nor for noetic, so python3 is not supported.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-12-16 15:06:33 -0500

Seen: 86 times

Last updated: Dec 17 '20