#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
-------------------------------------+-------------------------------------
Comment (by mastizada):
Replying to [comment:6 Simon Charette]:
> If you're in the process of migrating from 3.7 to 3.8 you'll likely want
to subclass `FileBasedCache` and set its `pickle_protocol` to `4` and use
it as your backend during the transition period. When you've fully
migrated to Python 3.8 you can swap back to `FileBasedCache`.
I also was thinking about the cache, that is why I deleted everything in
the cache folder (/tmp/django/) but that didn't solve the error, it
happened again at the second load of the page.
I think having ability to set the pickle protocol version as an option
would benefit too.
--
Ticket URL: <https://code.djangoproject.com/ticket/31418#comment:7>
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.b0cac117852520a0c72d51d2b9bccb77%40djangoproject.com.