cannot install with python3.7 as default async is a reserved keyword

Bug #1801899 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse
maas (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Setting up python3-django-maas (2.5.0~beta2-7291-gd0345ced5-0ubuntu1) ...
  File "/usr/lib/python3/dist-packages/maasserver/clusterrpc/boot_images.py", line 30
    from maasserver.utils import async
                                     ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/maasserver/clusterrpc/osystems.py", line 22
    from maasserver.utils import async
                                     ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/maasserver/clusterrpc/utils.py", line 20
    from maasserver.utils import async
                                     ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 77
    from maasserver.utils.async import DeferredHooks
                              ^
SyntaxError: invalid syntax

dpkg: error processing package python3-django-maas (--configure):
 installed python3-django-maas package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of maas:
 maas depends on python3-django-maas (= 2.5.0~beta2-7291-gd0345ced5-0ubuntu1); however:
  Package python3-django-maas is not configured yet.

This thus prevents building disco server subiquity images.

I guess async.py needs to be renamed to something else.

Related branches

Changed in maas (Ubuntu):
importance: Undecided → Critical
Lee Trager (ltrager)
Changed in maas:
importance: Undecided → Critical
status: New → Confirmed
Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
status: Confirmed → In Progress
Changed in maas:
milestone: none → next
status: In Progress → Fix Committed
Changed in maas:
milestone: next → 2.5.0rc1
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Thank you for the quick fix! I will cherrypick this in disco, such that we can start building server iso images.

Obviously will be trumped in the next upload to disco which has a new upstream release.

Changed in maas (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 2.5.0~beta2-7291-gd0345ced5-0ubuntu2

---------------
maas (2.5.0~beta2-7291-gd0345ced5-0ubuntu2) disco; urgency=medium

  * Cherrypick upstream patch to fix async SyntaxError with python3.7. LP:
    #1801899

 -- Dimitri John Ledkov <email address hidden> Wed, 07 Nov 2018 12:18:24 +0000

Changed in maas (Ubuntu):
status: Fix Committed → Fix Released
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.