Skip to content
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

backend.dockerfile # Install Poetry source not found #495

Closed
wi-wi opened this issue Jan 23, 2023 · 8 comments
Closed

backend.dockerfile # Install Poetry source not found #495

wi-wi opened this issue Jan 23, 2023 · 8 comments
Labels

Comments

@wi-wi
Copy link

wi-wi commented Jan 23, 2023

in backend.dockerfile # Install Poetry does not execute because
https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
not found 404

@Pr0curo
Copy link

Pr0curo commented Jan 23, 2023

as a workaround you can use the current installation script found under https://install.python-poetry.org/ as a replacement of the 'old' script (replace in Line 6 in backend.dockerfile and celeryworker.dockerfile).

After replacing it the backend was fine

(also see here #485)

@pankajarm
Copy link

Thank you @Pr0curo , i was having same issue, the workaround of updating backend.dockerfile and celeryworker.dockerfile with below works:
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python &&
cd /usr/local/bin &&
ln -s /opt/poetry/bin/poetry &&
poetry config virtualenvs.create false

@MhdHabboub
Copy link

MhdHabboub commented Feb 26, 2023

thanks all, however, I'm getting this error when trying @pankajarm solution

  => [3/7] RUN curl -sSL https://install.python-poetry.org/ | POETRY_HOME=/opt/poetry python &&     cd /usr/local/bin &&     ln -s /opt/poetry/bin/poetry &&     poetry config virtualenvs.create false                     26.4s 
failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1

@randy-wong
Copy link

thanks all, however, I'm getting this error when trying @pankajarm solution

  => [3/7] RUN curl -sSL https://install.python-poetry.org/ | POETRY_HOME=/opt/poetry python &&     cd /usr/local/bin &&     ln -s /opt/poetry/bin/poetry &&     poetry config virtualenvs.create false                     26.4s 
failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1

Try:

RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python3

@tsaroff
Copy link

tsaroff commented Mar 10, 2023

in backend.dockerfile # Install Poetry does not execute because https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py not found 404

You need to change the link to (get-poetry.py -> install-poetry.py ):

# Install Poetry
RUN curl -sSL https://raw.githubusercontent.com/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

@willingc
Copy link

See PRs #524 and #529 for the corrected files if you want to take a look.

@tiangolo
Copy link
Owner

Thanks! This was solved in #480 🎉

And thanks @willingc! 🌯

Copy link

github-actions bot commented Feb 2, 2024

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

@github-actions github-actions bot closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants