airbrake/pybrake

App fails to launch requiring pybrake middleware

Closed this issue · 0 comments

Hello, I have a python 3.7 app that runs as a scheduled ETL, there is no web framework installed.
Upon installing latest pybrake (1.1.0), the app fails to launch when requiring pybrake.

Logs show that the middleware modules are requiring Django, Celery, AioHTTP, Flask, etc, none of which are installed or used by the app.

Traceback (most recent call last): File "main.py", line 4, in <module> import pybrake File "/usr/local/lib/python3.7/site-packages/pybrake/__init__.py", line 3, in <module> from .middleware import celery File "/usr/local/lib/python3.7/site-packages/pybrake/middleware/celery.py", line 3, in <module> import celery.exceptions as excs ModuleNotFoundError: No module named 'celery'
Traceback (most recent call last): File "main.py", line 4, in <module> import pybrake File "/usr/local/lib/python3.7/site-packages/pybrake/__init__.py", line 4, in <module> from .middleware import flask File "/usr/local/lib/python3.7/site-packages/pybrake/middleware/flask.py", line 3, in <module> from flask import ( ModuleNotFoundError: No module named 'flask'

Are all of these true requirements? Rolling back to pybrake 0.4.5 (used in my other apps) fixes the issue.