LLMLingua icon indicating copy to clipboard operation
LLMLingua copied to clipboard

[Bug]: cannot import name 'PromptCompressor' from partially initialized module 'llmlingua'

Open jiapingW opened this issue 1 year ago • 0 comments

Describe the bug

I pip installed llmlingua in the conda environment. Its version is llmlingua-0.2.2. I created a new python file with the code:

from llmlingua import PromptCompressor

It reported an error:

ImportError: cannot import name 'PromptCompressor' from partially initialized module 'llmlingua' (most likely due to a circular import). 

I checked your source code and didn't see any obvious circular import problem. Could you tell me how to solve it?

Steps to reproduce

No response

Expected Behavior

No response

Logs

No response

Additional Information

No response

jiapingW avatar Aug 02 '24 01:08 jiapingW