Bug 13357

Summary: python3-django_1.11.14 not compatible with python3.7
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Johannes Schrimpf <johannes.schrimpf>
Component: devtools / tool chainAssignee: Armin Kuster <akuster>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Undecided CC: akuster, meta.mr.watcher, meta.watcher, tim.orling
Version: 2.7   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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?