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

Support Protobuf 5+ #5074

Open
Alive-Fish opened this issue Jan 16, 2025 · 2 comments
Open

Support Protobuf 5+ #5074

Alive-Fish opened this issue Jan 16, 2025 · 2 comments
Milestone

Comments

@Alive-Fish
Copy link

What happened?

When I tried to use autogen-ext in our project, there are conflicts between it and original packages. It told that the autogen-ext depended on a old version of protobuf. Is there some way to upgrade it

(.venv) D:\vscps\teams-copilot-ext>poetry add autogen-ext
Using version ^0.4.2 for autogen-ext

Updating dependencies
Resolving dependencies... (6.0s)

    Because no versions of autogen-ext match >0.4.2,<0.5.0
 and autogen-ext (0.4.2) depends on autogen-core (0.4.2), autogen-ext (>=0.4.2,<0.5.0) requires autogen-core (0.4.2).
(1) So, because autogen-core (0.4.2) depends on protobuf (>=4.25.1,<4.26.0), autogen-ext (>=0.4.2,<0.5.0) requires protobuf (>=4.25.1,<4.26.0).

    Because no versions of opentelemetry-exporter-otlp-proto-grpc match >1.28.2,<1.29.0 || >1.29.0,<2.0.0
 and opentelemetry-exporter-otlp-proto-grpc (1.29.0) depends on opentelemetry-proto (1.29.0), opentelemetry-exporter-otlp-proto-grpc (>1.28.2,<2.0.0) requires opentelemetry-proto (1.29.0).
    And because opentelemetry-proto (1.29.0) depends on protobuf (>=5.0,<6.0), opentelemetry-exporter-otlp-proto-grpc (>1.28.2,<2.0.0) requires protobuf (>=5.0,<6.0).
    And because opentelemetry-exporter-otlp-proto-grpc (1.28.2) depends on opentelemetry-proto (1.28.2)
 and opentelemetry-proto (1.28.2) depends on protobuf (>=5.0,<6.0), opentelemetry-exporter-otlp-proto-grpc (>=1.28.2,<2.0.0) requires protobuf (>=5.0,<6.0).
    And because autogen-ext (>=0.4.2,<0.5.0) requires protobuf (>=4.25.1,<4.26.0) (1), autogen-ext (>=0.4.2,<0.5.0) is incompatible with opentelemetry-exporter-otlp-proto-grpc (>=1.28.2,<2.0.0)
    So, because teams-copilot-extension depends on both opentelemetry-exporter-otlp-proto-grpc (^1.28.2) and autogen-ext (^0.4.2), version solving failed.  

What did you expect to happen?

No issues when adding autogen-ext.

How can we reproduce it (as minimally and precisely as possible)?

Install the following packages by poetry.

opentelemetry-exporter-otlp-proto-grpc = "^1.28.2"
autogen-ext = "^0.4.2"

AutoGen version

0.4.2

Which package was this bug in

Core

Model used

gpt-4o

Python version

3.12.8

Operating system

Windows 11

Any additional info you think would be helpful for fixing this bug

No response

@jackgerrits
Copy link
Member

The reason for the current protobuf version selection was due to constraints imparted by open telemetry.

It looks like support has now been merged and is now released. So we should be able to move to protobuf 5+

@jackgerrits jackgerrits changed the title Dependency of protobuf is too low and hope to support 5.* Support Protobuf 5+ Jan 16, 2025
@jackgerrits jackgerrits added this to the 0.4.x milestone Jan 16, 2025
@Alive-Fish
Copy link
Author

Great! Thank you!

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

No branches or pull requests

2 participants