Skip to content

[Bug]: Installation fails if binary distributions are prohibited #3036

@lubo

Description

@lubo

Version

1.58.0

Steps to reproduce

  1. Prohibit binary distributions by setting installer.no-binary to :all: or true.
  2. Run $ poetry add playwright.

Expected behavior

Installing playwright package succeeds.

Actual behavior

$ poetry add playwright
Using version ^1.58.0 for playwright

Updating dependencies
Resolving dependencies... (2.5s)

Package operations: 3 installs, 0 updates, 0 removals

  - Installing greenlet (3.3.2)
  - Installing pyee (13.0.1)
  - Installing playwright (1.58.0): Failed

    | Unable to find installation candidates for playwright (1.58.0)
    | 
    | This is likely not a Poetry issue.
    | 
    |   - 8 candidate(s) were identified for the package
    |   - 8 wheel(s) were skipped due to your installer.no-binary policy
    | 
    | Solutions:
    | Make sure the lockfile is up-to-date. You can try one of the following;
    | 
    |     1. Regenerate lockfile: poetry lock --no-cache --regenerate
    |     2. Update package     : poetry update --no-cache playwright
    | 
    | If any of those solutions worked, you will have to clear your caches using (poetry cache clear --all).
    | 
    | If neither works, please first check to verify that the playwright has published wheels available from your configured source that are compatible with your environment- ie. operating system, architecture (x86_64, arm64 etc.), python interpreter.

Additional context

Seems like no platform-independent distribution is available on PyPI. After investigating the package, it seems like the only reason for this is driver/node, which seems to be Node.js executable. I already do have Node.js installed on my system and I checked the version compatibility here.

So, I'd like to not be forced to have this executable on my system and have Playwright use the system Node.js. And that's exactly what the Arch Linux package has been doing.

Environment

- Operating System: Arch Linux
- CPU: x86_64
- Browser: All
- Python Version: 3.14.3
- Other info:
  - Poetry version: 2.3.2

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