-
Hi, I assumed from the documentation that Windows 11 was supported. However this simple script, running under Python 3.11.5:
fails with that output:
Any clue on what is going wrong? Any suggestion to try to know more about the error? The get_failure_text() method doesn't really help to understand better... Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @p-dor and thank you for the question. Are you using wakepy 0.9.1? It should definitely support Windows 11 as well as Windows 10. I unfortunately have currently only access to a Windows 10 machine, and I have not yet tested wakepy on Windows 11 myself. If you can help me out a bit I probably can create a patch for you. A few questions
About the empty list in the ActivationResult.get_failure_text()In addition, the fact that you see an empty list (
says that wakepy did not try to use any wakepy Methods to activate the keep.running mode. That to me would tell that the detected platform for some reason is OTHER (=unknown). |
Beta Was this translation helpful? Give feedback.
-
Thanks @fohrloop for your quick answer and happy to help you to find the issue. Modify my script as below:
This is the output:
I'm using regular Python 3.11.5 for Windows (provided here) and I'm executing the script directly from a Windows PowerShell terminal. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Ooops sorry, my bad, I copied your sample to catch error without looking at that param which was obviously to force the error... |
Beta Was this translation helpful? Give feedback.
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: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: