-
Trying to install % ❯ poetry add libsixel-python
Using version ^0.5.0 for libsixel-python
Updating dependencies
Resolving dependencies... (0.6s)
Package operations: 1 install, 0 updates, 0 removals
• Installing libsixel-python (0.5.0): Failed
EnvCommandError
Command ['/Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.9/bin/pip', 'install', '--no-deps', 'file:///Users/pawlu/Library/Caches/pypoetry/artifacts/17/97/77/36c11dc77874fbb3ae7fb5d439eafb9b008ed60870b9fcd39ca0172297/libsixel-python-0.5.0.macosx-10.13-x86_64.tar.gz'] errored with the following return code 1, and output:
Processing /Users/pawlu/Library/Caches/pypoetry/artifacts/17/97/77/36c11dc77874fbb3ae7fb5d439eafb9b008ed60870b9fcd39ca0172297/libsixel-python-0.5.0.macosx-10.13-x86_64.tar.gz
ERROR: File "setup.py" not found for legacy project file:///Users/pawlu/Library/Caches/pypoetry/artifacts/17/97/77/36c11dc77874fbb3ae7fb5d439eafb9b008ed60870b9fcd39ca0172297/libsixel-python-0.5.0.macosx-10.13-x86_64.tar.gz. However, % python -m pip intstall libsixel-python Both are using the same version of pip (21.1.3). What's going on here? What does Poetry do differently that results in a failure? |
Beta Was this translation helpful? Give feedback.
Answered by
abn
Oct 25, 2021
Replies: 1 comment 1 reply
-
Looks like this was an issue with how the package archive was chosen. The package seems to have a dumb bdist attached which gets treated as an sdist by poetry. This seems to be resolved in master. Using pipxpipx install --suffix=@master 'poetry @ git+https://github.com/python-poetry/poetry.git@master' Using a container (podman | docker)podman run --rm -i --entrypoint bash python:3.8 <<EOF
set -xe
python -m pip install -q git+https://github.com/python-poetry/poetry.git@master
poetry new foobar
pushd foobar
poetry add libsixel-python
EOF This should produce the output (with pipx install) $ poetry@master add libsixel-python
Using version ^0.5.0 for libsixel-python
Updating dependencies
Resolving dependencies... (0.1s)
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing libsixel-python (0.5.0)
$ |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
paw-lu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like this was an issue with how the package archive was chosen. The package seems to have a dumb bdist attached which gets treated as an sdist by poetry. This seems to be resolved in master.
Using pipx
pipx install --suffix=@master 'poetry @ git+https://github.com/python-poetry/poetry.git@master'
Using a container (podman | docker)
This should produce the output (with pipx install)