Skip to content

Is Windows 11 supported? #375

Closed Answered by fohrloop
p-dor asked this question in Q&A
Aug 5, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Thank you for the information. Seems that I overlooked your code a bit. You have given methods = [], which essentially says to wakepy to not use any methods to try to enter the mode. This will force a failure. Please see documentation for the keep.running mode:

methods: list, tuple or set of str
The names of Methods to select from the keep.running mode; a “whitelist” filter. Means “use these and only these Methods”. ...

and the note in the Example: Notify user with a custom callable:

The fix is simply not provide the methods argument at all, if you do not have any special requirements for controlling the activation process. I.e, just use:

with keep.running(on_fail = wakePyFailure):
	print

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fohrloop
Comment options

Answer selected by p-dor
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants