Poetry and packages in replit

Replit: Updating package configuration

→ poetry remove discord
Traceback (most recent call last):
File “/home/runner/Slime-bot-for-DC/venv/bin/poetry”, line 5, in
from poetry.console import main
ModuleNotFoundError: No module named ‘poetry’
exit status 1

Replit: Package operation failed.

I receive the above error when trying to remove or install a package in replit, what should I do? is the problem with poetry, and i will have to remove poetry and use pip instead? If so, how should I do that?

1 Like

You don’t have to remove poetry to use pip. Try pip uninstall discord.

3 Likes

Thank you for your reply.

But I receive the following error when trying to do your said command:

Traceback (most recent call last):
File “/home/runner/Slime-bot-for-DC/venv/bin/pip”, line 5, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip’

And when I tried to remove or install a package in replit, I receive the earliest error

1 Like

Er, I think the best thing you can do is create a new Repl and move your code into there.

3 Likes

Hi @TonyCen.

Can I get a Repl link? I’ll see if I can get it to work…

I checked out your profile, is this the Repl? https://replit.com/@TonyCen/1122022-slime-bot-for-DC?v=1

If so, poetry remove discord gives me no problem. Did you mean pip uninstall discord?

BTW I know I don’t even know if that’s the correct repl.

pip command is also not giving me any errors/

1 Like

You error is actually a very common one here, type that in the shell, not in the console. (Ik it is the console because of the error, bash does not give python errors)

Don’t think that would help much if they were still using the console XD

5 Likes

Thank you for your reply and please excuse me for not attaching a link earlier.

Here is the correct link: https://replit.com/@traffyboi/Slime-bot-for-DC

1 Like

First of all, please excuse me for not being clear.

Second of all, the command is being typed into the shell, not the console…
And below is the error message again:

~/Slime-bot-for-DC$ pip uninstall discordTraceback (most recent call last):
  File "/home/runner/Slime-bot-for-DC/venv/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
1 Like

Try:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall

From here.

6 Likes

Yes this would work.

1 Like