Closed sedol1339 closed 9 months ago
Which Python version are you using? You should be using 3.9 (higher might also work, but it's not officially supported). The second error looks like a problem with the type hints because of the Python version (using list
instead of List
is a 3.9+ feature).
AttributeError: module 'numpy' has no attribute 'float'.
numpy.float
is not directly accessed in either __init__.py
or exec.py
, so I think it is indeed an issue with installed dependencies. It is possible that there is a mismatch in dependency versions due to the used Python version. I'll try to see if I can run the Stacking example tomorrow.
Got it, i just need to update to python 3.9, thank you, now these errors are gone
Hello! I'm trying to run the example model
examples/custom/extensions/Stacking
. As proposed by @PGijsbers , in setup.py I do the replacement:Then I'm running the following command:
This gives the following error:
Assuming some problems with numpy versions, and do the following replacement in
requirements.txt
:Then I remove
examples/custom/extensions/Stacking/venv
folder and re-run the command. After this, the above error is gone, however I get a new error:Just to mention, I received the same error while trying to run my custom framework CatBoost. How to fix this?