| Newsgroups |
gmane.linux.lfs.support |
| Message-ID |
<[email protected]> |
On 8/17/26 10:04 PM, Stephan Hunker ([email protected] via lfs-support
Mailing List) wrote:
> Hi everyone,
>
> During a test build of 13.1-rc2, I have the error below which indicates that gzip.py
> is trying to import zlib.py, and failing. When I poke around in the python source
> directory (/usr/lib/python3), I see that in fact gzip.py exists, and zlib.py does not.
>
> Any ideas on the best path forward here? Do I need to download or otherwise obtain
> the zlib.py module? Is there a make flag or similar that I can (or should) use to
> ignore this?
What package are you trying to build? From the last line below it appears to be
pkgconf-3.0.5. Note that we build gzip-1.14 in Chapter 6 and zlib-1.3.2 in Chapter
7. We also build zlib again in Chapter 8 before pkgconf. Did you miss a package?
-- Bruce
>
> + mkdir build
> + cd build
> + python3 ../meson-1.12.0/meson.py setup --prefix=/usr --buildtype=release ..
> Traceback (most recent call last):
> File "/sources/pkgconf/build/../meson-1.12.0/meson.py", line 27, in <module>
> sys.exit(mesonmain.main())
> ~~~~~~~~~~~~~~^^
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mesonmain.py", line 322, in main
> return run(sys.argv[1:], launcher)
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mesonmain.py", line 313, in run
> return CommandLineParser().run(args)
> ~~~~~~~~~~~~~~~~~^^
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mesonmain.py", line 75, in __init__
> from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter,
> msubprojects, munstable_coredata, mcompile, mdevenv, mformat
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mconf.py", line 21, in <module>
> from . import mintro
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mintro.py", line 23, in <module>
> from .ast import IntrospectionInterpreter, AstConditionLevel, AstIDGenerator,
> AstIndentationGenerator, AstJSONPrinter
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/ast/__init__.py", line 19, in <module>
> from .interpreter import AstInterpreter
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/ast/interpreter.py", line 35, in
> <module>
> from ..interpreter import (
> ...<5 lines>...
> )
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/interpreter/__init__.py", line 31,
> in <module>
> from .interpreter import Interpreter
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/interpreter/interpreter.py", line
> 20, in <module>
> from ..wrap import wrap, WrapMode
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/wrap/wrap.py", line 24, in <module>
> import gzip
> File "/usr/lib/python3.14/gzip.py", line 15, in <module>
> import zlib
> ModuleNotFoundError: No module named 'zlib'
> failed (0.877s)
> from . import mconf, mdist, minit, minstall, mintro, msetup, mtest, rewriter,
> msubprojects, munstable_coredata, mcompile, mdevenv, mformat
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mconf.py", line 21, in <module>
> from . import mintro
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/mintro.py", line 23, in <module>
> from .ast import IntrospectionInterpreter, AstConditionLevel, AstIDGenerator,
> AstIndentationGenerator, AstJSONPrinter
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/ast/__init__.py", line 19, in <module>
> from .interpreter import AstInterpreter
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/ast/interpreter.py", line 35, in
> <module>
> from ..interpreter import (
> ...<5 lines>...
> )
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/interpreter/__init__.py", line 31,
> in <module>
> from .interpreter import Interpreter
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/interpreter/interpreter.py", line
> 20, in <module>
> from ..wrap import wrap, WrapMode
> File "/sources/pkgconf/meson-1.12.0/mesonbuild/wrap/wrap.py", line 24, in <module>
> import gzip
> File "/usr/lib/python3.14/gzip.py", line 15, in <module>
> import zlib
> ModuleNotFoundError: No module named 'zlib'
> [2026-08-17 19:39:05] ERROR: building pkgconf phase 4: failed (1.179s)
>
>
--
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page