#๐Ÿ”’ Python module not found cgi

7 messages ยท Page 1 of 1 (latest)

carmine canyon
#

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\yeffet's SelfBot\bot.py", line 35, in <module>
from googletrans import Translator, LANGUAGES
File "C:\Python313\Lib\site-packages\googletrans_init_.py", line 6, in <module>
from googletrans.client import Translator
File "C:\Python313\Lib\site-packages\googletrans\client.py", line 13, in <module>
import httpx
File "C:\Python313\Lib\site-packages\httpx_init_.py", line 2, in <module>
from ._api import delete, get, head, options, patch, post, put, request, stream
File "C:\Python313\Lib\site-packages\httpx_api.py", line 3, in <module>
from ._client import Client, StreamContextManager
File "C:\Python313\Lib\site-packages\httpx_client.py", line 8, in <module>
from ._auth import Auth, BasicAuth, FunctionAuth
File "C:\Python313\Lib\site-packages\httpx_auth.py", line 10, in <module>
from ._models import Request, Response
File "C:\Python313\Lib\site-packages\httpx_models.py", line 1, in <module>
import cgi
ModuleNotFoundError: No module named 'cgi'

I did pip install cgi and it still dosent work

ionic rampartBOT
#

@carmine canyon

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

narrow bluff
severe vault
#

cgi was removed, too. You could try an older Python eg 3.10 or such.

ionic rampartBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.