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

Update supported protobuf versions #5810

Open
tday opened this issue Jan 8, 2025 · 2 comments
Open

Update supported protobuf versions #5810

tday opened this issue Jan 8, 2025 · 2 comments
Assignees
Labels
os:macOS Issues on MacOS platform:python MediaPipe Python issues task::all All tasks of MediaPipe type:build/install For Build and Installation issues

Comments

@tday
Copy link

tday commented Jan 8, 2025

OS Platform and Distribution

macOS 14.3

Compiler version

No response

Programming Language and version

Python 3.12.7

Installed using virtualenv? pip? Conda?(if python)

Yes, virtualenv + pip

MediaPipe version

0.10.20

Bazel version

No response

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

No response

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

The current protobuf dependencies are constrainted to protobuf < 5. However, many newer packages like opentelemetry are using > 5.0. This causes an unresolvable conflict.

Complete Logs

Because no versions of opentelemetry-exporter-otlp-proto-http match >1.28.2,<1.29.0 || >1.29.0,<2
 and opentelemetry-exporter-otlp-proto-http (1.28.2) depends on opentelemetry-proto (1.28.2), opentelemetry-exporter-otlp-proto-http (>=1.28.2,<1.29.0 || >1.29.0,<2) requires opentelemetry-proto (1.28.2).
    And because opentelemetry-proto (1.28.2) depends on protobuf (>=5.0,<6.0), opentelemetry-exporter-otlp-proto-http (>=1.28.2,<1.29.0 || >1.29.0,<2) requires protobuf (>=5.0,<6.0).
    And because opentelemetry-exporter-otlp-proto-http (1.29.0) depends on opentelemetry-proto (1.29.0)
 and opentelemetry-proto (1.29.0) depends on protobuf (>=5.0,<6.0), opentelemetry-exporter-otlp-proto-http (>=1.28.2,<2) requires protobuf (>=5.0,<6.0).
    Because no versions of dagster-cloud match >1.9.6,<2.0.0
 and dagster-cloud (1.9.6) depends on opentelemetry-exporter-otlp-proto-http (>=1.28.2,<2), dagster-cloud (>=1.9.6,<2.0.0) requires opentelemetry-exporter-otlp-proto-http (>=1.28.2,<2).
(1) Thus, dagster-cloud (>=1.9.6,<2.0.0) requires protobuf (>=5.0,<6.0).

    Because mediapipe (0.10.20) depends on protobuf (>=4.25.3,<5)
 and no versions of mediapipe match >0.10.18,<0.10.20 || >0.10.20,<0.11.0, mediapipe (>0.10.18,<0.11.0) requires protobuf (>=4.25.3,<5).
    And because mediapipe (0.10.18) depends on protobuf (>=4.25.3,<5), mediapipe (>=0.10.18,<0.11.0) requires protobuf (>=4.25.3,<5).
    And because dagster-cloud (>=1.9.6,<2.0.0) requires protobuf (>=5.0,<6.0) (1), dagster-cloud (>=1.9.6,<2.0.0) is incompatible with mediapipe (>=0.10.18,<0.11.0)
    So, because rep-counter depends on both mediapipe (^0.10.18) and dagster-cloud (^1.9.6), version solving failed.
@tday tday added the type:build/install For Build and Installation issues label Jan 8, 2025
@kuaashish
Copy link
Collaborator

Hi @tday,

It appears that the versions of Mediapipe (0.10.20) and OpenTelemetry you are trying to install have conflicting dependencies due to different protobuf versions. This may be causing the issues you are encountering. Please allow us some time to consult with our team about the possibility of upgrading the protobuf version or identifying any potential workarounds.

Thank you!!

@kuaashish kuaashish added platform:python MediaPipe Python issues os:macOS Issues on MacOS task::all All tasks of MediaPipe labels Jan 9, 2025
@tday
Copy link
Author

tday commented Jan 9, 2025

Thanks, @kuaashish. FWIW, I tested mediapipe 0.10.20 + protobuf 5.29.2 for my use case. It worked without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:macOS Issues on MacOS platform:python MediaPipe Python issues task::all All tasks of MediaPipe type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants