{"id":16516957,"url":"https://github.com/alkasm/vcs-url-install-example","last_synced_at":"2025-06-10T14:04:05.897Z","repository":{"id":38883976,"uuid":"506755875","full_name":"alkasm/vcs-url-install-example","owner":"alkasm","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-23T18:55:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T18:20:43.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alkasm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-23T18:49:49.000Z","updated_at":"2022-06-23T18:51:38.000Z","dependencies_parsed_at":"2022-09-18T13:41:19.097Z","dependency_job_id":null,"html_url":"https://github.com/alkasm/vcs-url-install-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkasm%2Fvcs-url-install-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkasm%2Fvcs-url-install-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkasm%2Fvcs-url-install-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkasm%2Fvcs-url-install-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alkasm","download_url":"https://codeload.github.com/alkasm/vcs-url-install-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alkasm%2Fvcs-url-install-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259088478,"owners_count":22803642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T16:27:51.803Z","updated_at":"2025-06-10T14:04:05.852Z","avatar_url":"https://github.com/alkasm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo demonstrates the problem of \"offline installations of a package with a VCS URL dependency fails even if the dependency is already installed.\"\n\nThis was tested with `pip 22.1.2`, but as far as I know can be reproduced on any version of `pip` since the new resolver was rolled out.\n\n1. With a connection to the internet, `pip install .` pulls the VCS URL at install time and succeeds:\n```\nProcessing /Users/alkasm/prog/test-vcs-url\n  Preparing metadata (setup.py) ... done\nCollecting theta-alkasm@ git+ssh://git@github.com/alkasm/theta\n  Cloning ssh://****@github.com/alkasm/theta to /private/var/folders/f0/_dkywzrd7f3bd4hdj2bmfv4m0000gp/T/pip-install-2yry1xt_/theta-alkasm_50aee5ce640c490494d6c7fabdb084fc\n  Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/alkasm/theta' /private/var/folders/f0/_dkywzrd7f3bd4hdj2bmfv4m0000gp/T/pip-install-2yry1xt_/theta-alkasm_50aee5ce640c490494d6c7fabdb084fc\n  Resolved ssh://****@github.com/alkasm/theta to commit 796aa646d65c998cf9b68370d22f0e1a2dc0bd87\n  Installing build dependencies ... done\n  Getting requirements to build wheel ... done\n  Preparing metadata (pyproject.toml) ... done\nUsing legacy 'setup.py install' for test-pkg, since package 'wheel' is not installed.\nInstalling collected packages: test-pkg\n  Running setup.py install for test-pkg ... done\nSuccessfully installed test-pkg-0.0.0\n```\n2. If you then disconnect from the internet and try to `pip install .` again, the package will fail to install with an error like:\n```\npip install .\nProcessing /Users/alkasm/prog/test-vcs-url\n  Preparing metadata (setup.py) ... done\nCollecting theta-alkasm@ git+ssh://git@github.com/alkasm/theta\n  Cloning ssh://****@github.com/alkasm/theta to /private/var/folders/f0/_dkywzrd7f3bd4hdj2bmfv4m0000gp/T/pip-install-c25yoka6/theta-alkasm_fb490879532a46778a6bce77390048c9\n  Running command git clone --filter=blob:none --quiet 'ssh://****@github.com/alkasm/theta' /private/var/folders/f0/_dkywzrd7f3bd4hdj2bmfv4m0000gp/T/pip-install-c25yoka6/theta-alkasm_fb490879532a46778a6bce77390048c9\n  ssh: connect to host github.com port 22: Undefined error: 0\n  fatal: Could not read from remote repository.\n\n  Please make sure you have the correct access rights\n  and the repository exists.\n  error: subprocess-exited-with-error\n\n  × git clone --filter=blob:none --quiet 'ssh://****@github.com/alkasm/theta' /private/var/folders/f0/_dkywzrd7f3bd4hdj2bmfv4m0000gp/T/pip-install-c25yoka6/theta-alkasm_fb490879532a46778a6bce77390048c9 did not run successfully.\n  │ exit code: 128\n  ╰─\u003e See above for output.\n\n  note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: subprocess-exited-with-error\n\n× git clone --filter=blob:none --quiet 'ssh://****@github.com/alkasm/theta' /private/var/folders/f0/_dkywzrd7f3bd4hdj2bmfv4m0000gp/T/pip-install-c25yoka6/theta-alkasm_fb490879532a46778a6bce77390048c9 did not run successfully.\n│ exit code: 128\n╰─\u003e See above for output.\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\n```\n3. If you instead opt for the legacy resolver via `pip install . --use-deprecated legacy-resolver` it will succeed (assuming the dependency has been installed previously):\n```\nProcessing /Users/alkasm/prog/test-vcs-url\n  Preparing metadata (setup.py) ... done\nRequirement already satisfied: theta-alkasm@ git+ssh://git@github.com/alkasm/theta from git+ssh://****@github.com/alkasm/theta in ./venv/lib/python3.8/site-packages (from test-pkg==0.0.0) (1.2.0)\nUsing legacy 'setup.py install' for test-pkg, since package 'wheel' is not installed.\nInstalling collected packages: test-pkg\n  Attempting uninstall: test-pkg\n    Found existing installation: test-pkg 0.0.0\n    Uninstalling test-pkg-0.0.0:\n      Successfully uninstalled test-pkg-0.0.0\n  Running setup.py install for test-pkg ... done\nSuccessfully installed test-pkg-0.0.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falkasm%2Fvcs-url-install-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falkasm%2Fvcs-url-install-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falkasm%2Fvcs-url-install-example/lists"}