Skip to content

SSLError: [ASN1: NOT_ENOUGH_DATA] when calling dc.op.progeny() on Windows #342

Closed

Description

@asif7adil

Hello,
When I try to call dc.op.progeny(organism="human") it raises an SSLError on Windows.

Example

import decoupler as dc
progeny = dc.op.progeny(organism="human")


File .../decoupler/op/_progeny.py:68, in progeny(...)
    p = resource(name="PROGENy", ...)

File .../decoupler/op/_resource.py:79, in resource(...)
    names = set(show_resources()["name"])

File .../decoupler/op/_resource.py:30, in show_resources()
    ann = pd.read_csv("https://omnipathdb.org/queries/annotations", sep="\t")

...

File .../ssl.py:584, in SSLContext._load_windows_store_certs(self, storename, purpose)
    self.load_verify_locations(cadata=certs)

SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4030)`

Activity

  1. added theissue type on Jul 9, 2026
  2. deeenes commented on Jul 10, 2026

    @deeenes
    Contributor

    Hello @asif7adil, see this: openssl/openssl#31427 (comment) - reverting or pinning OpenSSL might help. First I thought this is the same truncated TCP stream error which was common ~2 years ago, but this is a different one, it's a breaking change in OpenSSL, they changed the error code it raises after reading the last certificate from the store (signaling end of reading loop). It means Python should fix it, and a Python version without the fix is not compatible with OpenSSL >= 3.6.3. Here is the bug report in the CPython repo. Btw it's crazy that they put this breaking change in a security patch and then they backport it to several earlier versions: this will break things en masse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions