From d200ec3b40af2d215993715ee5463800ff0ff0c8 Mon Sep 17 00:00:00 2001 From: Luke Zhang Date: Mon, 3 Nov 2025 09:08:54 -0800 Subject: [PATCH] Fix dependency conflicts in Python sample app with ADOT Python v1.37.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: ADOT Python E2E tests failed after upgrading ADOT Python’s upstream dependency from v1.33.1 to v1.37.0. Cause: The Python sample app incorrectly specifies a fixed version of opentelemetry-sdk (v1.33.1) as a dependency, even though it does not rely on that package. This introduces a version conflict with the updated ADOT Python and prevents signal generation. Additionally, opentelemetry-api is pinned to a fixed version, causing further conflicts with ADOT Python. For the sample app, any v1 API package should be compatible. Fix: Removed opentelemetry-sdk from the dependency list. Relaxed opentelemetry-api version constraint to >=1.33.1,<2.0.0. Test: Ran Python sample app without ADOT → Pass. Ran Python sample app with ADOT → Pass. Triggered Python EC2 E2E test → Pass. --- .gitignore | 5 ++++- .../python/django_frontend_service/ec2-requirements.txt | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c23da9456..b4af18292 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,7 @@ build node_modules/ # Ignore Bin files from validator folder -validator/bin \ No newline at end of file +validator/bin + +.venv/ +__pycache__/ \ No newline at end of file diff --git a/sample-apps/python/django_frontend_service/ec2-requirements.txt b/sample-apps/python/django_frontend_service/ec2-requirements.txt index bb91a04b1..b2de134d7 100644 --- a/sample-apps/python/django_frontend_service/ec2-requirements.txt +++ b/sample-apps/python/django_frontend_service/ec2-requirements.txt @@ -4,5 +4,4 @@ pymysql==1.1.1 python-dotenv~=1.0.1 requests~=2.25.1 schedule~=1.2.1 -opentelemetry-sdk==1.33.1 -opentelemetry-api==1.33.1 +opentelemetry-api>=1.33.1,<2.0.0