On 10/24/19 10:14 PM, Bruce Dubbs via blfs-dev wrote:
I had trouble with librsvg (again).  When I tried to build version 2.46.3 (with rustc-1.37.0), I got:

  GISCAN   Rsvg-2.0.gir
Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 99, 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 33, in <module>
    from giscanner._giscanner import SourceScanner as CSourceScanner
ModuleNotFoundError: No module named 'giscanner._giscanner'


I then rebuilt gobject-introspection and then librsvg built OK.

AFAIK there is no relationship between rust and gobject-introspection. My question is how to address this, or whether we should address it in the book at all?


This looks like a problem with upgrading from Python-3.7 to Python-3.8. /usr/bin/g-ir-scanner on line 99 references scanner_main which is compiled for the major version of python3 in use at the time - which in our case was python3.7. Since we upgraded to python3.8, we'll need to recompile gobject-introspection.

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to