Skip to content

Can't name my project 'integration' #7261

@vholmer

Description

@vholmer
  • Poetry version: 1.3.1
  • Python version: 3.8.9
  • OS version and name: Ubuntu 20.04 (on WSL)
  • pyproject.toml:
[tool.poetry]
name = "integration"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]


[tool.poetry.dependencies]
python = "3.8.9"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

It seems like I can't name my project integration, poetry just crashes when running poetry install. If i change the name to anything else, it works.

Here's the output:

Stack trace:

  10  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:327 in run
       325│
       326│             try:
     → 327│                 exit_code = self._run(io)
       328│             except BrokenPipeError:
       329│                 # If we are piped to another process, it may close early and send a

   9  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/console/application.py:190 in _run
       188│         self._load_plugins(io)
       189│
     → 190│         exit_code: int = super()._run(io)
       191│         return exit_code
       192│

   8  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:431 in _run
       429│             io.input.interactive(interactive)
       430│
     → 431│         exit_code = self._run_command(command, io)
       432│         self._running_command = None
       433│

   7  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:473 in _run_command
       471│
       472│         if error is not None:
     → 473│             raise error
       474│
       475│         return terminate_event.exit_code

   6  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/application.py:457 in _run_command
       455│
       456│             if command_event.command_should_run():
     → 457│                 exit_code = command.run(io)
       458│             else:
       459│                 exit_code = ConsoleCommandEvent.RETURN_CODE_DISABLED

   5  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/commands/base_command.py:119 in run
       117│         io.input.validate()
       118│
     → 119│         status_code = self.execute(io)
       120│
       121│         if status_code is None:

   4  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/cleo/commands/command.py:62 in execute
        60│
        61│         try:
     →  62│             return self.handle()
        63│         except KeyboardInterrupt:
        64│             return 1

   3  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/console/commands/install.py:174 in handle
       172│             return 0
       173│
     → 174│         builder.build()
       175│
       176│         if overwrite:

   2  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/masonry/builders/editable.py:80 in build
        78│         added_files += self._add_pth()
        79│         added_files += self._add_scripts()
     →  80│         self._add_dist_info(added_files)
        81│
        82│         path = self._path

   1  ~/.local/share/pypoetry/venv/lib/python3.8/site-packages/poetry/masonry/builders/editable.py:252 in _add_dist_info
       250│                 {
       251│                     "dir_info": {"editable": True},
     → 252│                     "url": self._poetry.file.path.parent.as_uri(),
       253│                 }
       254│             )

  ValueError

  relative path can't be expressed as a file URI

  at ~/.pyenv/versions/3.8.9/lib/python3.8/pathlib.py:747 in as_uri
       743│
       744│     def as_uri(self):
       745│         """Return the path as a 'file' URI."""
       746│         if not self.is_absolute():
    →  747│             raise ValueError("relative path can't be expressed as a file URI")
       748│         return self._flavour.make_uri(self)
       749│
       750│     @property
       751│     def _cparts(self):

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