-
Notifications
You must be signed in to change notification settings - Fork 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
Python 3.12-dev
& Windows: zipimporter
has no attribute find_module
#11688
Comments
Issue reported upstream to pip at: pypa/pip#11688
See the general deprecation issues of |
Thanks for reporting this. Normally we'd pick up the fix when we update our vendored copy of pkg_resources. But we pin to a very old version of setuptools, so that won't happen automatically - this pin was added in #9170 but there's no information I can find as to why we don't keep pkg_resources up to date. @pradyunsg do you remember what the issue was there? So we need to do something at our end to address this, once the setuptools fix is landed. |
On 3.12 we shouldn’t use pkg_resources, but importlib.metadata. So I’m guessing something made a distribution-wise override (by vendor-patching or environment variable). See also #11661. pip/src/pip/_internal/metadata/__init__.py Lines 29 to 49 in ba38c33
|
Duplicate of #11501 |
@kdeldycke It would be a good idea to investigate why your copy of pip is trying to import |
Description
The vendored version of
pkg_resources
inpip
fails with Python3.12-dev
on Windows.Expected behavior
No response
pip version
22.3.1
Python version
3.12.0-alpha.3 (x64)
OS
Windows 2022 & 2019
How to Reproduce
Tl;Dr, you just have to run in Windows with Python 3.12:
The long version is that I am emulating the CLI above in my code, by mimicking some of
pip
's internals.That way I can download the source distribution of the
Pygments
version I depends on, and inspect its test data files which are not distributed as part of the wheel.This construction is working perfectly on the full matrix of:
ubuntu-22.04
ubuntu-20.04
macos-12
macos-11
windows-2022
windows-2019
3.7
3.8
3.9
3.10
3.11
3.12-dev
But not on the combination of
3.12-dev
with eitherwindows-2022
orwindows-2019
.See the result of this matrix execution here, and the exact trace here.
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: