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

Systems libraries missing for event bus use? #94

Closed
mariajgrimaldi opened this issue Dec 11, 2024 · 2 comments · Fixed by #95
Closed

Systems libraries missing for event bus use? #94

mariajgrimaldi opened this issue Dec 11, 2024 · 2 comments · Fixed by #95
Assignees

Comments

@mariajgrimaldi
Copy link

mariajgrimaldi commented Dec 11, 2024

Description

I was testing the event bus with the redis implementation by following these instructions: https://github.com/openedx/event-bus-redis/blob/main/docs/tutor_installation.rst, which mention that discovery can be used as consumer of events. When trying to run:

# Run below command and delete any xblock from studio to see the event logs flow in the consumer.
tutor dev run discovery ./manage.py consume_events --topic xblock-deleted --group_id test_group --extra '{"consumer_name": "c1"}'

Discovery didn't do much but raised this warning:

/openedx/venv/lib/python3.12/site-packages/openedx_events/event_bus/__init__.py:64: UserWarning: Failed to load <class 'openedx_events.event_bus.EventBusConsumer'> from setting EVENT_BUS_CONSUMER: ModuleNotFoundError("No module named '_bz2'"); component will be inactive

I've ended up instilling a few system libraries libbz2-dev xz-utils liblzma-dev by adding them manually to the Dockerfile which fixed the error raised while running the consumer. I don't know why these libraries are missing or if there's something wrong with my particular setup.

Version: main (nightly)

@DawoudSheraz DawoudSheraz moved this from Pending Triage to Backlog in Tutor project management Dec 12, 2024
@Faraz32123 Faraz32123 self-assigned this Jan 8, 2025
Faraz32123 pushed a commit to edly-io/tutor-discovery that referenced this issue Jan 8, 2025
- add support to consume events from event bus in discovery. Explanation can be viewed here: https://github.com/openedx/event-bus-redis/blob/main/docs/tutor_installation.rst
- close overhangio#94
@Faraz32123
Copy link
Collaborator

Hey @mariajgrimaldi, Thanks for the details.
I have tested it out. The issue does exist for the event-bus testing and I have tested it. We only require these libbz2-dev liblzma-dev dependencies to make it work.

@mariajgrimaldi
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants