MuckRock / muckrock

MuckRock's source code - Please report bugs, issues and feature requests to info@muckrock.com
https://www.muckrock.com
GNU Affero General Public License v3.0
114 stars 22 forks source link

AttributeError: module django.urls.resolvers has no attribute RegexURLResolver #1900

Closed duckduckgrayduck closed 3 months ago

duckduckgrayduck commented 3 months ago

Aug 21 14:16:13 muckrock-staging app/scheduler.1 AttributeError: module 'django.urls.resolvers' has no attribute 'RegexURLResolver'

Found in papertrails on Heroku logs from recent heroku stack update

duckduckgrayduck commented 3 months ago

Found where django.url.resolvers are mentioned: ./src/django-opensearch/opensearch/urls.py:10 ./src/django-opensearch/tests/test_views.py:15:from django.urls.resolvers import URLPattern, URLResolver

but I don't see RegexURLResolver

duckduckgrayduck commented 3 months ago

Traceback (most recent call last): Aug 21 14:27:20 muckrock-staging app/scheduler.1 File "/app/.heroku/python/lib/python3.9/site-packages/newrelic-2.70.0.51/newrelic/config.py", line 1012, in _instrument Aug 21 14:27:20 muckrock-staging app/scheduler.1 getattr(newrelic.api.import_hook.import_module(module), Aug 21 14:27:20 muckrock-staging app/scheduler.1 File "/app/.heroku/python/lib/python3.9/site-packages/newrelic-2.70.0.51/newrelic/hooks/framework_django.py", line 622, in instrument_django_core_urlresolvers Aug 21 14:27:20 muckrock-staging app/scheduler.1 module.RegexURLResolver.resolve) Aug 21 14:27:20 muckrock-staging app/scheduler.1 AttributeError: module 'django.urls.resolvers' has no attribute 'RegexURLResolver'

This is also an error from newrelic.