Package: virtualbox
Version: 5.1.24-dfsg-1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---
The python module 'vboxapi' does not work with python 3, due to a small
error in vboxxpcom.py. The error occurs e.g. when trying to create a new
VirtualBoxManager object.

I have attached a patch that fixes the problem.

Bug is tracked upstream at https://www.virtualbox.org/ticket/16899

--- System information. ---
Architecture:
Kernel: Linux 4.9.0-3-amd64

Debian Release: 9.0
900 stable ftp.de.debian.org
100 stretch-backports ftp.de.debian.org

--- Package information. ---
Depends (Version) | Installed
===========================================-+-====================
adduser | 3.115
iproute2 | 4.9.0-1
procps | 2:3.3.12-3
virtualbox-dkms (>= 5.1.24-dfsg-1) | 5.1.24-dfsg-1
OR virtualbox-source (>= 5.1.24-dfsg-1) |
OR virtualbox-modules |
init-system-helpers (>= 1.18~) | 1.48
python3 (<< 3.6) | 3.5.3-1
python3 (>= 3.5~) | 3.5.3-1
python3.5 | 3.5.3-1
python3:any (>= 3.3.2-2~) |
libc6 (>= 2.15) | 2.24-11+deb9u1
libcurl3-gnutls (>= 7.16.2) | 7.52.1-5
libdevmapper1.02.1 (>= 2:1.02.97) | 2:1.02.137-2
libgcc1 (>= 1:3.0) | 1:6.3.0-18
libgsoap10 | 2.8.35-4
libpng16-16 (>= 1.6.2-1) | 1.6.28-1
libpython3.5 (>= 3.5.0~b1) | 3.5.3-1
libsdl1.2debian (>= 1.2.11) | 1.2.15+dfsg1-4
libssl1.1 (>= 1.1.0) | 1.1.0f-3
libstdc++6 (>= 5.2) | 6.3.0-18
libvncserver1 (>= 0.9.10) | 0.9.11+dfsg-1
libvpx4 (>= 1.6.0) | 1.6.1-3
libx11-6 | 2:1.6.4-3
libxcursor1 (>> 1.1.2) | 1:1.1.14-1+b4
libxext6 | 2:1.3.3-1+b2
libxml2 (>= 2.7.4) | 2.9.4+dfsg1-2.2
libxmu6 | 2:1.1.2-2
libxt6 | 1:1.1.5-1
zlib1g (>= 1:1.1.4) | 1:1.2.8.dfsg-5


Recommends (Version) | Installed
=====================================-+-==================
virtualbox-qt (= 5.1.24-dfsg-1) | 5.1.24-dfsg-1
libgl1-mesa-glx | 13.0.6-1+b2
OR libgl1 |
libqt5core5a (>= 5.7.0) | 5.7.1+dfsg-3+b1
libqt5opengl5 (>= 5.0.2) | 5.7.1+dfsg-3+b1
libqt5widgets5 (>= 5.0.2) | 5.7.1+dfsg-3+b1


Suggests (Version) | Installed
=============================================-+-===========
vde2 |
virtualbox-guest-additions-iso |
Index: bindings/xpcom/python/xpcom/vboxxpcom.py
===================================================================
--- bindings/xpcom/python/xpcom/vboxxpcom.py 2016-09-12 17:32:29.000000000 +0200
+++ /usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/vboxxpcom.py 2017-07-13 12:11:50.309907961 +0200
@@ -39,7 +39,7 @@
 if sys.hexversion >= 0x030200f0 and sys.abiflags:
	 _asNew = []
	 for sCandidate in _asVBoxPythons:
-        if isdigit(sCandidate[-1:]):
+        if sCandidate[-1:].isdigit():
			 _asNew.append(sCandidate + sys.abiflags)
		 else:
			 _asNew.append(sCandidate)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to