`ModuleNotFoundError: No module named 'distutils.msvccompiler'` in package build CI
See original GitHub issue🐛 Bug
Several different packages have failed with ModuleNotFoundError: No module named 'distutils.msvccompiler'
. See for instance:
https://app.circleci.com/pipelines/github/hoodmane/pyodide/3667/workflows/dd548c6b-f1c8-40d3-88f5-e71573bf4934/jobs/43716
@ryanking13 any ideas? Maybe we need to pin something?
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:11 (4 by maintainers)
Top Results From Across the Web
python - ModuleNotFoundError: No module named 'distutils.util'
The module not found likely means the packages aren't installed. sudo apt-get install python3-distutils sudo apt-get install python3-apt.
Read more >Unable to install python script due to "numpy.distutils ...
I've seen an answer (statsmodels installation: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils) where ...
Read more >Fresh install error: No module named 'distutils.msvccompiler'
I am a complete newbie in pymc, and after listening to @AlexAndorra non-stop in his podcast about the marvelous of such a package,...
Read more >History - setuptools 65.6.3.post20221216 documentation
#3624: Fixed editable install for multi-module/no-package src -layout projects. ... builds on Python 3.9 not installed by homebrew (pypa/distutils#158).
Read more >no module named distutils.util" creating new project : PY-49687
"ModuleNotFoundError: no module named distutils.util" creating new project ... Dear Pycharm team,. After downloading the latest version of Pycharm Profesional ( ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We can do that yes. We use pypabuild with build isolation. I think we may need to add some extra logic that inserts a version upper bound if it’s consistent. Something like in pseudo code:
I think we need to pin the setuptools version. Setuptools embeds distutils in its source code and it seems like they removed some of msvc modules recently:
https://github.com/pypa/setuptools/pull/3505