Skip to content

ModuleNotFoundError when specifying relative dependency #5271

Answered by abn
ianliu asked this question in Q&A
Discussion options

You must be logged in to vote

@ianliu what version of poetry are you using? I am unable to reproduce this in a clean environment. Maybe try using poetry config virtualenvs.in-project true to rule out environment reuse.

podman run --rm -i --entrypoint bash docker.io/python:3.10 <<EOF
set -xe
python -m pip --disable-pip-version-check install -q poetry
cd /tmp
poetry new foo
poetry new bar
pushd foo
poetry add ../bar
EOF
+ python -m pip --disable-pip-version-check install -q poetry
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ poetry new foo
Crea…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ianliu
Comment options

@abn
Comment options

abn Mar 4, 2022
Maintainer

@ianliu
Comment options

Answer selected by ianliu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants