Python packages not getting installed.
When I click “install” on a package in the Packages tab, it gets installed, the button changes to “Remove”, and I can use the package.
When I click “Install” on a package in the Packages tab on Replit, it seems to download the package for a bit, and also gives me a red popup saying “… installed.”
But then, in the same Packages tab, the package still doesn’t show as “Installed,” it just shows the same button as before: “Install.” I also checked the poetry file and it doesn’t mention the package at all.
When I try to install again the cycle above repeats.
I get the same problem for different packages, and have tried on different browsers and machines.
But if I use pip in the shell, it does work.
UPDATE: I tried to install Flask-Compress, using the Packages manager. After a loooong time, the console threw this error:
--> poetry add 'Flask-Compress 1.13' TypeError expected string or bytes-like object at venv/lib/python3.10/site-packages/poetry/core/utils/helpers.py:27 in canonicalize_name 23│ _canonicalize_regex = re.compile(r"[-_]+") 24│ 25│ 26│ def canonicalize_name(name): # type: (str) -> str → 27│ return _canonicalize_regex.sub("-", name).lower() 28│ 29│ 30│ def module_name(name): # type: (str) -> str 31│ return canonicalize_name(name).replace(".", "_").replace("-", "_") exit status 1 Replit: Package operation failed.
Steps to reproduce:
No idea what happened. It just stopped installing one day.
Bug appears at this link:
Tried both Firefox and Chrome, on MacOS Monterey as well as MacOS Catalina.
My repl is private, but here’s the link: https://replit.com/@mngrwl/DLResurrect