Skip to content

gobject-introspection-1.68.0-0.x86_64: ModuleNotFoundError: No module named 'giscanner._giscanner' #2888

Closed
pmenzel opened this issue Apr 18, 2023 · 0 comments

Comments

@pmenzel
Copy link
Collaborator

pmenzel commented Apr 18, 2023

I guess some Python upgrade broke g-ir-scanner:

$ /usr/bin/g-ir-scanner --version
Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 98, in <module>
    from giscanner.scannermain import scanner_main
  File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
    from giscanner.ast import Include, Namespace
  File "/usr/lib/gobject-introspection/giscanner/ast.py", line 29, in <module>
    from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
  File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
    from giscanner._giscanner import SourceScanner as CSourceScanner
ModuleNotFoundError: No module named 'giscanner._giscanner'
$ fakeroot bee query gobject-introspection-1.68.0-0.x86_64 | grep .py$
/usr/lib/gobject-introspection/giscanner/docwriter.py
/usr/lib/gobject-introspection/giscanner/annotationmain.py
/usr/lib/gobject-introspection/giscanner/girparser.py
/usr/lib/gobject-introspection/giscanner/ccompiler.py
/usr/lib/gobject-introspection/giscanner/mdextensions.py
/usr/lib/gobject-introspection/giscanner/msvccompiler.py
/usr/lib/gobject-introspection/giscanner/pkgconfig.py
/usr/lib/gobject-introspection/giscanner/xmlwriter.py
/usr/lib/gobject-introspection/giscanner/maintransformer.py
/usr/lib/gobject-introspection/giscanner/introspectablepass.py
/usr/lib/gobject-introspection/giscanner/sourcescanner.py
/usr/lib/gobject-introspection/giscanner/__init__.py
/usr/lib/gobject-introspection/giscanner/sectionparser.py
/usr/lib/gobject-introspection/giscanner/message.py
/usr/lib/gobject-introspection/giscanner/shlibs.py
/usr/lib/gobject-introspection/giscanner/gdumpparser.py
/usr/lib/gobject-introspection/giscanner/ast.py
/usr/lib/gobject-introspection/giscanner/codegen.py
/usr/lib/gobject-introspection/giscanner/dumper.py
/usr/lib/gobject-introspection/giscanner/testcodegen.py
/usr/lib/gobject-introspection/giscanner/scannermain.py
/usr/lib/gobject-introspection/giscanner/annotationparser.py
/usr/lib/gobject-introspection/giscanner/girwriter.py
/usr/lib/gobject-introspection/giscanner/transformer.py
/usr/lib/gobject-introspection/giscanner/utils.py
/usr/lib/gobject-introspection/giscanner/_version.py
/usr/lib/gobject-introspection/giscanner/cachestore.py
/usr/lib/gobject-introspection/giscanner/docmain.py
pmenzel added a commit that referenced this issue Apr 20, 2023
Currently, `g-ir-scanner` fails to run – probably due to updating our
Python environment.

    $ /usr/bin/g-ir-scanner --version
    Traceback (most recent call last):
      File "/usr/bin/g-ir-scanner", line 98, in <module>
        from giscanner.scannermain import scanner_main
      File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
        from giscanner.ast import Include, Namespace
      File "/usr/lib/gobject-introspection/giscanner/ast.py", line 29, in <module>
        from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
      File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
        from giscanner._giscanner import SourceScanner as CSourceScanner
    ModuleNotFoundError: No module named 'giscanner._giscanner'

So, update to the latest release, so it’s also rebuild against our current
system Python.

https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/1.76.1/NEWS

Resolves: #2888
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant