Skip to content

Dependencies of Git Dependencies are not always installed #9066

@meln5674

Description

@meln5674

Description

Adding https://github.com/kubernetes-client/python as a dependency via git does not install its dependencies. Using pip directly installs dependencies, as does installing the package from pypi.

Workarounds

Manually copying dependencies to pyproject.toml

Poetry Installation Method

pipx

Operating System

Debian GNU/Linux 12 (bookworm)

Poetry Version

Poetry (version 1.8.1)

Poetry Configuration

cache-dir = "/home/andrew/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /home/andrew/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

[tool.poetry]
name = "git-deps-issue"
version = "0.1.0"
description = ""
authors = ["Someone <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.8"
kubernetes = {git = "https://github.com/kubernetes-client/python"}

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Poetry Runtime Logs

# poetry -vvv install
Loading configuration file /home/andrew/.config/pypoetry/config.toml
Creating virtualenv git-deps-issue-5ERwWHeK-py3.11 in /home/andrew/.cache/pypoetry/virtualenvs
[virtualenv] find interpreter for spec PythonSpec(path=/home/andrew/.local/pipx/venvs/poetry/bin/python)
[filelock:filelock] Attempting to acquire lock 139883611697616 on /home/andrew/.local/share/virtualenv/py_info/1/ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23.lock
[filelock:filelock] Lock 139883611697616 acquired on /home/andrew/.local/share/virtualenv/py_info/1/ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23.lock
[virtualenv] got python info of %s from (PosixPath('/usr/bin/python3.11'), PosixPath('/home/andrew/.local/share/virtualenv/py_info/1/ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23.json'))
[filelock:filelock] Attempting to release lock 139883611697616 on /home/andrew/.local/share/virtualenv/py_info/1/ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23.lock
[filelock:filelock] Lock 139883611697616 released on /home/andrew/.local/share/virtualenv/py_info/1/ca3ed784184f1b3bb7c3539bfb45e71710cd27667424f92c2d5bb4df9c107c23.lock
[virtualenv] proposed PythonInfo(spec=CPython3.11.2.final.0-64, system=/usr/bin/python3.11, exe=/home/andrew/.local/pipx/venvs/poetry/bin/python, platform=linux, version='3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8)
[virtualenv] accepted PythonInfo(spec=CPython3.11.2.final.0-64, system=/usr/bin/python3.11, exe=/home/andrew/.local/pipx/venvs/poetry/bin/python, platform=linux, version='3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]', encoding_fs_io=utf-8-utf-8)
[virtualenv] filesystem is case-sensitive
[virtualenv] create virtual environment via CPython3Posix(dest=/home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11, clear=False, no_vcs_ignore=False, global=False)
[virtualenv] create folder /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin
[virtualenv] create folder /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages
[virtualenv] write /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/pyvenv.cfg
[virtualenv] 	home = /usr/bin
[virtualenv] 	implementation = CPython
[virtualenv] 	version_info = 3.11.2.final.0
[virtualenv] 	virtualenv = 20.25.1
[virtualenv] 	include-system-site-packages = false
[virtualenv] 	base-prefix = /usr
[virtualenv] 	base-exec-prefix = /usr
[virtualenv] 	base-executable = /usr/bin/python3.11
[virtualenv] symlink /usr/bin/python3.11 to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/python
[virtualenv] create virtualenv import hook file /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/_virtualenv.pth
[virtualenv] create /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/_virtualenv.py
[virtualenv] ============================== target debug ==============================
[virtualenv] debug via /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/python /home/andrew/.local/pipx/venvs/poetry/lib/python3.11/site-packages/virtualenv/create/debug.py
[virtualenv] {
[virtualenv]   "sys": {
[virtualenv]     "executable": "/home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/python",
[virtualenv]     "_base_executable": "/usr/bin/python3.11",
[virtualenv]     "prefix": "/home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11",
[virtualenv]     "base_prefix": "/usr",
[virtualenv]     "real_prefix": null,
[virtualenv]     "exec_prefix": "/home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11",
[virtualenv]     "base_exec_prefix": "/usr",
[virtualenv]     "path": [
[virtualenv]       "/usr/lib/python311.zip",
[virtualenv]       "/usr/lib/python3.11",
[virtualenv]       "/usr/lib/python3.11/lib-dynload",
[virtualenv]       "/home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages"
[virtualenv]     ],
[virtualenv]     "meta_path": [
[virtualenv]       "<class '_virtualenv._Finder'>",
[virtualenv]       "<class '_frozen_importlib.BuiltinImporter'>",
[virtualenv]       "<class '_frozen_importlib.FrozenImporter'>",
[virtualenv]       "<class '_frozen_importlib_external.PathFinder'>"
[virtualenv]     ],
[virtualenv]     "fs_encoding": "utf-8",
[virtualenv]     "io_encoding": "utf-8"
[virtualenv]   },
[virtualenv]   "version": "3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]",
[virtualenv]   "makefile_filename": "/usr/lib/python3.11/config-3.11-x86_64-linux-gnu/Makefile",
[virtualenv]   "os": "<module 'os' (frozen)>",
[virtualenv]   "site": "<module 'site' (frozen)>",
[virtualenv]   "datetime": "<module 'datetime' from '/usr/lib/python3.11/datetime.py'>",
[virtualenv]   "math": "<module 'math' (built-in)>",
[virtualenv]   "json": "<module 'json' from '/usr/lib/python3.11/json/__init__.py'>"
[virtualenv] }
[virtualenv] add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, via=copy, app_data_dir=/home/andrew/.local/share/virtualenv)
[virtualenv] install setuptools from wheel /home/andrew/.local/pipx/venvs/poetry/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/setuptools-69.1.0-py3-none-any.whl via CopyPipInstall
[virtualenv] install pip from wheel /home/andrew/.local/pipx/venvs/poetry/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-24.0-py3-none-any.whl via CopyPipInstall
[filelock:filelock] Attempting to acquire lock 139883609168016 on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any.lock
[filelock:filelock] Attempting to acquire lock 139883609175184 on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any.lock
[filelock:filelock] Lock 139883609168016 acquired on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any.lock
[filelock:filelock] Lock 139883609175184 acquired on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any.lock
[filelock:filelock] Attempting to release lock 139883609168016 on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any.lock
[filelock:filelock] Lock 139883609168016 released on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any.lock
[filelock:filelock] Attempting to release lock 139883609175184 on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any.lock
[filelock:filelock] Lock 139883609175184 released on /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any.lock
[virtualenv] copy directory /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any/pkg_resources to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/pkg_resources
[virtualenv] copy directory /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any/pip-24.0.dist-info to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/pip-24.0.dist-info
[virtualenv] copy directory /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any/pip to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/pip
[virtualenv] copy directory /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any/_distutils_hack to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/_distutils_hack
[virtualenv] copy directory /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any/setuptools-69.1.0.dist-info to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/setuptools-69.1.0.dist-info
[virtualenv] copy /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any/distutils-precedence.pth to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/distutils-precedence.pth
[virtualenv] copy /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any/setuptools-69.1.0.virtualenv to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/setuptools-69.1.0.virtualenv
[virtualenv] copy directory /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.1.0-py3-none-any/setuptools to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/setuptools
[virtualenv] generated console scripts 
[virtualenv] copy /home/andrew/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any/pip-24.0.virtualenv to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages/pip-24.0.virtualenv
[distlib:distlib.util] changing mode of /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/pip-3.11 to 755
[distlib:distlib.util] changing mode of /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/pip3.11 to 755
[distlib:distlib.util] changing mode of /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/pip3 to 755
[distlib:distlib.util] changing mode of /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/bin/pip to 755
[virtualenv] generated console scripts pip3 pip3.11 pip-3.11 pip
[virtualenv] add activators for Bash, CShell, Fish, Nushell, PowerShell, Python
[virtualenv] write /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/pyvenv.cfg
[virtualenv] 	home = /usr/bin
[virtualenv] 	implementation = CPython
[virtualenv] 	version_info = 3.11.2.final.0
[virtualenv] 	virtualenv = 20.25.1
[virtualenv] 	include-system-site-packages = false
[virtualenv] 	base-prefix = /usr
[virtualenv] 	base-exec-prefix = /usr
[virtualenv] 	base-executable = /usr/bin/python3.11
[virtualenv] 	prompt = git-deps-issue-py3.11
Using virtualenv: /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 1 install, 0 updates, 0 removals

  - Installing kubernetes (29.0.0+snapshot d36ec43): Pending...
  - Installing kubernetes (29.0.0+snapshot d36ec43): Installing...
  - Installing kubernetes (29.0.0+snapshot d36ec43)

Installing the current project: git-deps-issue (0.1.0)
  - Building package git-deps-issue in editable mode
  - Adding git_deps_issue.pth to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages for /home/andrew/git/src/github.com/meln5674/poetry-test
  - Adding the git_deps_issue-0.1.0.dist-info directory to /home/andrew/.cache/pypoetry/virtualenvs/git-deps-issue-5ERwWHeK-py3.11/lib/python3.11/site-packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions