Bug 13357 - python3-django_1.11.14 not compatible with python3.7
Summary: python3-django_1.11.14 not compatible with python3.7
Status: RESOLVED INVALID
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-05-21 16:11 UTC by Johannes Schrimpf
Modified: 2019-05-23 14:45 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Schrimpf 2019-05-21 16:11:32 UTC
python3-django_1.11.14 fails with python3.7:
---
  File "/usr/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
---

How to reproduce:
---
python3
>>> from django.contrib.admin import widgets
---

This seems to be fixed in this commit: https://github.com/django/django/commit/568c2f45ef531257a600c0e6ff8fe02525d7ab4e

I suggest updating python3-django (and python-django) to the newest version 1.11.20 to fix this bug.


For the long term I suggest additionally providing recipes for django2.x (only as addition because 2.x is incompatible with python2)

See https://www.djangoproject.com/download/
Comment 1 Armin Kuster 2019-05-23 14:45:30 UTC
this is an issue for meta-openembedded/meta-python and is not triaged by the Yocto project. Please send this question to openembedded-devel@lists.openembedded.org. 

Have you tried updating to a later version of this package?