-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
wakepy linux & mac support #12
Comments
@np-8 Thanks for keep track of this. I will take a look at it soon and test your suggestion. Thanks ! |
@np-8
|
@ikus060 Thank you this is really valuable! As this occurs import time this should really be changed to ImportError! I will publish a patch for this! By the way, what system you were using for the test? When there is no dbus, it should fall back to systemd, which should then fail (with ImportError but I have to check it) if not running with sudo. |
@np-8 Thanks for helping. This occur in Docker container. Systemd is not running in a container. |
Just wanted to give a brief update that I've finally got some extra time to work on this. I decided to also add some basic testing to wakepy, and got similar error message when importing wakepy in pytest in tox. I'm not even using a docker container. I'm documenting my findings to fohrloop/wakepy#26. |
Hi,
I'm the maintainer of the wakepy package, and was just looking where the package is used. I noticed that you install wakepy on all systems, but utilize it only on Windows. I'm guessing the reason for that might be that at the time when
minarca-client/minarca_client/core/__init__.py
nearset_keepawake
was changed (Aug 30, 2021), the mac version had a bug and linux version needed sudo (wakepy 0.4.3). The wakepy 0.6.0 has the mac bug fixed and linux version works without sudo (using dbus instead of systemd).So, this:
could be
(+ similar handling with
unset_keepawake
). That would then ensure also on linux/mac that system will not suspend/sleep in the middle of processing.The text was updated successfully, but these errors were encountered: