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.

Importing `from raven.contrib.flask import Sentry` leads to RuntimeError because blinker is missing

See original GitHub issue

I followed the instructions of Sentry and added

from raven.contrib.flask import Sentry
sentry = Sentry(app, dsn='https://my_dsn')

to my code. I’ve got

RuntimeError: signalling support is unavailable because the blinker library is not installed

Installink blinker

sudo -H pip install blinker

fixed it. Should blinker be added to the requirements.txt of raven?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
ashwoodscommented, Sep 12, 2017

Did you install raven like this?

pip install raven[flask]

0reactions
nandakarvapalycommented, Mar 19, 2020

True, installing with flask as extras solved the issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask — Raven 5.32.0 documentation
The first thing you'll need to do is to initialize Raven under your application: from raven.contrib.flask import Sentry sentry = Sentry(app, dsn='___DSN___').
Read more >
Automatic Inference of Environment Dependencies for Python ...
Running this Flask app, after installing Flask and Raven, will result in ImportError: No module named blinker. The system must also have blinker ......
Read more >
Flask Documentation - Read the Docs
This part of the documentation, which is mostly prose, begins with some background information about Flask, then focuses on step-by-step ...
Read more >
DockerizeMe.pdf - DockerizeMe: Automatic Inference of ...
Whenrun in a clean environment, over 50% of public Python gists faildue to an import error for a missing library.We present DockerizeMe, a...
Read more >
https://git.cogto.com/playground/flask/commit/9e39...
If you make a Python package that -should export a Flask command line ... to your Flask app:: from raven.contrib.flask import Sentry sentry...
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