FTBFS libcloud does not work or build with py3.7

Bug #1788931 reported by Andreas Hasenack
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libcloud (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

libcloud 2.3.0 fails to build in cosmic currently because the tests fail. It's not compatible with python 3.7.

The last time it was built in the ubuntu archive, python 3.7 was not available, and the tests ran with python 3.6. Now we have both python 3.6 and 3.7.

Additionally, it fails to install if python3.7 is installed:
Setting up python3-libcloud (2.3.0-1) ...
  File "/usr/lib/python3/dist-packages/libcloud/compute/drivers/azure.py", line 1438
    def _perform_post(self, path, body, response_type=None, async=False):
                                                                ^
SyntaxError: invalid syntax

In python 3.7, async is a reserved keyword.

Debian has this bug report about the installation failure: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903388

It also fails to build in debian currently, because, as in ubuntu, now debian has python3.7 available.

I also filed this ticket with upstream about the 3.7 incompatibility: https://issues.apache.org/jira/browse/LIBCLOUD-1009

Also found this one in github: https://github.com/apache/libcloud/pull/1227

They seem to have two bugtrackers, I don't know which one is best. Perhaps the github one.

Tags: ftbfs patch

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
description: updated
tags: added: ftbfs
Changed in libcloud (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: New → In Progress
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

debdiff attached

Bileto ticket (still running): https://bileto.ubuntu.com/#/ticket/3384

I ran the dep8 tests locally:
(...)
=========== 8988 passed, 32 skipped, 272 warnings in 105.26 seconds ============
autopkgtest [10:29:42]: test upstream: -----------------------]
autopkgtest [10:29:43]: test upstream: - - - - - - - - - - results - - - - - - - - - -
upstream PASS
autopkgtest [10:29:44]: @@@@@@@@@@@@@@@@@@@@ summary
upstream PASS
qemu-system-x86_64: terminating on signal 15 from pid 13107 (/usr/bin/python3)

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Local dep8 test run output

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

libcloud is fine-ish after this diff, but related dep8 tests will still fail. Namely, fdroidserver's, which installs python 3.7 via its numpy dependency. And then libcloud will hit that SyntaxError again in postinst.

I proposed this upstream: https://github.com/apache/libcloud/pull/1235

stay tuned.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcloud - 2.3.0-1ubuntu1

---------------
libcloud (2.3.0-1ubuntu1) cosmic; urgency=medium

  * Address some python 3.7 issues (LP: #1788931):
    - d/control: add <= 3.6 to X-Python3-Version because python 3.7 is not
      yet supported by upstream
    - d/p/remove-async-due-py37.patch: remove 'async' as it's a
      reserved keyword in python 3.7.
  * d/p/handle-http_proxy-in-tests.patch: Handle http_proxy variable in
    tests

 -- Andreas Hasenack <email address hidden> Mon, 27 Aug 2018 14:48:35 +0000

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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