gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available.#131201
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 |
sobolevn
left a comment
There was a problem hiding this comment.
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 |
sobolevn
left a comment
There was a problem hiding this comment.
Thanks, it is clear now! LGTM. However, I am not the module's maintainer, let's wait for them to make the final decision :)
|
Thanks @plashchynski for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…is not available. (pythonGH-131201) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL. (cherry picked from commit f320c95) Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
|
GH-136668 is a backport of this pull request to the 3.14 branch. |
… is not available. (GH-131201) (GH-136668) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL. (cherry picked from commit f320c95) Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
…is not available. (pythonGH-131201) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL.
…is not available. (pythonGH-131201) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL.
…types" is not available. (pythonGH-131201) (pythonGH-136668) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL. (cherry picked from commit f320c95) Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
|
Thanks @plashchynski for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…is not available. (pythonGH-131201) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL. (cherry picked from commit f320c95) Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
|
GH-138934 is a backport of this pull request to the 3.13 branch. |
… is not available. (GH-131201) (GH-138934) gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) Fix "msvcrt" import warning on Linux when "_ctypes" is not available. On Linux, compiling without "libffi" causes a "No module named 'msvcrt'" warning when launching PyREPL. (cherry picked from commit f320c95) Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
On Linux, compiling without "libffi" causes a misleading warning
"No module named 'msvcrt'" when launching PyREPL.