Skip to content

Python 3.14 compatibility: ValueError: argument groups cannot be nested #359

Description

@federedef

Hi,

I'm trying to use pyensembl with Python 3.14.3, but the CLI fails immediately when running:

pyensembl install --release 75 --species homo_sapiens

I get the following output:

/federogc/dev_py/venvs/pets_env/lib/python3.14/site-packages/pyensembl/shell.py:43: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
Traceback (most recent call last):
File "/federogc/dev_py/venvs/pets_env/bin/pyensembl", line 3, in
from pyensembl.shell import run
File "/federogc/dev_py/venvs/pets_env/lib/python3.14/site-packages/pyensembl/shell.py", line 74, in
release_group = root_group.add_argument_group()
File "/soft_bio_267/programs/x86_64/pyenv/.pyenv/versions/3.14.3/lib/python3.14/argparse.py", line 1791, in add_argument_group
raise ValueError('argument groups cannot be nested')
ValueError: argument groups cannot be nested

It looks like Python 3.14 no longer allows nested argument groups in argparse, causing the CLI to fail during initialization.

Additionally, there is a warning about pkg_resources being deprecated and scheduled for removal in future versions of Setuptools.

Is Python 3.14 currently supported? If not, are there any plans to add compatibility?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions