Missing 'lru_cache' function with RHEL 7 mod_wsgi and Apache HTTPD

Solution In Progress - Updated -

Issue

  • Getting following error in /var/log/httpd/error_log file:

    [Fri Sep 04 04:08:19.846753 2020] [:error] [pid 17181] [remote 10.80.230.90:236] mod_wsgi (pid=17181): Exception occurred processing WSGI script '/path/to/wsgi/script/file.py'.
    [Fri Sep 04 04:08:19.846768 2020] [:error] [pid 17181] [remote 10.80.230.90:236] Traceback (most recent call last):
    [Fri Sep 04 04:08:19.846780 2020] [:error] [pid 17181] [remote 10.80.230.90:236]   File "/path/to/wsgi/script/file.py", line 12, in <module>
    [Fri Sep 04 04:08:19.846827 2020] [:error] [pid 17181] [remote 10.80.230.90:236]     from django.core.wsgi import get_wsgi_application
    [Fri Sep 04 04:08:19.846834 2020] [:error] [pid 17181] [remote 10.80.230.90:236]   File "/path/to/lib/python3.6/site-packages/django/__init__.py", line 1, in <module>
    [Fri Sep 04 04:08:19.846865 2020] [:error] [pid 17181] [remote 10.80.230.90:236]     from django.utils.version import get_version
    [Fri Sep 04 04:08:19.846872 2020] [:error] [pid 17181] [remote 10.80.230.90:236]   File "/path/to/lib/python3.6/site-packages/django/utils/version.py", line 71, in <module>
    [Fri Sep 04 04:08:19.846910 2020] [:error] [pid 17181] [remote 10.80.230.90:236]     @functools.lru_cache()
    

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.x
  • Red Hat Software Collections (RHSCL)
  • Python
  • Apache Web Server (HTTPD)
    • mod_wsgi

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In