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

run_test crashes with "Argument 'default_value' has incorrect type" #69

Open
Kaduo opened this issue Oct 3, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Kaduo
Copy link

Kaduo commented Oct 3, 2023

When trying to run the tests after installing openbox in a fresh virtual environment (python 3.11), I get the following error:

File "/home/user/test.py", line 4, in <module>
    run_test()

  File "/home/user/.venv/lib/python3.11/site-packages/openbox/utils/test_install.py", line 21, in run_test
    x1 = sp.Real("x1", -5, 10, default_value=0)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/user/.venv/lib/python3.11/site-packages/openbox/utils/space.py", line 99, in __init__
    super().__init__(name=name, lower=lower, upper=upper,

  File "ConfigSpace/hyperparameters.pyx", line 669, in ConfigSpace.hyperparameters.UniformFloatHyperparameter.__init__

TypeError: Argument 'default_value' has incorrect type (expected float, got int)
@jhj0411jhj jhj0411jhj added the bug Something isn't working label Oct 25, 2023
@jhj0411jhj
Copy link
Member

jhj0411jhj commented Nov 8, 2023

Thanks for the issue. It seems to be an incompatibility bug between the ConfigSpace package and python3.11 (or cython). (See automl/ConfigSpace#336) Upgrade Configspace to 0.7.1 will fix it (via pip install ConfigSpace==0.7.1), or use python 3.10 instead. We are doing more test to find a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants