#31418: ValueError when FileBasedCache is used in Python 2.7
-----------------------------------------------+------------------------
               Reporter:  mastizada            |          Owner:  nobody
                   Type:  Bug                  |         Status:  new
              Component:  Core (Cache system)  |        Version:  2.2
               Severity:  Release blocker      |       Keywords:
           Triage Stage:  Unreviewed           |      Has patch:  0
    Needs documentation:  0                    |    Needs tests:  0
Patch needs improvement:  0                    |  Easy pickings:  0
                  UI/UX:  0                    |
-----------------------------------------------+------------------------
 Using FileBasedCache in Django 2.2.12 with Python 2.7.3 is giving
 ValueError: unsupported pickle protocol: 5

 Checking the highest protocol version for pickle using
 `pickle.HIGHEST_PROTOCOL` is giving 4, so the protocol 5 is not available.

 Line that is causing the error: `filebased.py` in `_is_expired` at line
 146, `exp = pickle.load(f)`.

 Using Python 3.8.0 solves the problem.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31418>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.2b3ccd48afaa60fbf80093a2f8c1cbe1%40djangoproject.com.

Reply via email to