Your message dated Tue, 17 Jul 2018 18:04:04 +0000
with message-id <e1ffuks-0006om...@fasolo.debian.org>
and subject line Bug#903016: fixed in libvirt-python 4.5.0-1
has caused the Debian Bug report #903016,
regarding python3-libvirt: import fails with current python interpreter in sid
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
903016: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903016
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-libvirt
Version: 4.0.0-1+b1
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

the package is broken on sid:

The following packages were automatically installed and are no longer required:
  iputils-arping liblogging-stdlog0 libnginx-mod-http-auth-pam 
libnginx-mod-http-dav-ext libnginx-mod-http-echo libngin
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream 
libplacebo4 libwireshark10 libwiretap7 libwscodec
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  medcon xmedcon
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up python3-libvirt (4.0.0-1+b1) ...
  File "/usr/lib/python3/dist-packages/libvirtaio.py", line 49
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

dpkg: error processing package python3-libvirt (--configure):
 installed python3-libvirt package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 python3-libvirt
E: Sub-process /usr/bin/dpkg returned an error code (1)

The problem is fixed upstream with this commit:

https://github.com/libvirt/libvirt-python/commit/e27528204c887b4099b892a0237766f187959737#diff-cd56dd4108fa77f26cb6c1e6358beba1



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-libvirt depends on:
ii  libc6     2.27-3
ii  libvirt0  4.3.0-1
ii  python3   3.6.6-1

Versions of packages python3-libvirt recommends:
ii  libvirt-daemon  4.3.0-1

python3-libvirt suggests no packages.

-- debconf-show failed
>From e27528204c887b4099b892a0237766f187959737 Mon Sep 17 00:00:00 2001
From: Cole Robinson <crobi...@redhat.com>
Date: Mon, 25 Jun 2018 14:14:57 -0400
Subject: [PATCH 1/2] libvirtaio: Fix compat with python 3.7

In python 3.7, async is now a keyword, so this throws a syntax error:

  File "/usr/lib64/python3.7/site-packages/libvirtaio.py", line 49
    from asyncio import async as ensure_future
                            ^
  SyntaxError: invalid syntax

Switch to getattr trickery to accomplish the same goal

Reviewed-by: Pavel Hrdina <phrd...@redhat.com>
Reviewed-by: Andrea Bolognani <abolo...@redhat.com>
Signed-off-by: Cole Robinson <crobi...@redhat.com>
---
 libvirtaio.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/libvirtaio.py b/libvirtaio.py
index 1c432dd..328e6f2 100644
--- a/libvirtaio.py
+++ b/libvirtaio.py
@@ -43,10 +43,13 @@ import warnings
 
 import libvirt
 
-try:
-    from asyncio import ensure_future
-except ImportError:
-    from asyncio import async as ensure_future
+# Python < 3.4.4 doesn't have 'ensure_future', so we have to fall
+# back to 'async'; however, since 'async' is a reserved keyword
+# in Python >= 3.7, we can't perform a straightforward import and
+# we have to resort to getattr() instead
+ensure_future = getattr(asyncio, "ensure_future", None)
+if not ensure_future:
+    ensure_future = getattr(asyncio, "async")
 
 
 class Callback(object):
-- 
2.18.0


--- End Message ---
--- Begin Message ---
Source: libvirt-python
Source-Version: 4.5.0-1

We believe that the bug you reported is fixed in the latest version of
libvirt-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 903...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guido Günther <a...@sigxcpu.org> (supplier of updated libvirt-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 17 Jul 2018 19:49:38 +0200
Source: libvirt-python
Binary: python-libvirt python3-libvirt
Architecture: source
Version: 4.5.0-1
Distribution: unstable
Urgency: medium
Maintainer: Guido Günther <a...@sigxcpu.org>
Changed-By: Guido Günther <a...@sigxcpu.org>
Description:
 python-libvirt - libvirt Python bindings
 python3-libvirt - libvirt Python 3 bindings
Closes: 903016
Changes:
 libvirt-python (4.5.0-1) unstable; urgency=medium
 .
   * [f1bae57] New upstream version 4.5.0
     (Closes: #903016)
   * [dce8cdb] d/control: Switch VCS-* URLs to salsa
   * [f233e12] Build-dep on libvirt 4.5.0
   * [901c80d] Drop python version fields.
     All current Debian releases have recent enough versions.
   * [b82391b] Bump standards version
Checksums-Sha1:
 cafaf0e35689467831a8cde4364dc293ab7731b1 2373 libvirt-python_4.5.0-1.dsc
 9183f6d27215bcac2be5584f42a55701647ce870 190016 
libvirt-python_4.5.0.orig.tar.gz
 0c8a6a6b20bb0d4026f57002a3b0cef2ddb72e7e 455 
libvirt-python_4.5.0.orig.tar.gz.asc
 3386a509853329e9ce19055d164a8bc131397ca7 9436 
libvirt-python_4.5.0-1.debian.tar.xz
 a9107a585c4b81d62bfe170a5ce66e206a63eb77 9159 
libvirt-python_4.5.0-1_amd64.buildinfo
Checksums-Sha256:
 3e62fecab7c7c474c454cef4dc898668777ea2a8458fdca6c407f4e45be2d9d4 2373 
libvirt-python_4.5.0-1.dsc
 ef35ed6bc24d76563b1ba9b068ef5a048016726dba62a9d057fe6dfbea6b0f60 190016 
libvirt-python_4.5.0.orig.tar.gz
 55ef48c0c5fe36c23021b8c7a9f3368c070734c24e61ea9433f9cea843e5a746 455 
libvirt-python_4.5.0.orig.tar.gz.asc
 854756c8360fc518f744f26e4f3a8999cfa7161360416b690644d71d7bc85afa 9436 
libvirt-python_4.5.0-1.debian.tar.xz
 4ce98f8df15c588934327bd80fc105779bf307abe133dcb6ab0e3ad124cf4454 9159 
libvirt-python_4.5.0-1_amd64.buildinfo
Files:
 68c26556e5a8097a596ad6b8afd4dc5c 2373 python optional 
libvirt-python_4.5.0-1.dsc
 0c1b66a8878d6436b036565060707f73 190016 python optional 
libvirt-python_4.5.0.orig.tar.gz
 9fa486a88377e8eb4e62b9eadf042670 455 python optional 
libvirt-python_4.5.0.orig.tar.gz.asc
 eb5c953949874afb6910480b9b6a4b09 9436 python optional 
libvirt-python_4.5.0-1.debian.tar.xz
 8cc91dccb14bf3527a816a14d7613efd 9159 python optional 
libvirt-python_4.5.0-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEvHzQcjh1660F3xzZB7i3sOqYEgsFAltOLPIACgkQB7i3sOqY
EgsDpBAAi2lRTcMKkIFRC/XsuGPIPyDq5klLhRIXveaGuzvPrfhi6tQ+4ZErk7X0
eJUcrdD/Rs3YhqnOsLs7KQgP5bF22Gg9T+ixSFVAA0CaFnGb+fbJihQkpXvQRqlO
oE2Chux3brLvlY37yfu08OgLLf2DlMxA5eowWJnMCpnCbH2zesDg205GXAbNw3fJ
BqxWGv46pEEo8XIP6RlM5hKuRZMFlBUm2Q0fD+0Jk8XY2HBKJozvLZ31sSbf9aXz
3+dUSaFo8A/E9O3zN7cXRF616I2uf96P5NsVjxkekIYNkoe+/gXi87ST6d/jwm+w
nm/2+lGExyxs2E2qAkuKXT4lRBSOqxTT5f7Nhqq+aCIz7sE8IFKZuz9cSHfbL+Cc
8n+olX6a/1YD27vmnT+SNAPl2GZJWCw3F+XUdxkWnTDgQ1jWRFlQjtJhqnZ0PxXK
T5oPZVVQT+xTwEaTEYilfwyPoNK04cHwLt39nIaAWb0NMhwZ16V5WmByZSrSa+1J
HSVySDmaTtEF2wK4xlgDvpX7tfCNXvilwTIxrEqI7P+AXt8HDN7zPj8BpmWO5wCK
dHDdT5wx1b6IFfLu4yV9yEV+zf6hNxysFr3Fi2u5CxdGgcEogPF8DAzlh7KSPgFf
bixCvOG5iw2hjDdCCM4LFy75RRwNKPDfQqcx6f5Owi+Tu6DYTgM=
=qdS2
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to