-
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
Unable to run poetry under Python 2.7 (missing importlib_metadata) #1666
Comments
To be clear: I have a resolution - after some time I was able to see that I needed to have tox also install |
Hello @schinckel, this (or something similar?) was reported before in #1487 and should be fixed by #1586 So please try it out with the latest preview release. I will close this issue for now. But please leave a comment, if you still have any problems. I can reopen it any time. fin swimmer |
I’ll check it at work in a couple of hours, but I thought it was different because that was to do with 3.8: the change in that PR shouldn’t have any different behaviour on 2.7
|
I think maybe something else (prior to this change) fixed the issue: it appears to be working (but I've come across other issues related to running poetry from within tox that I am partway through documenting). I've started a clean run without the extra requirement in my tox.ini on my CI server: I should know shortly if it has worked. |
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. |
-vvv
option).Issue
I am in the process of transitioning to Python 3. As such, I am moving from Pipenv to Poetry.
I have poetry installed using
pipx
, which is being used to run things likepoetry lock
, and that all works great.However, in my tox environment, I use
poetry
as a "dep", and thepoetry install
before running my tests.In Python 2.7, this throws an exception:
When I run it using
-vv
, I can see that the problem is not to do with installing the dependencies as such, but actually when poetry tries to parse the lock file:It seems that poetry does not install
importlib_metadata
when being installed under Python 2.7: adding it as a secondary dependency to my tox environment fixes this.The text was updated successfully, but these errors were encountered: