Closed
Description
Describe your environment
Cross-reference: grpc/grpc#38790
OS: ubuntu-latest
Python version: 3.13 specifically
SDK version: 1.30.0
API version: 1.30.0
What happened?
The lowest allowed version for grpcio
cannot be built on Python 3.13.
Steps to Reproduce
# fresh project
uv add opentelemetry-exporter-otlp-proto-grpc==1.30.0
uv sync --resolution lowest
Expected Result
venv installed
Actual Result
...
src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void
__Pyx_init_assertions_enabled()’:
src/python/grpcio/grpc/_cython/cygrpc.cpp:6354:39: error:
‘_PyInterpreterState_GetConfig’ was not declared in this scope; did you
mean ‘PyInterpreterState_GetID’?
6354 | __pyx_assertions_enabled_flag = !
_PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level;
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PyInterpreterState_GetID
...
distutils.errors.CompileError: command '/usr/bin/c++' failed with exit
code 1
...
`opentelemetry-exporter-otlp-proto-grpc` (v1.30.0) which depends on
`grpcio`
Additional context
I don't know which project should solve this, gRPC or OTEL.
Would you like to implement a fix?
None
Activity