Problem description:
I just created a new Python repl, and got some placeholder text telling me it was a new beta repl. When I try to add the validators
package through the packages tab, I get the following error:
Replit: Updating package configuration
--> poetry add 'validators 0.20.0'
Updating dependencies
Resolving dependencies...
Writing lock file
Package operations: 2 installs, 0 updates, 0 removals
• Installing decorator (5.1.1)
• Installing validators (0.20.0)
EnvCommandError
Command ['pip', 'install', '--no-deps', 'https://files.pythonhosted.org/packages/95/14/ed0af6865d378cfc3c504aed0d278a890cbefb2f1934bf2dbe92ecf9d6b1/validators-0.20.0.tar.gz#sha256=24148ce4e64100a2d5e267233e23e7afeb55316b47d30faae7eb6e7292bc226a'] errored with the following return code 1, and output:
Looking in indexes: https://package-proxy.replit.com/pypi/simple/
Collecting https://files.pythonhosted.org/packages/95/14/ed0af6865d378cfc3c504aed0d278a890cbefb2f1934bf2dbe92ecf9d6b1/validators-0.20.0.tar.gz#sha256=24148ce4e64100a2d5e267233e23e7afeb55316b47d30faae7eb6e7292bc226a
Using cached validators-0.20.0.tar.gz (30 kB)
ERROR: Command errored out with exit status 1:
command: /nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/bin/python3.10 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-mnumkj2i/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-mnumkj2i/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-wkx7rqhh
cwd: /tmp/pip-req-build-mnumkj2i/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/95/14/ed0af6865d378cfc3c504aed0d278a890cbefb2f1934bf2dbe92ecf9d6b1/validators-0.20.0.tar.gz#sha256=24148ce4e64100a2d5e267233e23e7afeb55316b47d30faae7eb6e7292bc226a. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
at /nix/store/298sf6p0k8yxlircd825nd9xya63mkcp-poetry-in-venv/env/lib/python3.10/site-packages/poetry/utils/env.py:1197 in _run
1193│ output = subprocess.check_output(
1194│ cmd, stderr=subprocess.STDOUT, **kwargs
1195│ )
1196│ except CalledProcessError as e:
→ 1197│ raise EnvCommandError(e, input=input_)
1198│
1199│ return decode(output)
1200│
1201│ def execute(self, bin, *args, **kwargs):
Failed to add packages, reverting the pyproject.toml file to its original content.
exit status 1
Replit: Package operation failed.