Skip to content

poetry install reports ModuleNotFoundError: No module named 'distutils.cmd' #6651

Answered by neersighted
hogru asked this question in General
Discussion options

You must be logged in to vote

This is getting into the realm of local system configuration (and while I did not think this was a Poetry bug before, I am 99% certain it's a local issue now) -- you should be able to find out if it's a package with dpkg -S /usr/bin/python3.9. Ubuntu 22.04 does not package Python 3.9 (and an upgrade from an older version should have replaced it with 3.10). You have some Python 3.9 installed from somewhere, presumably based on Debian packaging as it ships with a broken distutils.

I'm converting this to a discussion as it's pretty clearly a support issue now -- but honestly, I you'll have to do most of the work to figure out what is going on as it's rather difficult for others to try and in…

Replies: 14 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hogru
Comment options

You must be logged in to vote
1 reply
@neersighted
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@VaggelisSpi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@neersighted
Comment options

@mohanrajreese
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
5 participants
Converted from issue

This discussion was converted from issue #6649 on September 28, 2022 15:30.