-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: litellm 1.59.9 ModuleNotFoundError: No module named 'cgi'
#8081
Comments
ModuleNotFoundError: No module named 'cgi'
Same, only affecting Python 3.13 venvs in our CI tests. This seems to be the proximate commit: 8eaa5dc#diff-a3c9843a716ad6c49482395f7357e83abc5397168eafc75fa2dba2124619dcebR2156 Merged 15 hours ago. Does this project not have python 3.13 tests? |
BerriAI/litellm#8081 Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
cc @krrishdholakia can you look into this, coming from here: 8eaa5dc#diff-a3c9843a716ad6c49482395f7357e83abc5397168eafc75fa2dba2124619dcebR2156 |
BerriAI/litellm#8081 Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
cgi is no longer part of the python standard library in 3.13 I had a similar issue after installing some packages in Python and the issue was resolved after I ran %pip install legacy-cgi The documentation says to use a fork of the module found legacy-cgi |
same issue here. I'm trying to get smolagents to use ollama, and smolagents |
We have the same issue. |
@ishaan-jaff @krrishdholakia this might help fixing support for Python 3.13, basically you can add |
@ishaan-jaff @krrishdholakia implemented a replacement of the |
Closing as the fix is now on main. Should be live in today's release - v1.60.x |
FYI I just ran into this again on v1.60.0 Here's the stack trace
|
What happened?
Error showing in the latest version of litellm 1.59.9
ModuleNotFoundError: No module named 'cgi'
Relevant log output
Are you a ML Ops Team?
Yes
What LiteLLM version are you on ?
v1.59.9
Twitter / LinkedIn details
https://www.linkedin.com/in/glenn-jocher/
The text was updated successfully, but these errors were encountered: