Skip to content

fix(deps): require protobuf >=7.34.1 for utxorpc-spec 0.19#9

Merged
scarmuega merged 5 commits into
mainfrom
fix/spec-0.19-protobuf
May 20, 2026
Merged

fix(deps): require protobuf >=7.34.1 for utxorpc-spec 0.19#9
scarmuega merged 5 commits into
mainfrom
fix/spec-0.19-protobuf

Conversation

@scarmuega
Copy link
Copy Markdown
Member

Problem

utxorpc-spec 0.19 ships protobuf gencode 7.34.1, but pyproject.toml pinned protobuf = "^6.33.0" (runtime <7.0). Protobuf requires the runtime version to be ≥ the linked gencode version, so import utxorpc failed:

google.protobuf.runtime_version.VersionError: Detected incompatible Protobuf Gencode/Runtime versions ... gencode 7.34.1 runtime 6.33.6

This completes the spec-0.19 bump, which raised utxorpc-spec but left protobuf behind.

Fix

Bump the protobuf constraint to ^7.34.1. CI relocks poetry.lock on a clean checkout.

utxorpc-spec 0.19 ships protobuf gencode 7.34.1; the runtime must not be older than the gencode, so the previous ^6.33.0 bound made 'import utxorpc' fail with a protobuf VersionError. CI relocks poetry.lock on a clean checkout.
scarmuega added 4 commits May 20, 2026 12:44
utxorpc-spec 0.19.1 corrects the protobuf bound (>=7.34.1,<8) to match its generated gencode, making the protobuf ^7.34.1 requirement resolvable.
protobuf 7.x (pulled in transitively via utxorpc-spec 0.19.1) requires Python >=3.10, which is incompatible with the previous >=3.9.1 floor.
utxorpc-spec 0.19.2 ships the protoletariat-rewritten imports, making the generated package importable.
Several client modules used protobuf enums (e.g. Stage, an EnumTypeWrapper) as type-annotation parameters, which raised TypeError at import time. Add 'from __future__ import annotations' so annotations are not evaluated at runtime.
@scarmuega scarmuega merged commit 7ddea48 into main May 20, 2026
2 checks passed
@scarmuega scarmuega deleted the fix/spec-0.19-protobuf branch May 20, 2026 22:52
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