Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigSpace vs Numpy 2.0 compatibility #13

Open
relf opened this issue Jun 17, 2024 · 1 comment
Open

ConfigSpace vs Numpy 2.0 compatibility #13

relf opened this issue Jun 17, 2024 · 1 comment

Comments

@relf
Copy link
Member

relf commented Jun 17, 2024

numpy 2.0 is now pulled by default in CI tests but there is a compatibility issue with ConfigSpace.

...
smt/utils/kriging.py:15: in <module>
    from smt.utils.design_space import CategoricalVariable
smt/utils/design_space.py:14: in <module>
    from ConfigSpace import (
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ConfigSpace/__init__.py:32: in <module>
    from ConfigSpace.api import (Beta, Categorical, Distribution, Float, Integer,
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ConfigSpace/api/__init__.py:2: in <module>
    import ConfigSpace.api.types as types
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ConfigSpace/api/types/__init__.py:1: in <module>
    from ConfigSpace.api.types.categorical import Categorical
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ConfigSpace/api/types/categorical.py:8: in <module>
    from ConfigSpace.hyperparameters import (CategoricalHyperparameter,
ConfigSpace/hyperparameters.pyx:1: in init ConfigSpace.hyperparameters
    ???
E   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
@relf
Copy link
Member Author

relf commented Jun 17, 2024

As for Python 3.12 compatibility (see SMTorg/smt#575), the numpy 2.0 compatibility relies on the ConfigSpace PR SMTorg/smt#346

@relf relf transferred this issue from SMTorg/smt Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant