Replies: 1 comment 2 replies
-
To resolve the "No module named 'psycopg2'" error, you need to ensure that the
The RUN $POETRY_HOME/bin/poetry lock --no-update \
&& $POETRY_HOME/bin/poetry install --without dev --sync -E deploy -E couchbase -E cassio \
&& $POETRY_HOME/bin/poetry build -f wheel \
&& $POETRY_HOME/bin/poetry run pip install dist/*.whl This should resolve the "No module named 'psycopg2'" error [1][2]. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i build the docker image with the docker/build_and_push.Dockerfile, but it return error when i run the docker_example/docker-compose.yml , No module named 'psycopg2'
![image](https://private-user-images.githubusercontent.com/154207015/359063902-9b039c54-bd4d-4784-91a2-73dc0ca2c803.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MzA1NzMsIm5iZiI6MTczOTczMDI3MywicGF0aCI6Ii8xNTQyMDcwMTUvMzU5MDYzOTAyLTliMDM5YzU0LWJkNGQtNDc4NC05MWEyLTczZGMwY2EyYzgwMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQxODI0MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZmNjYjE5Mzg1OTMxYzk1YmU5MjcyMTQ5N2I1ZjMyOWEyZDYxY2QxZDM1YjExNjRhZWMyMjVmNTE4MzRlNTFiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._EfQPQWQ87OO6EuL3qD0tSKocpEL-ebY-KCLPJ6wmuo)
how can i solve it ???
Beta Was this translation helpful? Give feedback.
All reactions