Skip to content

Incompatibility with NumPy 2.4: SeedlessSequence removed #426

@hennigfr

Description

@hennigfr

Randomgen 2.3 seems to be incompatible with NumPy 2.4. In this constellation, import randomgen immediately fails with this error:

Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import randomgen
  File "<prefix>/lib/python3.13/site-packages/randomgen/__init__.py", line 6, in <module>
    from randomgen._register import BitGenerators
  File "<prefix>/lib/python3.13/site-packages/randomgen/_register.py", line 3, in <module>
    from randomgen.aes import AESCounter
  File "randomgen/aes.pyx", line 1, in init randomgen.aes
  File "randomgen/common.pyx", line 1, in init randomgen.common
AttributeError: module 'numpy.random.bit_generator' has no attribute 'SeedlessSequence'. Did you mean: 'SeedSequence'?

pip list output:

Package   Version
--------- -------
numpy     2.4.0
pip       25.2
randomgen 2.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions