Skip to content

sentry-sdk==19.0 init throws RuntimeError on python3.6 #858

@sgjurano

Description

@sgjurano
import sentry_sdk

...

sentry_sdk.init(
        dsn,
        environment=env,
        debug=True,
)
/usr/local/lib/python3.6/site-packages/sentry_sdk/hub.py:106: in _init
    client = Client(*args, **kwargs)  # type: ignore
/usr/local/lib/python3.6/site-packages/sentry_sdk/client.py:86: in __init__
    self._init_impl()
/usr/local/lib/python3.6/site-packages/sentry_sdk/client.py:132: in _init_impl
    "auto_enabling_integrations"
/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/__init__.py:119: in setup_integrations
    type(integration).setup_once()
/usr/local/lib/python3.6/site-packages/sentry_sdk/integrations/flask.py:75: in setup_once
    request_started.connect(_request_started)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <flask.signals._FakeSignal object at 0x7fc514b484e0>, args = (<function _request_started at 0x7fc515228840>,), kwargs = {}

    def _fail(self, *args, **kwargs):
        raise RuntimeError(
>           "Signalling support is unavailable because the blinker"
            " library is not installed."
        )
E       RuntimeError: Signalling support is unavailable because the blinker library is not installed.

/usr/local/lib/python3.6/site-packages/flask/signals.py:39: RuntimeError

It can be fixed if blinker is manually installed, please add blinker to sentry-sdk dependencies.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions