I got an error when integrated Sentry with Pyramid, is there anything wrong with this setup?
File "/Users/thoong/Projects/test-pyramid/venv/lib/python2.7/site-packages/sentry_sdk/client.py", line 132, in _init_impl
"auto_enabling_integrations"
File "/Users/thoong/Projects/test-pyramid/venv/lib/python2.7/site-packages/sentry_sdk/integrations/__init__.py", line 119, in setup_integrations
type(integration).setup_once()
File "/Users/thoong/Projects/test-pyramid/venv/lib/python2.7/site-packages/sentry_sdk/integrations/pyramid.py", line 69, in setup_once
old_call_view = router._call_view
AttributeError: 'module' object has no attribute '_call_view'
Pyramid setup: __init__.py
sentry_sdk.init(
"Sentry DSN",
integrations=[PyramidIntegration()],
)
def main(global_config, **settings):
config = Configurator(settings=settings)
Environments:
- Python 2.7.16
- pyramid==1.5
- sentry-sdk==0.19.1
The Pyramid integration requires Pyramid 1.6+.
I see we don't have this in docs, will fix.
Thank you, I upgraded Pyramid (version 1.10.4) and it worked.