Sentry-python: Pyramid integration: AttributeError: 'module' object has no attribute '_call_view'

Created on 4 Nov 2020  路  3Comments  路  Source: getsentry/sentry-python

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
question

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings