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

Fix AttributeError: readonly attribute for Python 3.10.4 #518

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

jayshanker2000
Copy link

Traceback:

    from flaml.ml import sklearn_metric_loss_score
  File "/home/Jay/new_venv/lib/python3.10/site-packages/flaml/__init__.py", line 2, in <module>
    from flaml.automl import AutoML, logger_formatter
  File "/home/Jay/new_venv/lib/python3.10/site-packages/flaml/automl.py", line 52, in <module>
    from flaml.default.suggest import suggest_learner
  File "/home/Jay/new_venv/lib/python3.10/site-packages/flaml/default/__init__.py", line 8, in <module>
    from .estimator import (
  File "/home/Jay/new_venv/lib/python3.10/site-packages/flaml/default/estimator.py", line 153, in <module>
    RandomForestRegressor = flamlize_estimator(
  File "/home/Jay/new_venv/lib/python3.10/site-packages/flaml/default/estimator.py", line 30, in flamlize_estimator
    class EstimatorClass(super_class):
  File "/home/Jay/new_venv/lib/python3.10/site-packages/flaml/default/estimator.py", line 44, in EstimatorClass
    def _get_param_names(cls):
  File "/home/Jay/.pyenv/versions/3.10.4/lib/python3.10/functools.py", line 61, in update_wrapper
    wrapper.__wrapped__ = wrapped
AttributeError: readonly attribute

Process finished with exit code 1

@sonichi sonichi merged commit 46f80df into microsoft:main Apr 15, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants