#31418: ValueError when FileBasedCache is used in Python 3.7
-------------------------------------+-------------------------------------
Reporter: mastizada | Owner: nobody
Type: Bug | Status: closed
Component: Core (Cache system) | Version: 2.2
Severity: Release blocker | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Old description:
> 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.
New description:
Using FileBasedCache in Django 2.2.12 with Python 3.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.
--
Comment (by mastizada):
Indicated the wrong python version
--
Ticket URL: <https://code.djangoproject.com/ticket/31418#comment:4>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.6cfe57ec3106af0046a843704bebcf16%40djangoproject.com.