Fix python-bson to pull pymongo in Gentoo #17593
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apparently for the other distros the
bson
dependency has been generated into a different package from the mainpymongo
package. For example, Ubuntu Xenial: https://packages.ubuntu.com/xenial/python-bson comes from the same source than all pymongo.And the library
python-bson
says it is stripped from pymongo bson and made a package itself but is not compatible with who uses it... in our caserosbridge_library
.Also
python-bson
seems to be in a unstable state currently, they seem to be changing the name of the library itself (to py-bson):py-bson/bson#41
And
rosbridge_library
(who actually depends on it) checks for the correct library here:https://github.com/RobotWebTools/rosbridge_suite/blob/develop/rosbridge_library/src/rosbridge_library/util/__init__.py#L19-L27
There are plenty of issues with things that are different from the
pymongo
bson
: https://github.com/py-bson/bson/issuesUntil this
py-bson
doesn't become a real alternative, or Gentoo, or someone in ros-overlay with more time to dedicate to this headache fixes it... I think this is quite a good workaround.As a note, I noticed all this when actually running
rosbrige_server
in Gentoo. I never was able to run it until today, so I could find all this only today. What a mess.Sorry for all the noise.