I’m trying to configure the Sentry GRPCIntegration in a new project, just as it’s described in the docs. When running the application, I get this error:
from sentry_sdk.integrations.grpc import GRPCIntegration
File "/usr/local/lib/python3.12/site-packages/sentry_sdk/integrations/grpc/__init__.py", line 11, in <module>
from .client import ClientInterceptor
File "/usr/local/lib/python3.12/site-packages/sentry_sdk/integrations/grpc/client.py", line 17, in <module>
raise DidNotEnable("grpcio is not installed")
sentry_sdk.integrations.DidNotEnable: grpcio is not installed
As I’m running my app in a Docker container, I tried running the configuration in a Python virtual. environment, by running the interpreter. I used the same configuration as in the docs i provided:
import sentry_sdk
from sentry_sdk.integrations.grpc import GRPCIntegration
sentry_sdk.init(
dsn="https://[email protected]/80959",
enable_tracing=True,
integrations=[
GRPCIntegration(),
],
)
with a proper sentry dsn, of course.
And I get the same error.