microsoft / OptiGuide

Large Language Models for Supply Chain Optimization
MIT License
299 stars 43 forks source link

ImportError: cannot import name 'OptiGuideAgent' from 'optiguide' #19

Closed yudataguy closed 7 months ago

yudataguy commented 7 months ago

Encountering error while running the notebook

ImportError: cannot import name 'OptiGuideAgent' from 'optiguide' (/usr/local/lib/python3.10/dist-packages/optiguide/__init__.py)

optiguide in /usr/local/lib/python3.10/dist-packages (0.0.2)

Any suggestion?

BeibinLi commented 7 months ago

@yudataguy Thanks for raising this issue. Your suggestion makes sense. Previously, we only support from optiguide.optiguide import OptiGuideAgent, which is quite verbose. I just changed the import path in #20, and now you can do from optiguide import OptiGuideAgent.

Now, try to uninstall the optiguide package and reinstall again. The OptiGuide version 0.0.3 should address your issue.