2026.05.20 fix compressed_vipc.py by using pyzmq for zmq client#38072
Open
zhangxu1994ye wants to merge 5 commits into
Open
2026.05.20 fix compressed_vipc.py by using pyzmq for zmq client#38072zhangxu1994ye wants to merge 5 commits into
zhangxu1994ye wants to merge 5 commits into
Conversation
Contributor
Process replay diff reportReplays driving segments through this PR and compares the behavior to master. ✅ 0 changed, 66 passed, 0 errors |
added 4 commits
May 21, 2026 14:25
…ing return type annotation, and using idiomatic Python syntax - Remove unused 'capnp' import - Update ZmqSubSocket.recv() return type to bytes | None (can return None on timeout) - Wrap multi-line print statement with parentheses for cleaner formatting - Use set comprehension syntax instead of set() with generator
…resolve ISC002 implicit string concatenation and UP034 extraneous parentheses lint errors.
…n, and extraneous parentheses in compressed_vipc by using explicit string concatenation and splitting debug print message into multiple lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fix the runtime error in tools/compressed_vipc.py caused by the missing zmq implementation.
Problem Description
Running tools/compressed_vipc.py results in an error (see attached screenshot below).

After investigation, I found that the script imports cereal.messaging, which internally uses from msgq.ipc_pyx import SubSocket — a C++ implementation. However, the underlying zmq_impl has been removed. Checking the git history, it appears that the zmq integration was stripped out of msgq in pursuit of zero dependencies, which caused SubSocket to stop working.
Changes Made
Modified the communication layer in tools/compressed_vipc.py:
Verification Result
The modified script runs successfully, and all three camera feeds are now visible in watch3.py.