• zlib missing issue - bookworm

    From mike@21:1/5 to All on Fri May 10 18:30:01 2024
    Anyone know how to fix this. I have tried purging and reinstalling python3, no luck with that.

    apt install on zlib stuff shows I already have current installed.

    also I installed mutagen module and it's in python3 module directory. But I get a module not found because I am assuming I need to run in an venv.
    And you see from below the issue there.

    I found link on the web that showed installing pip on bookworm and the output showed zlib getting linked in. purging pip and reintalling does not show zlib being included.

    as user:

    python3 -m venv virtual-env
    Error: Command '['/home/mjkuhn/PYTHON/virtual-env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.


    as root:

    python3 -Im ensurepip --upgrade --default-pip

    Traceback (most recent call last):
    File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
    File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
    File "/usr/local/lib/python3.7/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
    File "/usr/local/lib/python3.7/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
    File "/usr/local/lib/python3.7/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
    File "/usr/local/lib/python3.7/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
    zipimport.ZipImportError: can't decompress data; zlib not available debian-python@lists.debian.org
    ~
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    </head>
    <body>
    <div class="default-style">
    <div class="default-style">
    <div class="default-style">
    Anyone know how to fix this.&nbsp; I have tried purging and reinstalling python3, no luck with that.
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    apt install on zlib stuff shows I already have current installed.
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    also I installed mutagen module and it's in python3 module directory. But I get a module not found because I am assuming I need to run in an venv.
    </div>
    <div class="default-style">
    And you see from below the issue there.
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    I found link on the web that showed installing pip on bookworm and the output showed zlib getting linked in. purging pip and reintalling does not show zlib being included.
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    as user:&nbsp;
    </div>
    <div class="default-style">
    &nbsp;
    </div> python3 -m venv virtual-env
    <br>
    Error: Command '['/home/mjkuhn/PYTHON/virtual-env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    as root:
    </div>
    <div class="default-style">
    &nbsp;
    </div>
    <div class="default-style">
    python3 -Im ensurepip --upgrade --default-pip
    </div>
    <div class="default-style">
    <br>
    Traceback (most recent call last):
    <br>
    &nbsp; File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    <br>
    &nbsp; &nbsp; "__main__", mod_spec)
    <br>
    &nbsp; File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    <br>
    &nbsp; &nbsp; exec(code, run_globals)
    <br>
    &nbsp; File "/usr/local/lib/python3.7/ensurepip/__main__.py", line 5, in &lt;module&gt;
    <br>
    &nbsp; &nbsp; sys.exit(ensurepip._main())
    <br>
    &nbsp; File "/usr/local/lib/python3.7/ensurepip/__init__.py", line 204, in _main
    <br>
    &nbsp; &nbsp; default_pip=args.default_pip,
    <br>
    &nbsp; File "/usr/local/lib/python3.7/ensurepip/__init__.py", line 117, in _bootstrap
    <br>
    &nbsp; &nbsp; return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
    <br>
    &nbsp; File "/usr/local/lib/python3.7/ensurepip/__init__.py", line 27, in _run_pip
    <br>
    &nbsp; &nbsp; import pip._internal
    <br>
    zipimport.ZipImportError: can't decompress data; zlib not available
    <br>
    debian-python@lists.debian.org
    <br>
    ~ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
    </div>
    </div>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to mike on Fri May 10 20:00:02 2024
    On Fri, May 10, 2024 at 11:59:32AM -0400, mike wrote:
    Anyone know how to fix this. I have tried purging and reinstalling python3, no luck with that.
    This isn't a good place for asking about locally-built Python
    installations.

    File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    ^^^^^^^^^^

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmY+XkItFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh AgYP/RKxhQlgapXjj9ISlMVR/Dk9+wpsb9U91nIMK/Z6zdvvI7Jjet/of2RHxf/k cRMBlEPcoJ8R3nI+SBx/+gPin+rytJo8J6n4Fvwyn/5EVjFlhuQWFzmm3yP/z+/F i/fXk4UOQhQJGyDZPgSAHEEt1PG+0/+qPUcTBI+GZ5hXPjSWLdFwRUJcX0XwnFGj VvlGg0zj2p3rA6rid0bTUIJCXhqsOnfKoQPNwMS+ZIAxAylqeKzzRIOGlPcuHzpt mRTrdavV9IUFxwrl1K2jd8edJKcPujhZUDm/qJP68eGw884qsDPYUQUf7BpUdYz1 T7LjytOxJMxyUen4YRvgMZM6Vqd7bV+BZcGaOqBK9kOrfFKm9poQ0gq2gUpZGeVN 5KQb9G/gNI5VeXcg+2QqGsDnR1XE7T91l8K3T78sloCqOQnmhLmbXxTbDZiyXgxO XvAkx0wsDB8ewtxuf10m4TBuRuABmsjeMsC49YPl2IS+88wEqaS0H9DK038uyCDm t0AdljCltT4tyhrmEoITcPaPcyDipN6+GCX+8ukZ2r2F0kGhRJFvgs3XKlZXnbxT YX53l1v9U+DQSBJh92iMzJrbZCj+yi4Skq+5XJ6IwBQ9P1Dfjuv8nCwTraSqOlwa jQ5WZqdfXuhtZ15rzuvL/fqQaW/07RJY01jEKRvtnh5DENSD
    =cUEr
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)