-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. #131201
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
base: main
Are you sure you want to change the base?
Conversation
On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL.
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot recreate the same setup as you have, can you please share what happens with this change in place?
@sobolevn steps to reproduce on a fresh Ubuntu Server 24.04.2 setup:
Then:
shows:
Here's a full log. with changes in this PR, it shows the following with the same setup:
Here's a full log.
this warning is misleading, because
this warning is consistent with the warning
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it is clear now! LGTM. However, I am not the module's maintainer, let's wait for them to make the final decision :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
On Linux, compiling without "libffi" causes a misleading warning
"No module named 'msvcrt'" when launching PyREPL.