Opened 6 years ago

Closed 6 years ago

#29565 closed Bug (wontfix)

SyntaxError when running in Python 3.7

Reported by: Federico Bond Owned by: nobody
Component: contrib.admin Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django 1.11.14 throws Syntax error while loading django.contrib.admin.widgets in Python 3.7.

  File "./env/lib/python3.7/site-packages/django/contrib/admin/widgets.py", line 152                                                                  
    '%s=%s' % (k, v) for k, v in params.items(),
    ^
SyntaxError: Generator expression must be parenthesized

This can be fixed by removing the trailing comma at the end of the line.

Change History (1)

comment:1 by Carlton Gibson, 6 years ago

Resolution: wontfix
Status: newclosed

Django 1.11 does not support Python3.7, as per https://docs.djangoproject.com/en/2.0/faq/install/

You’ll need to upgrade to 2.0 or later.

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