When i try to run from termcolor import colored, cprint
, it keeps coming up with Repl.it: Package operation failed.
Does anyone know what the problem is and how to fix it?
Asked
Active
Viewed 131 times
0

RonaB
- 5
- 2
-
[Does this answer your question?](https://replit.com/talk/ask/What-does-Replit-Package-operation-failed-mean/37267#165845) – 12944qwerty May 04 '21 at 03:03
-
before, when i tried it worked on repl – RonaB May 04 '21 at 03:04
1 Answers
0
Although it is quite old, termcolor
is a very simple py module that should have no problems in replit. I myself have no issues importing and running its example script on replit.
Likely, the module packager files (pyproject.toml
and poetry.lock
) have become corrupted on your replit due to optimistic replication conflict, adversarial machinations, catastrophic hash collisions, quantum tunnelling, or relativistic event horizon information loss — all known hazards of python programming.
To recover, try removing the packager files using the command below and trying to run the project again.
rm pyproject.toml poetry.lock

Mavaddat Javid
- 491
- 4
- 19