[Python-modules-team] Bug#903218: Fails to install due to SyntaxError

Paul R. Tagliamonte paultag at gmail.com
Sat Jul 7 22:11:52 BST 2018


Package: python3-opengl
Severity: serious
thanks

```
Setting up python3-opengl (3.1.0+dfsg-1) ...
  File "/usr/lib/python3/dist-packages/OpenGL/GL/SGIX/async.py", line 58
    from OpenGL.raw.GL.SGIX.async import *
                                ^
SyntaxError: invalid syntax
```

This is serious because it's preventing install:

```
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Setting up python3-opengl (3.1.0+dfsg-1) ...
  File "/usr/lib/python3/dist-packages/OpenGL/GL/SGIX/async.py", line 58
    from OpenGL.raw.GL.SGIX.async import *
                                ^
SyntaxError: invalid syntax

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

I think new Python 3 (3.6.6) is trying to parse that as the `async`
keyword. I have no idea why, since I can't seem to make Python
trivially emit the syntax error rather than a module import error.

   Paul

-- 
:wq



More information about the Python-modules-team mailing list