Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview poetry not respecting private repositories anymore #2834

Closed
3 tasks done
GvandeSteeg opened this issue Aug 19, 2020 · 3 comments
Closed
3 tasks done

Preview poetry not respecting private repositories anymore #2834

GvandeSteeg opened this issue Aug 19, 2020 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@GvandeSteeg
Copy link

GvandeSteeg commented Aug 19, 2020

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

Issue

This same pyproject.toml and following command work as expected on 1.0.10, but I needed to update to preview as of #2711, because I have python 3.8 and I need python3.6 for this project.
It's suddenly not respecting my private repo anymore

poetry add basespace==2.0.0 -vvv
Using virtualenv: /Users/gvandestee/Library/Caches/pypoetry/virtualenvs/manifest-ui-K3Huwxuy-py3.6
PyPI: No packages found for basespace 2.0.0
ils: 0 packages found for basespace 2.0.0

  Stack trace:

  6  ~/Library/Python/3.8/lib/python/site-packages/clikit/console_application.py:131 in run
      129│             parsed_args = resolved_command.args
      130│
    → 131│             status_code = command.handle(parsed_args, io)
      132│         except KeyboardInterrupt:
      133│             status_code = 1

  5  ~/Library/Python/3.8/lib/python/site-packages/clikit/api/command/command.py:120 in handle
      118│     def handle(self, args, io):  # type: (Args, IO) -> int
      119│         try:
    → 120│             status_code = self._do_handle(args, io)
      121│         except KeyboardInterrupt:
      122│             if io.is_debug():

  4  ~/Library/Python/3.8/lib/python/site-packages/clikit/api/command/command.py:171 in _do_handle
      169│         handler_method = self._config.handler_method
      170│
    → 171│         return getattr(handler, handler_method)(args, io, self)
      172│
      173│     def __repr__(self):  # type: () -> str

  3  ~/Library/Python/3.8/lib/python/site-packages/cleo/commands/command.py:92 in wrap_handle
       90│         self._command = command
       91│
    →  92│         return self.handle()
       93│
       94│     def handle(self):  # type: () -> Optional[int]

  2  ~/Library/Python/3.8/lib/python/site-packages/poetry/console/commands/add.py:101 in handle
       99│                     raise ValueError("Package {} is already present".format(name))
      100│
    → 101│         requirements = self._determine_requirements(
      102│             packages,
      103│             allow_prereleases=self.option("allow-prereleases"),

  1  ~/Library/Python/3.8/lib/python/site-packages/poetry/console/commands/init.py:318 in _determine_requirements
      316│                 # check that the specified version/constraint exists
      317│                 # before we proceed
    → 318│                 name, _ = self._find_best_version_for_package(
      319│                     requirement["name"],
      320│                     requirement["version"],

  ValueError

  Could not find a matching version of package basespace

  at ~/Library/Python/3.8/lib/python/site-packages/poetry/console/commands/init.py:343 in _find_best_version_for_package
      339│         )
      340│
      341│         if not package:
      342│             # TODO: find similar
    → 343│             raise ValueError(
      344│                 "Could not find a matching version of package {}".format(name)
      345│             )
      346│
      347│         return package.pretty_name, selector.find_recommended_require_version(package)
@GvandeSteeg GvandeSteeg added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 19, 2020
@alexkyllo
Copy link

Could this be the same issue as #2576 ?

@GvandeSteeg
Copy link
Author

Good call, that sounds very possible

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

4 participants