Skip to content

Latest Sentry SDK 1.31.1 not compatible with latest Quart 0.19.2 #2406

Closed
@larsblumberg

Description

@larsblumberg

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.31.1

Steps to Reproduce

  1. requirements.txt:
Quart==0.19.2
sentry-sdk[quart]==1.31.1
  1. pip3 install && python3 ...

raises sentry_sdk.integrations.DidNotEnable: Quart is not installed:

    try:                                   
        from quart import (  # type: ignore 
            has_request_context,
            has_websocket_context,
            Request,                       
            Quart,                         
            request,                       
            websocket,
        )                                  
        from quart.scaffold import Scaffold  # type: ignore
        from quart.signals import (  # type: ignore
            got_background_exception,
            got_request_exception,
            got_websocket_exception,
            request_started,
            websocket_started,
        )                                  
        from quart.utils import is_coroutine_function  # type: ignore
    except ImportError:
>       raise DidNotEnable("Quart is not installed")
E       sentry_sdk.integrations.DidNotEnable: Quart is not installed

/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/quart.py:51: DidNotEnable

Expected Result

No import errors and quart SDK detected.

Actual Result

Import error leading to quart not being detected.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Waiting for: Product Owner

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions