-
Notifications
You must be signed in to change notification settings - Fork 2.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 fails for some package with error on IsolatedEnv instanciation #8458
Comments
Duplicate #8434, please close |
To provide some more context because the comment on #8434 doesn't really explain much: Poetry 1.6(.1) specifies a dependency on Also worthy of note is that Poetry bumped its |
poetry's requirements do not allow build 1.0: if your poetry environment includes build 1.0 then the installation is certainly incorrect. |
@BVollmerhaus your assumption is right, however, the Poetry team does not support any means of installation that are not mentioned in our docs. Any distro- or system-specific installation errors should be directed to external packagers that provide those packages. |
I did not say otherwise; of course, this should be directed to the respective packaging team. |
@BVollmerhaus Thank you for clarifying the deeper background! This helped me to find a solution for Arch, so in case someone is looking for a workaround while waiting for the next Poetry release, here you go: There is a little cli tool called "downgrade" that you can find in the official Arch repos. |
Has anyone figured out a workaround for Homebrew? Sadly, the official installer is broken on macOS too: python-poetry/install.python-poetry.org#24 |
I am having a similar issue on poetry homebrew Mac with M2 |
It would appear that homebrew poetry users are in rough position. (I don't know if it's possible, but I could not find a way to downgrade
@danibachini figured out how to get the poetry installer to work on mac:
Once I did that, the native poetry installer worked. |
I found a way to rollback
Both
|
@btalberg thanks for the workaround! Worked great for me I am back to |
Homebrew's packaging of poetry is not maintained from this repository, and not listed in the poetry docs as a way to install poetry. (Presumably because of exactly this sort of thing). If you insist on using it anyway: please raise bugs against https://github.com/Homebrew/homebrew-core/blob/master/Formula/p/poetry.rb |
I brew uninstalled poetry and re-installed poetry using |
Lately, Homebrew maintainers decided to rely more and more on their own versions of installed python packages. While this is efficient way of saving space, it might introduce bugs because Homebrew CI is not testing every use cases of Poetry (and others python tools). This current issue is the result of this policy. It has been introduced by the following commit: Homebrew/homebrew-core@58a04d1 If someone wants to fill in an issue and a PR on Homebrew side to explain the situation, feel free. I did my best when Poetry 1.2.0 was released, without success. Meanwhile, I switched to Disclaimer: Homebrew is still a great tool for managing my binary tools, libraries and services. |
you can temporary use build==0.10 I had same problem with 1.6.1 on python 3.10, and fixed it with --no-deps installation: pip install --no-deps poetry==1.6.1 cleo rapidfuzz tomli crashtest poetry.core |
This works for me!!! |
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. |
Poetry version: Poetry (version 1.6.1)
Python version: Python: 3.11.5
OS version and name: Arch Linux
pyproject.toml: https://gist.github.com/nanoy42/20a7742335290a2f60341a7dff9cdb7f (almost default)
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
I am experiencing the following issue when trying to install some packages: it fails with the error Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable
Full stack trace:
It also has happened with other git based dependencies I cannot share (that are personal projects) but also with matplotlib (version 3.5.3).
I was using poetry for some time now, in particular for a big project I am working on and it was working very fine until recently (and to be honest I am not sure what action on my part made it switch to the non working state that I have now, potentially an update of my packages).
I don't have any intuition on this (and it might just be a problem on my side) so any help would appreciated on this issue. In any case if it's a configuration problem, I think we could try to improve the error message.
The text was updated successfully, but these errors were encountered: