question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
linzmeyercommented, Nov 18, 2020

pip install --upgrade ‘sentry-sdk[flask]’ worked for me.

3reactions
wcstencommented, Oct 13, 2020

Using auto_enabling_integrations=False in sentry_sdk.init works for me. Example:

sentry_sdk.init(settings.SENTRY_DSN, auto_enabling_integrations=False)
Read more comments on GitHub >

github_iconTop Results From Across the Web

8. Errors and Exceptions — Python 3.11.1 documentation
10 * (1/0) Traceback (most recent call last): File "<stdin>", line 1, ... exc must be exception instance or None. raise RuntimeError from...
Read more >
python 3 error RuntimeError: super(): no arguments
Using Python 3, I got this error because I forgot to include self in the ... job=input("job: ")) class Progress(Project): def __init__(self, ...
Read more >
Unable to install snappy - jpy problem? - snap - STEP Forum
If I open python3 and try to import snappy I get the following error: ... _ raise RuntimeError('does not seem to be a...
Read more >
How to fix updated pip: RuntimeError: Python 3.5 or later is ...
Looks like you upgraded pip to a version that doesn't support your Python version. Uninstall pip and reinstall the system pip:
Read more >
PyStan: RuntimeError: Initialization Failed - The Stan Forums
3/lib/python3.6/multiprocessing/pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "/home ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found