Skip to content

Some PyPI dependencies not installed when installing a package from a private repository #1897

@vladimir-genkin

Description

@vladimir-genkin
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 19.10
  • Poetry version: 1.0.2

Issue

When running poetry install with the pyproject.toml containing a package from a private repository, poetry does install most of the packages from PyPI, but when it comes to installing the private package itself, it fails to install some dependencies:

 Looking in indexes: https://private-repository-url/+simple, https://pypi.org/
 Collecting poetry>=0.12
   ERROR: Could not find a version that satisfies the requirement poetry>=0.12 (from versions: none)

The workaround was to specify the PyPI source in pyproject.toml:

[[tool.poetry.source]]
name = "pypi-repository"
url = "https://pypi.org/simple/"
default = true

So it seems that a possible fix is to add simple/ at the end of PyPI url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions