You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
poetry install with build script fails on 1.2.0 #4979
@finswimmer I've updated my original post the better reflect the problem. What I've identified is related to your linked issue, but different in that it demonstrates a 1.1.x -> 1.2.x regression. Any project that uses a build script this way will be adversely impacted by upgrading to 1.2.x
I think this issue should be re-opened and placed in the 1.2 milestone.
Reopening this as the issue exists when a setup.py file was generated forcefully. Do note that build scripts are still an experimental feature and breakages can occur.
#5590 should fix the reported issue. Additionally, #5401 should improve the experience when generate-setup-file = false.
I'm still having this issue with my docker build. I get the following error "Version 1.2.0 is not supported by this installer!". However I'm using the poetry 1.20 in my local env and it works just fine. Anyone knows how I can fix this. I'm using the following
RUN /bin/bash -ci "curl -sSLk https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python"
This issue tracks setup.py + build script support. The issue you are having is use of an unsupported, deprecated installer (#6377 for more details) -- you need to migrate to install.python-poetry.org as described in the documentation or release announcement.
Thanks for the quick response @neersighted I was able to install poetry. However, I'm running into issues with the path and unable to find poetry in my Docker file. Below is what I'm running. Apologies if I'm posting this on the wrong thread
RUN /bin/bash -ci "curl -sSL https://install.python-poetry.org | python -"
RUN echo "source $HOME/.local/bin" >> /root/.bashrc
RUN /bin/bash -ci "poetry config virtualenvs.create false"
RUN /bin/bash -ci "poetry --version"
Please do not turn off virtualenv creation -- you are likely to run into way more problems for no benefit. The ability to turn off virtualenv creation was intended as a "I know what I am doing" feature for very advanced users -- if you don't know why you need it off, you do not need it off -- see #6398 for a roundup issue on this topic.
Finally, please don't use this solved issue for support -- you are sending notifications to everyone who has participated in it for something that is off-topic. Please start a Discussion on the discussion tab, or join the Discord server if you need support from the community.
Activity
matteosantama commentedon Jan 4, 2022
It's worth mentioning that I am running these commands in a virtual environment not managed by
poetryfinswimmer commentedon Jan 4, 2022
Hello @matteosantama,
this is a duplicate of #2789.
fin swimmer
matteosantama commentedon Jan 4, 2022
@finswimmer I've updated my original post the better reflect the problem. What I've identified is related to your linked issue, but different in that it demonstrates a 1.1.x -> 1.2.x regression. Any project that uses a build script this way will be adversely impacted by upgrading to 1.2.x
I think this issue should be re-opened and placed in the 1.2 milestone.
hdk5 commentedon Jan 28, 2022
I second this issue.
It should be noted that this issue does not happen with
buildcommand, and is caused by--use-pep517flag usage forpip installabn commentedon May 10, 2022
@matteosantama can you provide a bit more detail on the error?EDIT: Nevermind was able to reproduce it with your provided configuration.
The root cause here is the change in build configuration. You should configure your build script as follows.
Additionally, if you want to generate a
setup.pyfile for the build you are also missingsetuptoolsin yourbuild-system.requirees.abn commentedon May 11, 2022
Reopening this as the issue exists when a
setup.pyfile was generated forcefully. Do note that build scripts are still an experimental feature and breakages can occur.#5590 should fix the reported issue. Additionally, #5401 should improve the experience when
generate-setup-file = false.nischalat commentedon Sep 8, 2022
I'm still having this issue with my docker build. I get the following error "Version 1.2.0 is not supported by this installer!". However I'm using the poetry 1.20 in my local env and it works just fine. Anyone knows how I can fix this. I'm using the following
RUN /bin/bash -ci "curl -sSLk https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python"
neersighted commentedon Sep 8, 2022
This issue tracks
setup.py+ build script support. The issue you are having is use of an unsupported, deprecated installer (#6377 for more details) -- you need to migrate to install.python-poetry.org as described in the documentation or release announcement.nischalat commentedon Sep 9, 2022
Thanks for the quick response @neersighted I was able to install poetry. However, I'm running into issues with the path and unable to find poetry in my Docker file. Below is what I'm running. Apologies if I'm posting this on the wrong thread
RUN /bin/bash -ci "curl -sSL https://install.python-poetry.org | python -"
RUN echo "source $HOME/.local/bin" >> /root/.bashrc
RUN /bin/bash -ci "poetry config virtualenvs.create false"
RUN /bin/bash -ci "poetry --version"
neersighted commentedon Sep 9, 2022
You should set environmental variables in a Dockerfile using the
ENVdirective.Please do not turn off virtualenv creation -- you are likely to run into way more problems for no benefit. The ability to turn off virtualenv creation was intended as a "I know what I am doing" feature for very advanced users -- if you don't know why you need it off, you do not need it off -- see #6398 for a roundup issue on this topic.
Finally, please don't use this solved issue for support -- you are sending notifications to everyone who has participated in it for something that is off-topic. Please start a Discussion on the discussion tab, or join the Discord server if you need support from the community.
github-actions commentedon Mar 1, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.