Skip to content

ERROR: File "setup.py" not found for legacy project #4372

@paw-lu

Description

@paw-lu

Trying to install libsixel-python via Poetry results in a

% ❯ 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, pip succeeds.

% 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?
How is this fixed?

Originally posted by @paw-lu in #4263

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions