Forums

Sentry Integration Issue

I have been getting this error message anytime I try to install sentry:

2024-03-26 23:42:04,376: Error running WSGI application
2024-03-26 23:42:04,377: AttributeError: module 'redis.asyncio.cluster' has no attribute 'ClusterPipeline'
2024-03-26 23:42:04,377:   File "/var/www/www_cat5python_com_wsgi.py", line 22, in <module>
2024-03-26 23:42:04,377:     from main import application
2024-03-26 23:42:04,377: 
2024-03-26 23:42:04,377:   File "/home/cat5/bottleapp/main.py", line 7, in <module>
2024-03-26 23:42:04,377:     sentry_sdk.init(
2024-03-26 23:42:04,377: 
2024-03-26 23:42:04,377:   File "/home/cat5/.local/lib/python3.10/site-packages/sentry_sdk/hub.py", line 102, in _init
2024-03-26 23:42:04,378:     """
2024-03-26 23:42:04,378: 
2024-03-26 23:42:04,378:   File "/home/cat5/.local/lib/python3.10/site-packages/sentry_sdk/client.py", line 175, in __init__
2024-03-26 23:42:04,378:     forwarding them to sentry through the configured transport.  It takes
2024-03-26 23:42:04,378: 
2024-03-26 23:42:04,378:   File "/home/cat5/.local/lib/python3.10/site-packages/sentry_sdk/client.py", line 295, in _init_impl
2024-03-26 23:42:04,378:     )
2024-03-26 23:42:04,378: 
2024-03-26 23:42:04,378:   File "/home/cat5/.local/lib/python3.10/site-packages/sentry_sdk/integrations/__init__.py", line 134, in setup_integrations
2024-03-26 23:42:04,378:     try:
2024-03-26 23:42:04,379: 
2024-03-26 23:42:04,379:   File "/home/cat5/.local/lib/python3.10/site-packages/sentry_sdk/integrations/redis/__init__.py", line 381, in setup_once
2024-03-26 23:42:04,379:     _patch_redis_cluster()
2024-03-26 23:42:04,379: 
2024-03-26 23:42:04,379:   File "/home/cat5/.local/lib/python3.10/site-packages/sentry_sdk/integrations/redis/__init__.py", line 308, in _patch_redis_cluster
2024-03-26 23:42:04,379:     async_cluster.ClusterPipeline,

Looks like incompatible versions of some packages.

pip install -U redis

seems to resolve this issue.