Skip to content
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

scripts/uninstall_module: import signal module #2608

Merged

Conversation

rst0git
Copy link
Member

@rst0git rst0git commented Mar 3, 2025

With Python 3.13, the subprocess module now uses the posix_spawn() function 1, which requires the signal module to be imported.

Fixes: #2607

Footnotes

  1. https://docs.python.org/3/whatsnew/3.13.html#subprocess

@rst0git rst0git force-pushed the uninstall_module-import-signal branch 2 times, most recently from 4e7ae05 to 5c53af5 Compare March 3, 2025 15:12
# which requires loading the `signal` module:
# https://docs.python.org/3/whatsnew/3.13.html#subprocess
# flake8: noqa: F401
import signal

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'signal' is not used.
With Python 3.13, the `subprocess` module now uses the
`posix_spawn()` function [1], which requires the `signal`
module to be imported.

Fixes: checkpoint-restore#2607

[1] https://docs.python.org/3/whatsnew/3.13.html#subprocess

Signed-off-by: Radostin Stoyanov <[email protected]>
@rst0git rst0git force-pushed the uninstall_module-import-signal branch from 5c53af5 to 235ec54 Compare March 3, 2025 19:28
@avagin avagin merged commit 72ab270 into checkpoint-restore:criu-dev Mar 3, 2025
36 of 42 checks passed
@rst0git rst0git deleted the uninstall_module-import-signal branch March 4, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make uninstall fails with ModuleNotFoundError: signal
2 participants