-
Notifications
You must be signed in to change notification settings - Fork 800
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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:
# Install OpenTelemetry tracing libraries and set up auto-instrumentation
RUN --mount=type=cache,target=/root/.cache,id=service_pip_cache_${TARGETPLATFORM} \
python -m pip install opentelemetry-distro opentelemetry-exporter-otlp \
&& opentelemetry-bootstrap --action=install
Here are the logs:
#31 13.95 Successfully installed opentelemetry-instrumentation-requests-0.49b0
#31 14.02 Command '['/opt/venv/bin/python', '-m', 'pip', 'install', '-U', '--upgrade-strategy', 'only-if-needed', 'opentelemetry-instrumentation-test==1.0.0b.dev']' returned non-zero exit status 1.
#31 14.02 Traceback (most recent call last):
#31 14.02 File "/opt/venv/bin/opentelemetry-bootstrap", line 8, in <module>
#31 14.02 sys.exit(run())
#31 14.02 ^^^^^
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/opentelemetry/instrumentation/bootstrap.py", line 186, in run
#31 14.02 cmd(default_instrumentations, libraries)
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/opentelemetry/instrumentation/bootstrap.py", line 138, in _run_install
#31 14.02 for lib in _find_installed_libraries(default_instrumentations, libraries):
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/opentelemetry/instrumentation/bootstrap.py", line 124, in _find_installed_libraries
#31 14.02 if _is_installed(lib["library"]):
#31 14.02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/opentelemetry/instrumentation/bootstrap.py", line 108, in _is_installed
#31 14.02 if not req.specifier.filter(dist_version):
#31 14.02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/packaging/specifiers.py", line 993, in filter
#31 14.02 parsed_version = _coerce_version(item)
#31 14.02 ^^^^^^^^^^^^^^^^^^^^^
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/packaging/specifiers.py", line 36, in _coerce_version
#31 14.02 version = Version(version)
#31 14.02 ^^^^^^^^^^^^^^^^
#31 14.02 File "/opt/venv/lib/python3.11/site-packages/packaging/version.py", line 198, in __init__
#31 14.02 raise InvalidVersion(f"Invalid version: '{version}'")
#31 14.02 packaging.version.InvalidVersion: Invalid version: '.'
#31 ERROR: process "/bin/sh -c python -m pip install opentelemetry-distro opentelemetry-exporter-otlp && opentelemetry-bootstrap --action=install" did not complete successfully: exit code: 1
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
emdneto, marcelo-souza-solfacil, rayrapetyan and Lelor
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working