Package: fs-uae-launcher
Version: 2.8.4+dfsg-1
Severity: important

Dear Maintainer,

On upgrading python from version 3.6 to 3.7, the installation fails on
fs-uae-launcher with the following error message:

Setting up python3 (3.7.1-2) ...
running python rtupdate hooks for python3.7...
  File "/usr/share/fs-uae-launcher/OpenGL/GL/SGIX/async.py", line 58
    from OpenGL.raw.GL.SGIX.async import *
                                ^
SyntaxError: invalid syntax

error running python rtupdate hook fs-uae-launcher

This is due to "async" becoming a reserved keyword in python3.7. The
pyopengl maintainer decided to rename the module to async_, see #903218.
Thus, changing "async" to "async_" in lines 58 and 59 allow python3 to
be configured properly while upgrading the system to python 3.7 or
installing fs-uae-launcher on a python 3.7 system.

After checking the source this does apply to the fs-uae-arcade package
too. Attached patch should fix the error in both packages. Though you
might want to add a versioned depends on python3-opengl (>= 3.1.0+dfsg-2)
to enable partial upgrades.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.2-echse20181115 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages fs-uae-launcher depends on:
ii  fs-uae                  2.8.4+dfsg-1
ih  python3                 3.7.1-2
ii  python3-pyqt5           5.11.3+dfsg-1+b1
ii  python3-pyqt5.qtopengl  5.11.3+dfsg-1+b1
ii  python3-setuptools      40.5.0-1

fs-uae-launcher recommends no packages.

fs-uae-launcher suggests no packages.

-- no debconf information
Description: Change async module to async_
 This was done by pyopengl package (see #903218) since async
 became a reserved keyword in python 3.7

Index: fs-uae-2.8.4+dfsg/arcade/OpenGL/GL/SGIX/async.py
===================================================================
--- fs-uae-2.8.4+dfsg.orig/arcade/OpenGL/GL/SGIX/async.py
+++ fs-uae-2.8.4+dfsg/arcade/OpenGL/GL/SGIX/async.py
@@ -55,8 +55,8 @@ from OpenGL import platform, constant, a
 from OpenGL import extensions, wrapper
 import ctypes
 from OpenGL.raw.GL import _types, _glgets
-from OpenGL.raw.GL.SGIX.async import *
-from OpenGL.raw.GL.SGIX.async import _EXTENSION_NAME
+from OpenGL.raw.GL.SGIX.async_ import *
+from OpenGL.raw.GL.SGIX.async_ import _EXTENSION_NAME
 
 def glInitAsyncSGIX():
     '''Return boolean indicating whether this extension is available'''
Index: fs-uae-2.8.4+dfsg/launcher/OpenGL/GL/SGIX/async.py
===================================================================
--- fs-uae-2.8.4+dfsg.orig/launcher/OpenGL/GL/SGIX/async.py
+++ fs-uae-2.8.4+dfsg/launcher/OpenGL/GL/SGIX/async.py
@@ -55,8 +55,8 @@ from OpenGL import platform, constant, a
 from OpenGL import extensions, wrapper
 import ctypes
 from OpenGL.raw.GL import _types, _glgets
-from OpenGL.raw.GL.SGIX.async import *
-from OpenGL.raw.GL.SGIX.async import _EXTENSION_NAME
+from OpenGL.raw.GL.SGIX.async_ import *
+from OpenGL.raw.GL.SGIX.async_ import _EXTENSION_NAME
 
 def glInitAsyncSGIX():
     '''Return boolean indicating whether this extension is available'''

Reply via email to