#1151142 python3-opentelemetry-exporter-otlp-proto-http: No module named 'opentelemetry.exporter.otlp.common'

#1151142#5
Date:
2026-10-17 13:38:03 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:fastapi, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
    import os
    from collections.abc import Mapping, Sequence
    from typing import TYPE_CHECKING, overload
/usr/lib/python3/dist-packages/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py:11: ModuleNotFoundError
=========================== short test summary info ============================
FAILED tests/test_telemetry/test_data.py::test_request_objects_are_not_exported
FAILED tests/test_telemetry/test_environment_integrations.py::test_environment_export_with_existing_integrations[global]
FAILED tests/test_telemetry/test_environment_integrations.py::test_environment_export_with_existing_integrations[explicit]
FAILED tests/test_telemetry/test_environment_integrations.py::test_environment_export_with_existing_integrations[sentry-first]
FAILED tests/test_telemetry/test_environment_integrations.py::test_environment_export_with_existing_integrations[fastapi-first]
FAILED tests/test_telemetry/test_environment_integrations.py::test_environment_export_with_existing_integrations[sentry-classic]
FAILED tests/test_telemetry/test_native_integrations.py::test_sentry_standard_log_processor[True]
FAILED tests/test_telemetry/test_native_integrations.py::test_sentry_standard_log_processor[False]
FAILED tests/test_telemetry/test_runtime.py::test_real_otlp_export_and_repeated_lifespans[]
FAILED tests/test_telemetry/test_runtime.py::test_real_otlp_export_and_repeated_lifespans[/collector/]
FAILED tests/test_telemetry/test_runtime.py::test_concurrent_provider_owner_wins[False]
FAILED tests/test_telemetry/test_runtime.py::test_environment_export_initializes_after_fork
FAILED tests/test_telemetry/test_runtime.py::test_real_otlp_exception_export_without_traces_or_metrics
FAILED tests/test_telemetry/test_runtime.py::test_unsupported_provider_warns_without_preventing_startup[tracer]
FAILED tests/test_telemetry/test_runtime.py::test_unsupported_provider_warns_without_preventing_startup[meter]
FAILED tests/test_telemetry/test_runtime.py::test_unsupported_provider_warns_without_preventing_startup[logger]
FAILED tests/test_telemetry/test_runtime.py::test_failed_registration_closes_new_exporter[ValueError]
FAILED tests/test_telemetry/test_runtime.py::test_failed_registration_closes_new_exporter[AttributeError]
==== 18 failed, 3525 passed, 7 skipped, 17 deselected, 4 xfailed in 48.88s =====
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_fastapi/build; python3.14 -m pytest -W ignore::DeprecationWarning -W ignore::ResourceWarning --ignore=docs_src/ --ignore-glob=tests/test_tutorial/test_sql_databases/test_tutorial* --ignore=tests/test_multipart_installation.py --ignore=tests/test_tutorial/test_graphql --ignore=tests/test_translate.py -k "not test_fastapi_cli and not test_background_task_integrations and not test_current_contrib and not test_current_logfire and not test_logfire_global_provider_without_fastapi_instrumentor and not test_logfire_native_spans_and_exception_logs and not test_registration_provider_prefers_public_metric_reader and not test_concurrent_provider_owner_wins[True] and not (test_environment_export_with_existing_integrations and logfire)"
	rm -fr -- /tmp/dh-xdg-rundir-CI0RQ592
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:34: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1151142#8
Date:
2026-10-17 21:08:11 UTC
From:
To:
Hi,

I'm reassigning this bug to python3-opentelemetry-exporter-otlp-proto-http: the
ModuleNotFoundError comes from the exporter itself, so it can't be imported
at all in sid, not only by the fastapi tests:

  $ python3 -c 'import opentelemetry.exporter.otlp.proto.http.trace_exporter'
  [...]
  ModuleNotFoundError: No module named 'opentelemetry.exporter.otlp.common'

Upstream 1.45.1 added two dependencies to opentelemetry-exporter-otlp-proto-http
(exporter/opentelemetry-exporter-otlp-proto-http/pyproject.toml):

    "opentelemetry-exporter-otlp-common == 0.66b1",
    "opentelemetry-exporter-http-transport[requests] == 0.66b1",

Both are in the same upstream tree (exporter/opentelemetry-exporter-otlp-common
and exporter/opentelemetry-exporter-http-transport, providing
opentelemetry.exporter.otlp.common and opentelemetry.exporter.http.transport),
but debian/rules doesn't build them, so no 1.45.1-1 binary ships those modules.

fastapi 0.143.3-1 will skip the affected tests until this is fixed.

Regards,
Sandro

#1151142#21
Date:
2026-10-17 21:08:11 UTC
From:
To:
Hi,

I'm reassigning this bug to python3-opentelemetry-exporter-otlp-proto-http: the
ModuleNotFoundError comes from the exporter itself, so it can't be imported
at all in sid, not only by the fastapi tests:

  $ python3 -c 'import opentelemetry.exporter.otlp.proto.http.trace_exporter'
  [...]
  ModuleNotFoundError: No module named 'opentelemetry.exporter.otlp.common'

Upstream 1.45.1 added two dependencies to opentelemetry-exporter-otlp-proto-http
(exporter/opentelemetry-exporter-otlp-proto-http/pyproject.toml):

    "opentelemetry-exporter-otlp-common == 0.66b1",
    "opentelemetry-exporter-http-transport[requests] == 0.66b1",

Both are in the same upstream tree (exporter/opentelemetry-exporter-otlp-common
and exporter/opentelemetry-exporter-http-transport, providing
opentelemetry.exporter.otlp.common and opentelemetry.exporter.http.transport),
but debian/rules doesn't build them, so no 1.45.1-1 binary ships those modules.

fastapi 0.143.3-1 will skip the affected tests until this is fixed.

Regards,
Sandro