[Django] #36253: Django version 5.1.7 raises an error after xlsx upload using openpyxl

7 views
Skip to first unread message

Django

unread,
Mar 13, 2025, 11:35:21 AM3/13/25
to django-...@googlegroups.com
#36253: Django version 5.1.7 raises an error after xlsx upload using openpyxl
-----------------------------+-----------------------------------------
Reporter: copyrightme | Type: Bug
Status: new | Component: contrib.admin
Version: 5.1 | Severity: Normal
Keywords: openpyxl | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+-----------------------------------------
Import of xlsx file results in an error TypeError:
LogEntryManager.log_actions() got an unexpected keyword argument
'single_object'. It looks like a change between version 5.1.6 and 5.1.7.
It could be the way openpyxl (Version: 3.1.5) uses a function which
changed in 5.1.7. It could be an error which should be fixed by openpyxl
but thought to raise it here since it could may be break more packages or
functionality for people.

P.S. Have not raised a ticket before so not sure how much more information
is required.
--
Ticket URL: <https://code.djangoproject.com/ticket/36253>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 13, 2025, 11:42:46 AM3/13/25
to django-...@googlegroups.com
#36253: Django version 5.1.7 raises an error after xlsx upload using openpyxl
---------------------------------+--------------------------------------
Reporter: Santhosh Pillai | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: openpyxl | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Description changed by Santhosh Pillai:

Old description:

> Import of xlsx file results in an error TypeError:
> LogEntryManager.log_actions() got an unexpected keyword argument
> 'single_object'. It looks like a change between version 5.1.6 and 5.1.7.
> It could be the way openpyxl (Version: 3.1.5) uses a function which
> changed in 5.1.7. It could be an error which should be fixed by openpyxl
> but thought to raise it here since it could may be break more packages or
> functionality for people.
>
> P.S. Have not raised a ticket before so not sure how much more
> information is required.

New description:

Import of xlsx file results in an error TypeError:
LogEntryManager.log_actions() got an unexpected keyword argument
'single_object'. It looks like a change between version 5.1.6 and 5.1.7. I
am not sure if it is an error from django-import-export or from openpyxl
but when I look into it more, it seems like an erro rfrom django-import-
export (Version: 4.3.7).

It could be the way openpyxl (Version: 3.1.5) uses a function which
changed in 5.1.7. It could be an error which should be fixed by openpyxl
but thought to raise it here since it could may be break more packages or
functionality for people.

P.S. Have not raised a ticket before so not sure how much more information
is required.

--
--
Ticket URL: <https://code.djangoproject.com/ticket/36253#comment:1>

Django

unread,
Mar 13, 2025, 11:47:09 AM3/13/25
to django-...@googlegroups.com
#36253: Django version 5.1.7 raises an error after xlsx upload using openpyxl
---------------------------------+--------------------------------------
Reporter: Santhosh Pillai | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution:
Keywords: openpyxl | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by Santhosh Pillai):

This issue seems to be raised also https://github.com/django-import-export
/django-import-export/pull/2045
--
Ticket URL: <https://code.djangoproject.com/ticket/36253#comment:2>

Django

unread,
Mar 13, 2025, 11:47:44 AM3/13/25
to django-...@googlegroups.com
#36253: Django version 5.1.7 raises an error after xlsx upload using openpyxl
---------------------------------+--------------------------------------
Reporter: Santhosh Pillai | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 5.1
Severity: Normal | Resolution: duplicate
Keywords: openpyxl | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Sarah Boyce):

* resolution: => duplicate
* status: new => closed

Comment:

Duplicate of #36234
This will be fixed in the next release
--
Ticket URL: <https://code.djangoproject.com/ticket/36253#comment:3>
Reply all
Reply to author
Forward
0 new messages