Skip to content

tool.poetry.dependencies -> from github fails with runtimeError #673

@MisterBianco

Description

@MisterBianco
  • 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).

  • Kali linux: Linux kali 4.18.0-kali2-amd64 Add support for private indices #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64 GNU/Linux

  • Poetry version: 12.10

[tool.poetry.dependencies]
python = "^3.7"
toml = "^0.9"
scapy = {git="https://github.com/secdev/scapy.git", branch = "master" }

Issue

After a really long hang at:

Virtualenv boop-py3.7 already exists.
Using virtualenv: /root/.cache/pypoetry/virtualenvs/boop-py3.7
Updating dependencies
Resolving dependencies...
   1: fact: boop is 3.0.2
   1: derived: boop
   1: fact: boop depends on toml (^0.9)
   1: fact: boop depends on scapy (*)
   1: fact: boop depends on pyric (^0.1.6)
   1: fact: boop depends on netaddr (^0.7)
   1: fact: boop depends on click (^7)
   1: selecting boop (3.0.2)
   1: derived: click (^7)
   1: derived: netaddr (^0.7)
   1: derived: pyric (^0.1.6)
   1: derived: scapy (*)
   1: derived: toml (^0.9)
PyPI: 1 packages found for click >=7,<8
   1: selecting click (7.0)
PyPI: No release information found for netaddr-0.7.4, skipping
PyPI: No release information found for netaddr-0.7.5, skipping
PyPI: No release information found for netaddr-0.7.6, skipping
PyPI: No release information found for netaddr-0.7.7, skipping
PyPI: No release information found for netaddr-0.7.8, skipping
PyPI: No release information found for netaddr-0.7.9, skipping
PyPI: 14 packages found for netaddr >=0.7,<0.8
   1: selecting netaddr (0.7.19)
PyPI: 4 packages found for pyric >=0.1.6,<0.2.0
   1: selecting pyric (0.1.6.3)

It eventually results in:

[RuntimeError]                                                 
Unable to retrieve the package version for /tmp/pypoetry-git-scapyilf8yynn  
                                                                              
Exception trace:
 /usr/local/lib/python3.7/dist-packages/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /usr/local/lib/python3.7/dist-packages/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /usr/local/lib/python3.7/dist-packages/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /usr/local/lib/python3.7/dist-packages/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /usr/local/lib/python3.7/dist-packages/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /usr/local/lib/python3.7/dist-packages/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /usr/local/lib/python3.7/dist-packages/poetry/console/commands/update.py in handle() at line 41
   return installer.run()
 /usr/local/lib/python3.7/dist-packages/poetry/installation/installer.py in run() at line 76
   self._do_install(local_repo)
 /usr/local/lib/python3.7/dist-packages/poetry/installation/installer.py in _do_install() at line 158
   ops = solver.solve(use_latest=self._whitelist)
 /usr/local/lib/python3.7/dist-packages/poetry/puzzle/solver.py in solve() at line 38
   packages, depths = self._solve(use_latest=use_latest)
 /usr/local/lib/python3.7/dist-packages/poetry/puzzle/solver.py in _solve() at line 171
   self._package, self._provider, locked=locked, use_latest=use_latest
 /usr/local/lib/python3.7/dist-packages/poetry/mixology/__init__.py in resolve_version() at line 7
   return solver.solve()
 /usr/local/lib/python3.7/dist-packages/poetry/mixology/version_solver.py in solve() at line 79
   next = self._choose_package_version()
 /usr/local/lib/python3.7/dist-packages/poetry/mixology/version_solver.py in _choose_package_version() at line 354
   packages = self._provider.search_for(dependency)
 /usr/local/lib/python3.7/dist-packages/poetry/puzzle/provider.py in search_for() at line 134
   packages = self.search_for_vcs(dependency)
 /usr/local/lib/python3.7/dist-packages/poetry/puzzle/provider.py in search_for_vcs() at line 191
   package = self.search_for_directory(directory_dependency)[0]
 /usr/local/lib/python3.7/dist-packages/poetry/puzzle/provider.py in search_for_directory() at line 292
   dependency.path

update [--no-dev] [--dry-run] [--lock] [--] [<packages>]...

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