Skip to content

cannot import name 'get_dist_dependency_conflicts' Did you mean: 'get_dependency_conflicts' #82

@GalDayan

Description

@GalDayan

Hi,

That happens when running
./scripts/run-end-to-end-latency-routing.sh

this PR is solving the issue - Azure/azure-sdk-for-python#40465

The new 1.32.0 version of opentelemetry-api and opentelemetry-sdk brings a breaking change that removes the get_dist_dependency_conflicts() function used by azure-monitor-opentelemetry.

File "/opt/miniconda3/lib/python3.12/site-packages/azure/monitor/opentelemetry/_configure.py", line 10, in <module>
    from opentelemetry.instrumentation.dependencies import (
ImportError: cannot import name 'get_dist_dependency_conflicts' from 'opentelemetry.instrumentation.dependencies' (/opt/miniconda3/lib/python3.12/site-packages/opentelemetry/instrumentation/dependencies.py). Did you mean: 'get_dependency_conflicts'?

To resolve the issue, it's required to upgrade
from
azure-monitor-opentelemetry==1.3.0

to
azure-monitor-opentelemetry==1.6.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions