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
I know Node.js doesn't officially support Windows Subsystem for Linux, but I've been quite happily using this to develop on Windows for a while now.
Some recent change in the last week or two on master seems to be causing a build issue though as I now get the following output when running ./configure -
Traceback (most recent call last):
File "./configure", line 20, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
I have tried running git clean -fdx.
Any suggestions as to how to fix this would be a huge help to get going again here.
I know Node.js doesn't officially support Windows Subsystem for Linux, but I've been quite happily using this to develop on Windows for a while now.
Some recent change in the last week or two on master seems to be causing a build issue though as I now get the following output when running ./configure -
Traceback (most recent call last):
File "./configure", line 20, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
I have tried running git clean -fdx.
Any suggestions as to how to fix this would be a huge help to get going again here.
The recent change is most likely #30091 which now prefers Python 3 for configure. pypa/pipenv#2922 (comment) suggests a bug in Ubuntu's version of Python.
A workaround would be to specify the version of Python used to run configure: python2 configure.py or python2.7 configure.py
Reacted by Jiawen Geng, Nonomi. and Osher El-Netanany
Reacted by Krzysztof Maicher, kensleDev, Pavel Mironchik, echo r"0xX4H" | rev, Juan Luis Ortiz Petrone, Robert Perez, Mark Eaton, Luis Arturo García Gonzalez, Smitty, yitian108 and 79 more
Reacted by torian257x, Bensuperpc and Emirhan Bilgiç
Reacted by Sylvain Martens, Jules, Daniel Buitrago, Vítor Mariano, jbuckland-veridas, Arjunan M R, Sebastian, Heorhii Postolakii, ALIANE Abdelouahab, Abhishek V and 4 more
Reacted by jbuckland-veridas, Osher El-Netanany, Adarsh Saraogi, Sebastian, Heorhii Postolakii, ALIANE Abdelouahab, Deeptendu Santra, Baptiste Domange, Joshua Joseph Myers, forTWOS and 3 more
Reacted by Guy Bedford, Kenya Sullivan, David Rhoderick, Han, kensleDev, Andy Jordan, echo r"0xX4H" | rev, Robert Perez, Sylvain Martens, Jules and 11 more
I can confirm sudo apt install python3-distutils -y fixed the issue here. Thanks so much for the quick responses. Shall I keep this open to track the documentation change?
Reacted by khalid-kherrazi, Fernando Lordão, Samarth Jain, Matthieu Brossard, Dave Monk and Precious Kayili
Activity
richardlau commentedon Oct 31, 2019
The recent change is most likely #30091 which now prefers Python 3 for
configure. pypa/pipenv#2922 (comment) suggests a bug in Ubuntu's version of Python.A workaround would be to specify the version of Python used to run
configure:python2 configure.pyorpython2.7 configure.pygengjiawen commentedon Oct 31, 2019
Another workaround
sam-github commentedon Oct 31, 2019
@gengjiawen If
python3-distutilsis a required dep of our built for py3, it'd be really helpful if you could PR that to BUILDING.md, if you have time.guybedford commentedon Oct 31, 2019
I can confirm
sudo apt install python3-distutils -yfixed the issue here. Thanks so much for the quick responses. Shall I keep this open to track the documentation change?gengjiawen commentedon Nov 1, 2019
@guybedford @sam-github I will try to add this to documentation, leave this open for now :)
cclauss commentedon Nov 2, 2019
The other solution seems to be
python3 -m pip install setuptools.[-]Build issue on WSL[/-][+]Build: No module named 'distutils.spawn'[/+]build: add workaround for WSL
build: add workaround for WSL
build: add workaround for WSL
build: add workaround for WSL
build: add workaround for WSL
doc: mention python3-distutils dependency in BUILDING.md
doc: mention python3-distutils dependency in BUILDING.md
doc: mention python3-distutils dependency in BUILDING.md
saladgg commentedon Nov 26, 2020
Linux users
If;
sudo apt install python3-distutils -y;
didn't work for you, ensure you have installed venv globally that corresponds to your python version i.e
your_com:
$sudo apt install python3.9-venv/Desktop/your_prj$virtualenv venv --python=python3.9your_comp:
cclauss commentedon Nov 26, 2020
distutilsis being phased out as explained at https://docs.python.org/3/installingPython 3.3 and later has a builtin
venvmodule https://docs.python.org/3/library/venv.html sovirtualenvis not required and you can:build: remove dependency on `distutils.spawn`
build: remove dependency on `distutils.spawn`
build: remove dependency on `distutils.spawn`
build: remove dependency on `distutils.spawn`
build: remove dependency on `distutils.spawn`
build: remove dependency on `distutils.spawn`