installing xds-proto breaks opentelemetry-proto

Đang mở
#4,843 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện trình tự cài đặt và lỗi import đối với opentelemetry.proto.common.v1.common_pb2.InstrumentationScope. So sánh nội dung và metadata của các package opentelemetry-proto và xds-protos đã cài đặt để xác định các tệp xung đột. Được xem là hoàn tất khi import vẫn hoạt động sau khi cài đặt xds-protos mà không cài đặt lại opentelemetry-proto.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Describe your environment

OS: (e.g, Ubuntu)
Python version: (e.g., Python 3.11.2)
SDK version: (e.g., 1.39.0)
API version: (e.g., 1.39.0)

What happened?

after installing xds-proto some opentelemetry-proto files becomes broken

Steps to Reproduce
$ uv pip uninstall xds-protos opentelemetry-proto
warning: Skipping opentelemetry-proto as it is not installed
warning: Skipping xds-protos as it is not installed
warning: No packages to uninstall

$ uv pip install opentelemetry-proto
 + opentelemetry-proto==1.39.0
 + protobuf==6.33.2

$ python -c "from opentelemetry.proto.common.v1.common_pb2 import InstrumentationScope"
// everything is fine

$ uv pip install xds-protos
 + grpcio==1.76.0
 + typing-extensions==4.15.0
 + xds-protos==1.76.0

$ python -c "from opentelemetry.proto.common.v1.common_pb2 import InstrumentationScope"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'InstrumentationScope' from 'opentelemetry.proto.common.v1.common_pb2'

reinstalling opentelemetry-proto after it fixes ImportError

Expected Result

no ImportError after installing xds-proto

Actual Result

ImportError

Additional context

No response

Would you like to implement a fix?

None

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Ngôn ngữ chính
Python
Star
2.7k
Fork
1.1k
Merge trung bình
3 ngày 12 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của open-telemetry/opentelemetry-python

Tất cả issue của open-telemetry/opentelemetry-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.