g-ir-scanner doesn't work (so can't build gnome packages any more)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gobject-introspection (Debian) |
Fix Released
|
Unknown
|
|||
gobject-introspection (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
python3-defaults (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Running g-ir-scanner doesn't work anymore after a recent upgrade with a fully up to date focal:
Traceback (most recent call last):
File "/usr/bin/
from giscanner.
File "/usr/lib/
from giscanner.ast import Include, Namespace
File "/usr/lib/
from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_
File "/usr/lib/
from giscanner.
ModuleNotFoundE
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gobject-
ProcVersionSign
Uname: Linux 5.4.0-12-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 1 07:04:11 2020
InstallationDate: Installed on 2019-08-13 (171 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190712)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gobject-
UpgradeStatus: Upgraded to focal on 2019-11-04 (89 days ago)
Changed in gobject-introspection (Debian): | |
status: | Unknown → New |
tags: | added: champagne regression |
Changed in gobject-introspection (Ubuntu): | |
importance: | Undecided → High |
summary: |
- g-ir-scanner doesn't work + g-ir-scanner doesn't work (so can't build gnome packages any more) |
Changed in gobject-introspection (Ubuntu): | |
importance: | High → Critical |
Changed in gobject-introspection (Debian): | |
status: | New → Fix Released |
It appears to me to be happening because gobject- introspection only ships a python file for python3.8 not python3.7 which is the default in focal.
$ python3.7 /usr/bin/ g-ir-scanner g-ir-scanner" , line 99, in <module> scannermain import scanner_main x86_64- linux-gnu/ gobject- introspection/ giscanner/ scannermain. py", line 35, in <module> x86_64- linux-gnu/ gobject- introspection/ giscanner/ ast.py" , line 29, in <module> TYPE_TYPEDEF x86_64- linux-gnu/ gobject- introspection/ giscanner/ sourcescanner. py", line 33, in <module> _giscanner import SourceScanner as CSourceScanner rror: No module named 'giscanner. _giscanner'
Traceback (most recent call last):
File "/usr/bin/
from giscanner.
File "/usr/lib/
from giscanner.ast import Include, Namespace
File "/usr/lib/
from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_
File "/usr/lib/
from giscanner.
ModuleNotFoundE
$ python3.8 /usr/bin/ g-ir-scanner
ERROR: Need at least one filename
$ ls -alh /usr/bin/python3
lrwxrwxrwx 1 root root 9 Oct 18 10:23 /usr/bin/python3 -> python3.7