Skip to content

Editable installs sometimes cannot be imported (poetry 1.1.0) #3086

@ponas

Description

@ponas

Issue

This issue first appears with Poetry 1.1.0. I cannot reproduce this issue on 1.0.9.

When Poetry installs the two packages from git, no exceptions occur, but sometimes one of them cannot be imported in the resulting environment:

$ poetry install
[snip]
  • Installing cerebrum-client (1.9.2 95a1839)
  • Installing tofh (2.0.6 8f9dac0)
$ poetry run python -c 'import tofh'
$ poetry run python -c 'import cerebrum_client'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'cerebrum_client'

I was unable to reproduce this by installing packages such as Django, requests and flask via git, making me think this may be related to something in our setup.pys. Might not be a bug in poetry, but this behavior is new :-)

Workaround

Current workaround is to disable the new installer in favour of the old one. (#3086 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions