FLAML icon indicating copy to clipboard operation
FLAML copied to clipboard

import error

Open daddyseal opened this issue 3 years ago • 9 comments

Hello, can't import flaml

error like:

...Anaconda3\lib\site-packages\mlflow\protos\scalapb\scalapb_pb2.py", line 22, in options = DESCRIPTOR.extensions_by_name['options'] AttributeError: 'NoneType' object has no attribute 'extensions_by_name'

thanks,

daddyseal avatar Aug 04 '22 13:08 daddyseal

Hi. what's the version of flaml and mlflow?

sonichi avatar Aug 04 '22 15:08 sonichi

flaml 1.0.9 mlflow 1.26.1

daddyseal avatar Aug 04 '22 18:08 daddyseal

How did you install the packages? I tried pip install these two packages and I don't have any issue importing flaml. pip install flaml==1.0.9 mlflow==1.26.1 image

sonichi avatar Aug 04 '22 18:08 sonichi

thanks for looking into it. i did conda install on flaml yesterday....mlflow maybe came with other package a while ago. should be all conda install

daddyseal avatar Aug 04 '22 18:08 daddyseal

thanks for looking into it. i did conda install on flaml yesterday....mlflow maybe came with other package a while ago. should be all conda install

Do you mind sharing the conda install commands to reproduce this issue?

sonichi avatar Aug 04 '22 18:08 sonichi

just tried again, same error 'either import flaml or from flaml import AutoML

daddyseal avatar Aug 04 '22 18:08 daddyseal

conda install -c conda-forge flaml

daddyseal avatar Aug 04 '22 18:08 daddyseal

I ran:

conda install -c conda-forge flaml
conda install -c conda-forge mlflow==1.26.1

and I don't get an import error: image

could you please try installing the packages in a clean environment?

sonichi avatar Aug 04 '22 22:08 sonichi

ok. will try later, thanks for checking.

daddyseal avatar Aug 05 '22 13:08 daddyseal