Opened 10 hours ago

Closed 9 hours ago

#36033 closed Uncategorized (invalid)

Getting TypeError: cannot pickle 'dict_values' object Error with Django 4.2.16

Reported by: Bittu Ray Owned by:
Component: Core (Cache system) Version: 4.2
Severity: Normal Keywords: Django 4.2, Cache error, Redis Cache, Pickle
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I am using django-redis-cache 3.0.1 with Django 4.2.16, and I am getting this error in one of admin page -

TypeError: cannot pickle 'dict_values' object

This same code is working when I use it with Django 3.2.25. The value for which I am getting this error is

{
cls: <class 'django_select2.forms.ModelSelect2Widget'>,
max_results: 25,

queryset: [
<RecordQuerySet from business.models at 0xf8b2af2c1b50>,
<django.db.models.sql.query.Query object at 0xf8b2b7ed4940>
],

search_fields: [
"id__icontains",
[Filtered],
"telecom_operator__icontains",
"area_code__icontains",
"cloud_telephony_operator__icontains"
],
url: "/select2/fields/auto.json"
}

It's failing during Pickle serialization of the above value.

Change History (1)

comment:1 by Tim Graham, 9 hours ago

Resolution: invalid
Severity: Release blockerNormal
Status: newclosed

Hello, thanks for the report, however, you haven't provided enough information to reproduce the problem and demonstrate that this is a bug in Django itself. django-redis-cache is a third-praty library. If you need help debugging the issue to figure out where the problem lies, see TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top