You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package explicitly depends on the poetry-core package which uses some trickery to be importable under the poetry.core namespace. This means that the principle import of import poetry works without the poetry package being installed.
This impacts us because we detect weather Poetry is installed based on whether poetry is importable. However, if poetry is not installed but poetry-core is then import poetry works but import poetry.config (or any other module other than poetry.core) fails with a ModuleNotFoundError. A patch can be made to avoid this problem by adding ModuleNotFoundError to the try/except in tox_poetry_installer._poetry, however this may be worth rethinking as part of #2
The text was updated successfully, but these errors were encountered:
The package explicitly depends on the
poetry-core
package which uses some trickery to be importable under thepoetry.core
namespace. This means that the principle import ofimport poetry
works without thepoetry
package being installed.This impacts us because we detect weather Poetry is installed based on whether
poetry
is importable. However, ifpoetry
is not installed butpoetry-core
is thenimport poetry
works butimport poetry.config
(or any other module other thanpoetry.core
) fails with aModuleNotFoundError
. A patch can be made to avoid this problem by addingModuleNotFoundError
to the try/except intox_poetry_installer._poetry
, however this may be worth rethinking as part of #2The text was updated successfully, but these errors were encountered: