Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rosbridge-library: Use PyMongo for BSON implementation #1

Closed
wants to merge 1 commit into from

Conversation

hacker1024
Copy link
Owner

@hacker1024 hacker1024 commented Aug 6, 2023

RobotWebTools/rosbridge_suite#198

[rosbridge_websocket-1] Traceback (most recent call last):
[rosbridge_websocket-1]   File "/nix/store/0clz8waa2p2hg4d2v1d43i9wfz1lfr7s-ros-env/lib/python3.10/site-packages/rosbridge_library/util/__init__.py", line 13, in <module>
[rosbridge_websocket-1]     bson.BSON
[rosbridge_websocket-1] AttributeError: module 'bson' has no attribute 'BSON'
[rosbridge_websocket-1] 
[rosbridge_websocket-1] During handling of the above exception, another exception occurred:
[rosbridge_websocket-1] 
[rosbridge_websocket-1] Traceback (most recent call last):
[rosbridge_websocket-1]   File "/nix/store/0clz8waa2p2hg4d2v1d43i9wfz1lfr7s-ros-env/lib/rosbridge_server/rosbridge_websocket", line 41, in <module>
[rosbridge_websocket-1]     from rosbridge_library.capabilities.advertise import Advertise
[rosbridge_websocket-1]   File "/nix/store/0clz8waa2p2hg4d2v1d43i9wfz1lfr7s-ros-env/lib/python3.10/site-packages/rosbridge_library/capabilities/advertise.py", line 37, in <module>
[rosbridge_websocket-1]     from rosbridge_library.internal.publishers import manager
[rosbridge_websocket-1]   File "/nix/store/0clz8waa2p2hg4d2v1d43i9wfz1lfr7s-ros-env/lib/python3.10/site-packages/rosbridge_library/internal/publishers.py", line 38, in <module>
[rosbridge_websocket-1]     from rosbridge_library.internal import message_conversion, ros_loader
[rosbridge_websocket-1]   File "/nix/store/0clz8waa2p2hg4d2v1d43i9wfz1lfr7s-ros-env/lib/python3.10/site-packages/rosbridge_library/internal/message_conversion.py", line 44, in <module>
[rosbridge_websocket-1]     from rosbridge_library.util import bson
[rosbridge_websocket-1]   File "/nix/store/0clz8waa2p2hg4d2v1d43i9wfz1lfr7s-ros-env/lib/python3.10/site-packages/rosbridge_library/util/__init__.py", line 15, in <module>
[rosbridge_websocket-1]     raise Exception(
[rosbridge_websocket-1] Exception: BSON installation does not support all necessary features. Please use the MongoDB BSON implementation. See: https://github.com/RobotWebTools/rosbridge_suite/issues/198

@hacker1024 hacker1024 closed this Aug 6, 2023
hacker1024 pushed a commit that referenced this pull request Sep 12, 2023
Without this, running `ros2 run plotjuggler plotjuggler` results in:

    qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    Stack trace (most recent call last):
    lopsided98#13   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
    lopsided98#12   Object "/nix/store/g7mcg164p44hzgra9sp653a34d276vw2-ros-humble-plotjuggler-3.7.1-r1/lib/plotjuggler/plotjuggler", at 0x473b04, in
    lopsided98#11   Object "/nix/store/1x4ijm9r1a88qk7zcmbbfza324gx1aac-glibc-2.37-8/lib/libc.so.6", at 0x7f512523db88, in __libc_start_main
    lopsided98#10   Object "/nix/store/1x4ijm9r1a88qk7zcmbbfza324gx1aac-glibc-2.37-8/lib/libc.so.6", at 0x7f512523dacd, in
    lopsided98#9    Object "/nix/store/g7mcg164p44hzgra9sp653a34d276vw2-ros-humble-plotjuggler-3.7.1-r1/lib/plotjuggler/plotjuggler", at 0x4711af, in
    lopsided98#8    Object "/nix/store/b085hafh1ph7alj1nnbzmz29znni4v5w-qtbase-5.15.9/lib/libQt5Widgets.so.5", at 0x7f51263765b8, in QApplicationPrivate::init()
    lopsided98#7    Object "/nix/store/b085hafh1ph7alj1nnbzmz29znni4v5w-qtbase-5.15.9/lib/libQt5Gui.so.5", at 0x7f5125b29cdb, in QGuiApplicationPrivate::init()
    lopsided98#6    Object "/nix/store/b085hafh1ph7alj1nnbzmz29znni4v5w-qtbase-5.15.9/lib/libQt5Core.so.5", at 0x7f51256d13b4, in QCoreApplicationPrivate::init()
    lopsided98#5    Object "/nix/store/b085hafh1ph7alj1nnbzmz29znni4v5w-qtbase-5.15.9/lib/libQt5Gui.so.5", at 0x7f5125b26e3f, in QGuiApplicationPrivate::createEventDispatcher()
    lopsided98#4    Object "/nix/store/b085hafh1ph7alj1nnbzmz29znni4v5w-qtbase-5.15.9/lib/libQt5Gui.so.5", at 0x7f5125b2686a, in QGuiApplicationPrivate::createPlatformIntegration()
    lopsided98#3    Object "/nix/store/b085hafh1ph7alj1nnbzmz29znni4v5w-qtbase-5.15.9/lib/libQt5Core.so.5", at 0x7f5125499cc0, in QMessageLogger::fatal(char const*, ...) const
    lopsided98#2    Object "/nix/store/1x4ijm9r1a88qk7zcmbbfza324gx1aac-glibc-2.37-8/lib/libc.so.6", at 0x7f512523c8b9, in abort
    #1    Object "/nix/store/1x4ijm9r1a88qk7zcmbbfza324gx1aac-glibc-2.37-8/lib/libc.so.6", at 0x7f5125252c85, in gsignal
    #0    Object "/nix/store/1x4ijm9r1a88qk7zcmbbfza324gx1aac-glibc-2.37-8/lib/libc.so.6", at 0x7f51252a1a8c, in
    Aborted (Signal sent by tkill() 2090297 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant