Skip to content

get_library seems to be broken #353

Description

@Koncopd

Setup

I am reporting a problem with GSEApy version, Python version, and operating
system as follows:

import sys; print(sys.version)
import platform; print(platform.python_implementation()); print(platform.platform())
import gseapy; print(gseapy.__version__)

3.13.12 | packaged by conda-forge | (main, Feb 5 2026, 05:41:12) [MSC v.1944 64 bit (AMD64)]
CPython
Windows-11-10.0.26200-SP0
1.1.13

Expected behaviour

get_library(name="GO_Biological_Process_2025", organism="Human") downloads and parses the library

Actual behaviour

gp.get_library(name="GO_Biological_Process_2025", organism="Human") results in TypeError

Steps to reproduce

import gseapy as gp
go_bp = gp.get_library(name="GO_Biological_Process_2025", organism="Human")
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    go_bp = gp.get_library(name="GO_Biological_Process_2025", organism="Human")
  File "C:\Users\konco\Apps\miniforge3\envs\lamin313\Lib\site-packages\gseapy\parser.py", line 134, in get_library
    genesets_dict = download_library(name, organism=organism)
  File "C:\Users\konco\Apps\miniforge3\envs\lamin313\Lib\site-packages\gseapy\parser.py", line 316, in download_library
    line = line.strip().split("\t")
TypeError: a bytes-like object is required, not 'str'

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions