-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
distutils is removed in Python 3.12 #2869
Comments
@rzhao271 or @dhruvmanila -- Any interest in fixing this one? |
I'm interested, though it'll have to be on my own time. |
#2888 Needs help to pass test… |
This is becoming more urgent now that Python 3.12 is a release candidate.
|
this is breaking for me |
Py3.12 is still pre-release. Please try to copy the |
@cclauss Python 3.12 got released and now |
The upstream fix still hasn't been merged nodejs/gyp-next#197 |
This is also broken for me. Simply create an electron forge app and then attempt to use something trivial like:
I'm greeted with:
|
@rzhao271 @dhruvmanila @zooba Node.js node-gyp is still broken on Python 3.12 on Windows. See these attempts to fix #2869 (comment). I am not a Windows person so I cannot debug. |
Python 3.12 released on Oct 2nd and got it by default with other tooling and nothing is working now because |
@jurijsk It's sad, as we knew Python was removing it and have done nothing about it! |
Any progress? On Windows, node-gyp cannot work on Python 3.12 now. |
Same issue here (Windows, python 3.12.0) |
Doesn't work on Mac either |
@rzhao271 upstream was merged since that
|
I will work on vendoring in |
If some of you are frustrated then please do Other activities blocked vendoring effort today but I will dig in with my first coffee tomorrow. |
* Fix compilation Amends commit 7f70d25. * CI: Workaround node-gyp issue nodejs/node-gyp#2869
* recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 * we need the fix from: nodejs/node-gyp#2869 Signed-off-by: Martin Jansa <[email protected]>
* recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 * we need the fix from: nodejs/node-gyp#2869 Signed-off-by: Martin Jansa <[email protected]>
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
* recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 * we need the fix from: nodejs/node-gyp#2869 Signed-off-by: Martin Jansa <[email protected]>
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
Wasn't working for me in the case of installing |
I am using python3.12 for venv and I have a same problem with execute pandas_datareader. |
Please look at your error log and ensure it contains the line Some have said that https://github.com/pydata/pandas-datareader has not been released to PyPI since 2021 and is currently failing its Continuous Integration tests so you will need to seek help on that repo... |
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
Tengo dos semanas buscando el bug porque no podia correr tensorflow/tfjs muchas gracias!
|
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
:Release Notes: recipes using node-gyp-native fail to build after python3 was updated to 3.12 in: https://git.openembedded.org/openembedded-core/commit/?id=716d82352545d3667a658b69d65d6127678dd150 :Detailed Notes: we need the fix from: nodejs/node-gyp#2869 Fixes: nodejs-module-webos-sysbus http://gecko.lge.com:8000/Errors/Details/763462 nodejs-module-webos-pmlog http://gecko.lge.com:8000/Errors/Details/763463 nodejs-module-webos-dynaload http://gecko.lge.com:8000/Errors/Details/763464 Traceback (most recent call last): File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> import gyp # noqa: E402 ^^^^^^^^^^ File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> import gyp.input File "nodejs-module-webos-dynaload/3.0.2-4/recipe-sysroot-native/usr/lib/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> from distutils.version import StrictVersion ModuleNotFoundError: No module named 'distutils' :Testing Performed: Only build tested. :QA Notes: No change to image. :Issues Addressed: [WRP-29491] Create GPVB with Yocto 5.0 Scarthgap Change-Id: I5bbcf7246499edfaa6141890c70d0a7a257be36f
This issue was closed via nodejs/gyp-next#214 which is available in node-gyp v10+. |
EDIT: This issue was closed via nodejs/gyp-next#214 which is available in node-gyp v10+.
distutils is deprecated with removal planned for Python 3.12. See the What’s New entry for more information.
Our only current use of Python
distutils
is at:node-gyp/gyp/pylib/gyp/input.py
Line 19 in 33391db
node-gyp/gyp/pylib/gyp/input.py
Line 1186 in 33391db
As discussed in https://stackoverflow.com/questions/11887762, we should replace
distutils.version.StrictVersion
withpackaging.version.parse
.The text was updated successfully, but these errors were encountered: