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

[Bug]: pip install "pyautogen[long-context]" does not install what is expected #2756

Open
Jonathanpro opened this issue May 22, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Jonathanpro
Copy link

Jonathanpro commented May 22, 2024

Describe the bug

when doing pip install "pyautogen[long-context]" PyMuPDF this should lead to the opportunity to do from autogen.agentchat.contrib.capabilities.text_compressors import LLMLingua in python but this is not possible

Steps to reproduce

  • Step 1: I try to follow https://microsoft.github.io/autogen/docs/topics/handling_long_contexts/compressing_text_w_llmligua
  • Step 2: I create a venv with python 3.10 on mac
  • Step 3: i installed jupyter - pip install jupyter
  • Step 4: I did pip install "pyautogen[long-context]" PyMuPDF
  • See error: from autogen.agentchat.contrib.capabilities.text_compressors import LLMLingua result into ModuleNotFoundError: No module named 'autogen.agentchat.contrib.capabilities.text_compressors'
    in jupyter and in shell with python3.10 but import autogen works

Observation : There is no text_compressors.py in ... python3.10/site-packages/autogen/agentchat/contrib/capabilities/

According to repo this file should exist https://github.com/microsoft/autogen/tree/main/autogen/agentchat/contrib/capabilities

Model Used

none

Expected Behavior

blank python env + pip install "pyautogen[long-context]" PyMuPDF should be sufficant to execute from autogen.agentchat.contrib.capabilities.text_compressors import LLMLingua

Screenshots and logs

No response

Additional Information

AutoGen Version: 0.2.27
Operating System: MAC OS 14.5
Python Version: Python 3.10.14

@Jonathanpro Jonathanpro added the bug Something isn't working label May 22, 2024
@brianpham93
Copy link

i got the same error

@lc82111
Copy link

lc82111 commented May 30, 2024

me too. How to surround it temporarily?

@SaraMashal
Copy link

I faced the same error, as well, its like there are missing files in the directory of "autogen.agentchat.contrib". This was not stated in the documentation as well...

@SaraMashal
Copy link

Describe the bug

when doing pip install "pyautogen[long-context]" PyMuPDF this should lead to the opportunity to do from autogen.agentchat.contrib.capabilities.text_compressors import LLMLingua in python but this is not possible

Steps to reproduce

  • Step 1: I try to follow https://microsoft.github.io/autogen/docs/topics/handling_long_contexts/compressing_text_w_llmligua
  • Step 2: I create a venv with python 3.10 on mac
  • Step 3: i installed jupyter - pip install jupyter
  • Step 4: I did pip install "pyautogen[long-context]" PyMuPDF
  • See error: from autogen.agentchat.contrib.capabilities.text_compressors import LLMLingua result into ModuleNotFoundError: No module named 'autogen.agentchat.contrib.capabilities.text_compressors'
    in jupyter and in shell with python3.10 but import autogen works

Observation : There is no text_compressors.py in ... python3.10/site-packages/autogen/agentchat/contrib/capabilities/

According to repo this file should exist https://github.com/microsoft/autogen/tree/main/autogen/agentchat/contrib/capabilities

Model Used

none

Expected Behavior

blank python env + pip install "pyautogen[long-context]" PyMuPDF should be sufficant to execute from autogen.agentchat.contrib.capabilities.text_compressors import LLMLingua

Screenshots and logs

No response

Additional Information

AutoGen Version: 0.2.27 Operating System: MAC OS 14.5 Python Version: Python 3.10.14

I have just fixed this by upgrading to the latest version of autogen==0.2.28
the dependencies are and successfully imported

@jacinli
Copy link

jacinli commented Jun 6, 2024

Just update the latest pyautogen package.I am OK.

@YvettePan-hub
Copy link

same problem here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants