Importing `from raven.contrib.flask import Sentry` leads to RuntimeError because blinker is missing
See original GitHub issueI 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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you install raven like this?
pip install raven[flask]
True, installing with flask as extras solved the issue for me.