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

No longer works in Ubuntu 20.04 #6332

Closed
3 tasks done
jonathan-boudreau-work opened this issue Sep 1, 2022 · 2 comments
Closed
3 tasks done

No longer works in Ubuntu 20.04 #6332

jonathan-boudreau-work opened this issue Sep 1, 2022 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@jonathan-boudreau-work
Copy link

  • 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

Steps to reproduce

  • using container image cimg/base:stable, install poetry.
  • run poetry config virtualenvs.create false
  • run poetry install on the project

Expected behaviour

The command runs to completion.

Actual behaviour

The command returns with an error:

Skipping virtualenv creation, as specified in config file.

  Stack trace:

  17  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:329 in run
        exit_code = self._run(io)

  16  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/console/application.py:185 in _run
        exit_code: int = super()._run(io)

  15  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:423 in _run
        exit_code = self._run_command(command, io)

  14  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:465 in _run_command
        raise error

  13  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:446 in _run_command
        self._event_dispatcher.dispatch(event, COMMAND)

  12  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/events/event_dispatcher.py:23 in dispatch
        self._do_dispatch(listeners, event_name, event)

  11  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/events/event_dispatcher.py:84 in _do_dispatch
        listener(event, event_name, self)

  10  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/console/application.py:316 in configure_installer_for_event
        cls.configure_installer_for_command(command, event.io)

   9  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/console/application.py:323 in configure_installer_for_command
        installer = Installer(

   8  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/installation/installer.py:75 in __init__
        installed = self._get_installed()

   7  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/installation/installer.py:559 in _get_installed
        return InstalledRepository.load(self._env)

   6  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/repositories/installed_repository.py:291 in load
        package = cls.create_package_from_distribution(distribution, env)

   5  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/repositories/installed_repository.py:166 in create_package_from_distribution
        package = Package(

   4  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/core/packages/package.py:81 in __init__
        self._set_version(version, pretty_version)

   3  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/core/packages/package.py:219 in _set_version
        self._version = Version.parse(version)

   2  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/core/version/pep440/version.py:182 in parse
        return parse_pep440(value, cls)

   1  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/core/version/pep440/parser.py:83 in parse_pep440
        return PEP440Parser.parse(value, version_class)

  InvalidVersion

  Invalid PEP 440 version: '0.23ubuntu1'

  at ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/core/version/pep440/parser.py:69 in parse
       65│     @classmethod
       66│     def parse(cls, value: str, version_class: type[T]) -> T:
       67│         match = cls._regex.search(value) if value else None
       68│         if not match:
    →  69│             raise InvalidVersion(f"Invalid PEP 440 version: '{value}'")
       70│
       71│         return version_class(
       72│             epoch=int(match.group("epoch")) if match.group("epoch") else 0,
       73│             release=cls._get_release(match),
@jonathan-boudreau-work jonathan-boudreau-work added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 1, 2022
@dimbleby
Copy link
Contributor

dimbleby commented Sep 1, 2022

duplicate #6013

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2022
@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Sep 18, 2022
Copy link

github-actions bot commented Mar 1, 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 1, 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

5 participants