Skip to content

[Bug]: DataFormatException: invalid distance too far back with newer pip when installing delvewheel #818

@timfel

Description

@timfel

Describe the bug

FYI, I partially reverted the constraints bumps in 17d38bab10cc21c6ac6ef015b46a09973ba57346 because there was a failure likely due to pip==26.1.1 in https://github.com/pypa/cibuildwheel/actions/runs/25509576233/job/74864644182?pr=2831, which I was kind of stumped by, where GraalPy's pip was unable to install delvewheel at all. cc: @timfel for visibility. pip==26.0.1 works fine.

Originally posted by @agriyakhetarpal in pypa/cibuildwheel#2831 (comment)

Operating system

Windows

CPU architecture

x86_64

GraalPy version

25.0.2

JDK version

No response

Context configuration

No response

Steps to reproduce

See https://github.com/pypa/cibuildwheel/actions/runs/25509576233/job/74864644182?pr=2831

Expected behavior

Installation should work.

Stack trace

ERROR: Could not install packages due to an OSError: ('Received response with content-encoding: gzip, but failed to decode it.', error('DataFormatException: invalid distance too far back

Java stack trace:
java.util.zip.DataFormatException: invalid distance too far back
    at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions$NewObjectWithObjectArrayArgFunctionPointer.invoke(JNIFunctions.java)
    at org.graalvm.nativeimage.builder/com.oracle.svm.core.jni.functions.JNIFunctions.ThrowNew(JNIFunctions.java:913)
    at java.base@25.0.2/java.util.zip.Inflater.inflateBytesBytes(Native Method)
    at java.base@25.0.2/java.util.zip.Inflater.inflate(Inflater.java:354)
    at org.graalvm.py/com.oracle.graal.python.builtins.modules.zlib.JavaDecompress.createByteArray(JavaDecompress.java:268)
    at org.graalvm.py/com.oracle.graal.python.builtins.modules.zlib.JavaDecompress.decompress(JavaDecompress.java:288)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions