microsoft / FLAML

A fast library for AutoML and tuning. Join our Discord: https://discord.gg/Cppx2vSPVP.
https://microsoft.github.io/FLAML/
MIT License
3.91k stars 508 forks source link

import error #663

Open daddyseal opened 2 years ago

daddyseal commented 2 years ago

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,

sonichi commented 2 years ago

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

daddyseal commented 2 years ago

flaml 1.0.9 mlflow 1.26.1

sonichi commented 2 years ago

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

daddyseal commented 2 years ago

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

sonichi commented 2 years ago

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?

daddyseal commented 2 years ago

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

daddyseal commented 2 years ago

conda install -c conda-forge flaml

sonichi commented 2 years ago

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?

daddyseal commented 2 years ago

ok. will try later, thanks for checking.