#🔒 calling on imports that are not included
29 messages · Page 1 of 1 (latest)
@stable estuary
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.
Can you show an example of what the problem is?
This sounds quite vague to me.
and pip list for virtual environment?
I don't see anything related to datetime in there. For that error though, cgi is deprecated and removed in later versions of Python.
Deprecated since version 3.11, will be removed in version 3.13: The cgi module is deprecated (see PEP 594 for details and alternatives).
And you're using Python 3.13, so that error is expected.
You could try upgrading your aiohttp package, might be updated for the new release.
sorry i said the wrong one i resolved the datetime problem and its the cgi i need
(Because it's aiohttp which it trying to import it.)
https://docs.google.com/document/d/1hfT1At6OHKrhuvsu58DIyMrN1lxH_nu6cfBUPcJsmgk/edit?usp=sharing here is the full code, it is too long for discord
code- # Imports import asyncio import os import time import requests import discord from discord.ext import commands from bs4 import BeautifulSoup import pandas as pd # Discord bot token "*****" # Initialize bot intents = discord.Intents.default() bot = commands.Bot(command_prefix="-", intent...
Try rolling back to Python 3.12 if this is problem.
PEP 594: https://peps.python.org/pep-0594/
Alas, it does not list an alternative source for the cgi module. So you're stuck with Python 3.12 for now until aiohttp gets updated to handle the new situation.
so that did work but now its calling for audioop
aiohttp was last updated on PyPI on 11oct2024, so an update might be enouugh: https://pypi.org/project/aiohttp/
Traceback?
Have you installed audioop? If not, do so.
shouldn't that already be installed
use this if you still need it
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.