Unable to run code

When I try to run my code, it automatically starts this command: python3 -m poetry install

After it tries to install, it shows “Unable to Install” every time. After the error, I get this message:

Traceback (most recent call last):
File “main.py”, line 2, in
import discord
File “/home/runner/ChatBot/venv/lib/python3.10/site-packages/discord/init.py”, line 23, in
from .client import *
File “/home/runner/ChatBot/venv/lib/python3.10/site-packages/discord/client.py”, line 47, in
import aiohttp
File “/home/runner/ChatBot/venv/lib/python3.10/site-packages/aiohttp/init.py”, line 6, in
from .client import (
File “/home/runner/ChatBot/venv/lib/python3.10/site-packages/aiohttp/client.py”, line 88, in
from .tracing import Trace, TraceConfig
File “/home/runner/ChatBot/venv/lib/python3.10/site-packages/aiohttp/tracing.py”, line 5, in
from aiosignal import Signal
ModuleNotFoundError: No module named ‘aiosignal’

Well, Python can’ find the module called aiosignal, which the solution is straight forward, just install aiosignal!

Run “pip install aiosignal” in shell and everything should be fine

Welcome to the community by the way

1 Like

run poetry install in shell to see what the packager error is

1 Like

It showed me an error when I tried to install it.

I copied the whole code and made a new file. Now it seems to work again.