Closed nategoethel closed 2 weeks ago
Although the issue seems to be caused by:
opentelemetry-instrumentation-test==1.0.0b.dev
the actual error originates from the sqlalchemy
dependency (if included in your project): https://github.com/open-telemetry/opentelemetry-python-contrib/blob/77613da39651e9406f163249c5cc90e6e226d964/opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py#L164; It appears to be the only module missing a version specifier (e.g., >= 3.0). Adding this version specifier resolves the issue on my end. Looks like something has changes in Python packaging
module recently as I don't see any changes in bootstrap_gen.py.
@emdneto, please hold off on merging your PR and consider fixing this line first.
@rayrapetyan It's not just sqlalchemy, got the same error and I don't have sqlalchemy on my env.
Also the package is empty so am not sure why we even keep it around.
+1 getting the same error
@emdneto do we have a workaround for this while the fix is not deployed? I could not find a flag to exclude libraries from opentelemetry-bootstrap
@Lelor downgrading the last release (0.48b0) has generally worked for us.
@rayrapetyan It's not just sqlalchemy, got the same error and I don't have sqlalchemy on my env.
I was wrong saying sqlalchemy should be in the list of dependencies of your project (seems it fails for everyone), but still the "packaging.version.InvalidVersion: Invalid version: '.'"
error comes from the sqlalchemy version specifier absence and not the presence of "opentelemetry-instrumentation-test==1.0.0b.dev" (at least on my machine)
@rayrapetyan
We are in the process of resolving both issues separately, one to remove "opentelemetry-instrumentation-test==1.0.0b.dev" as a dependency and the other to add the version constraint to sqlalchemy, both of which will be released together in a patch soon. Ill update this issue once those are resolved.
Describe your environment
OS: Ubuntu Python version: 3.11.6 Package version: 0.49b0
What happened?
The following commands (specifically
opentelemetry-bootstrap --action install
) fails during docker image build:Here are the logs:
Steps to Reproduce
I'm not able to reproduce this locally, but it happens regularly in our CI pipelines.
Expected Result
opentelemetry-bootstrap --action install
works with the latest release.Actual Result
Failure
Additional context
No response
Would you like to implement a fix?
None