Hi,
I am having difficulty installing the SQLAlchemy package using the github source that has worked previously.
When I do:
kill 1
pip install -U poetry
I get this error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
clikit 0.6.2 requires crashtest<0.4.0,>=0.3.0; python_version >= "3.6" and python_version < "4.0", but you have crashtest 0.4.1 which is incompatible.
Successfully installed build-0.10.0 cleo-2.0.1 crashtest-0.4.1 dulwich-0.21.5 filelock-3.12.2 importlib-metadata-6.7.0 installer-0.7.0 jaraco.classes-3.2.3 jsonschema-4.18.4 jsonschema-specifications-2023.7.1 keyring-23.13.1 more-itertools-9.1.0 platformdirs-3.8.0 poetry-1.5.1 poetry-core-1.6.1 poetry-plugin-export-1.4.0 pyproject-hooks-1.0.0 rapidfuzz-2.15.1 referencing-0.30.0 rpds-py-0.9.2 trove-classifiers-2023.7.6 virtualenv-20.23.1 zipp-3.15.0
And then when I do:
poetry add -vv git+https://github.com/noneofyourbusiness1415252/replit-py
the install fails with:
• Updating argon2-cffi-bindings (21.2.0 https://files.pythonhosted.org/packages/ec/f7/378254e6dd7ae6f31fe40c8649eea7d4832a42243acaf0f1fff9083b2bed/argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -> 21.2.0): Failed
Stack trace:
1 venv/lib/python3.10/site-packages/poetry/utils/env.py:1509 in _run
output = subprocess.run(
CalledProcessError
Command '['/home/runner/images-in-a-class/venv/bin/python', '-I', '-W', 'ignore', '-']' returned non-zero exit status 1.
at /nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/subprocess.py:526 in run
522│ # We don't call process.wait() as .__exit__ does that for us.
523│ raise
524│ retcode = process.poll()
525│ if check and retcode:
→ 526│ raise CalledProcessError(retcode, process.args,
527│ output=stdout, stderr=stderr)
528│ return CompletedProcess(process.args, retcode, stdout, stderr)
529│
530│
The following error occurred when trying to handle this error:
Stack trace:
13 venv/lib/python3.10/site-packages/poetry/installation/executor.py:286 in _execute_operation
result = self._do_execute_operation(operation)
12 venv/lib/python3.10/site-packages/poetry/installation/executor.py:388 in _do_execute_operation
result: int = getattr(self, f"_execute_{method}")(operation)
11 venv/lib/python3.10/site-packages/poetry/installation/executor.py:515 in _execute_update
status_code = self._update(operation)
10 venv/lib/python3.10/site-packages/poetry/installation/executor.py:574 in _update
return self._install(operation)
9 venv/lib/python3.10/site-packages/poetry/installation/executor.py:546 in _install
archive = self._download(operation)
8 venv/lib/python3.10/site-packages/poetry/installation/executor.py:736 in _download
link = self._chooser.choose_for(operation.package)
7 venv/lib/python3.10/site-packages/poetry/installation/chooser.py:59 in choose_for
if not Wheel(link.filename).is_supported_by_environment(self._env):
6 venv/lib/python3.10/site-packages/poetry/utils/wheel.py:47 in is_supported_by_environment
return bool(set(env.supported_tags).intersection(self.tags))
5 venv/lib/python3.10/site-packages/poetry/utils/env.py:1419 in supported_tags
self._supported_tags = self.get_supported_tags()
4 venv/lib/python3.10/site-packages/poetry/utils/env.py:1697 in get_supported_tags
output = self.run_python_script(GET_SYS_TAGS)
3 venv/lib/python3.10/site-packages/poetry/utils/env.py:1487 in run_python_script
return self.run(
2 venv/lib/python3.10/site-packages/poetry/utils/env.py:1479 in run
return self._run(cmd, **kwargs)
1 venv/lib/python3.10/site-packages/poetry/utils/env.py:1731 in _run
return super()._run(cmd, **kwargs)
EnvCommandError
Command ['/home/runner/images-in-a-class/venv/bin/python', '-I', '-W', 'ignore', '-'] errored with the following return code 1
Error output:
Traceback (most recent call last):
File "<stdin>", line 18, in <module>
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1016, in get_code
File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/images-in-a-class/venv/lib/python3.10/site-packages/packaging/tags.py'
Input:
import importlib.util
import json
import sys
from pathlib import Path
spec = importlib.util.spec_from_file_location(
"packaging", Path(r"/home/runner/images-in-a-class/venv/lib/python3.10/site-packages/packaging/__init__.py")
)
packaging = importlib.util.module_from_spec(spec)
sys.modules[spec.name] = packaging
spec = importlib.util.spec_from_file_location(
"packaging.tags", Path(r"/home/runner/images-in-a-class/venv/lib/python3.10/site-packages/packaging/tags.py")
)
packaging_tags = importlib.util.module_from_spec(spec)
spec.loader.exec_module(packaging_tags)
print(
json.dumps([(t.interpreter, t.abi, t.platform) for t in packaging_tags.sys_tags()])
)
at venv/lib/python3.10/site-packages/poetry/utils/env.py:1525 in _run
1521│ output = ""
1522│ else:
1523│ output = subprocess.check_output(cmd, stderr=stderr, env=env, **kwargs)
1524│ except CalledProcessError as e:
→ 1525│ raise EnvCommandError(e, input=input_)
1526│
1527│ return decode(output)
1528│
1529│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
This error is repeatable with different new repls. However, if I create a new account it does work.
Does anyone have any idea what is going on? I did post this a few days ago as a reply on this thread https://ask.replit.com/t/trouble-installing-packages-in-python/48579 but I think it is probably a separate issue.