Both cli.__pyhelpers.install_nodejs and cli.__pyhelpers.is_nodejs_valid depend on imported stuff from lib. Naturally, I expect Poetry to install dependencies and then successfully trigger postinstall hook. However I get this:
poetry install --no-root --with=core
...
ModuleNotFoundError: No module named 'lib'
Error: Switch task 'install_node' aborted after failed control task
Cancelling command due to failed hook task
Looks like poe the poet tries to load cli.__pyhelpers.is_nodejs_valid immediately and not after Poetry package installation.
So here's my problem:
Part of pyproject.toml:
Both
cli.__pyhelpers.install_nodejs
andcli.__pyhelpers.is_nodejs_valid
depend on imported stuff fromlib
. Naturally, I expect Poetry to install dependencies and then successfully trigger postinstall hook. However I get this:Looks like poe the poet tries to load
cli.__pyhelpers.is_nodejs_valid
immediately and not after Poetry package installation.