Open username1761 opened 7 years ago
Did you use the following command to install Auto-SelfControl:
sudo /usr/bin/python auto-selfcontrol.py
Or did you use a custom python version?
Hey Andreas - i just used your instructions - i.e. sudo /usr/bin/python auto-selfcontrol.py
Could you tell me what OSX version you are using?
OSX Yosemite Version 10.10
@username1761
Didn't you simply forget to set your username in:
"username": "MY_USERNAME",
?
You can find your Mac OS username by opening terminal.app and typing whoami
or just by looking at the name of your home folder.
thanks a lot dude - you're right, i missed the username.
I put that in correctly, and it still doesn't work.
When i install the python file, i get this:
Traceback (most recent call last):
File "auto-selfcontrol.py", line 10, in
Here's what my config looks like now:
{ "username": "djzcomputer1", "selfcontrol-path": "/Applications/SelfControl.app", "host-blacklist": [ "twitter.com", "reddit.com", "facebook.com" ], "block-schedules":[ { "weekday": 1, "start-hour": 17, "start-minute": 15, "end-hour": 17, "end-minute": 16 }, { "weekday": 2, "start-hour": 17, "start-minute": 0, "end-hour": 17, "end-minute": 3 }, { "weekday": 3, "start-hour": 8, "start-minute": 0, "end-hour": 17, "end-minute": 0 }, { "weekday": 4, "start-hour": 8, "start-minute": 0, "end-hour": 17, "end-minute": 0 }, { "weekday": 5, "start-hour": 8, "start-minute": 0, "end-hour": 17, "end-minute": 0 }, { "weekday": 6, "start-hour": 8, "start-minute": 0, "end-hour": 17, "end-minute": 0 }, { "weekday": 7, "start-hour": 8, "start-minute": 0, "end-hour": 17, "end-minute": 0 } ] }
Did you already try this from the troobleshooting section in README.md? :
ImportError: No module named Foundation
If you've installed Python using HomeBrew, you'll need to run Auto-SelfControl with the original Python installation from OS X:
sudo /usr/bin/python auto-selfcontrol.py There are also other options, including installing pyobjc on your brewed Python (pip install pyobjc). See this thread for alternative solutions.
Could you try this? https://github.com/nylas/sync-engine/issues/432#issuecomment-275931718
yes will do. will report back.
Michael G. Simpson mgsimpson1@gmail.com M: 203-506-6029 <(203)%20506-6029>
On 6 May 2017 at 00:55, Andreas Grill notifications@github.com wrote:
Could you try this? nylas/sync-engine#432 (comment) https://github.com/nylas/sync-engine/issues/432#issuecomment-275931718
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andreasgrill/auto-selfcontrol/issues/20#issuecomment-299623189, or mute the thread https://github.com/notifications/unsubscribe-auth/ADMHDu6hkGqiyTqjaTeeaUuUN9TQsPs8ks5r3CdcgaJpZM4M5eIi .
Thank you for making this!
Problem: I followed the installation instructions, but at the specified time, I can still access my blocked sites
My settings are this:
{ "username": "MY_USERNAME", "selfcontrol-path": "/Applications/SelfControl.app", "host-blacklist": [ "twitter.com", "reddit.com" ], "block-schedules":[ { "weekday": 1, "start-hour": 17, "start-minute": 0, "end-hour": 17, "end-minute": 2 }, { "weekday": 1, "start-hour": 17, "start-minute": 4, "end-hour": 17, "end-minute": 6 }, ] }
when i install the python file, i get this:
Traceback (most recent call last): File "auto-selfcontrol.py", line 10, in
from Foundation import NSUserDefaults, CFPreferencesSetAppValue, CFPreferencesAppSynchronize, NSDate
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/Foundation/init.py", line 8, in
import objc
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/init.py", line 28, in
from objc._bridgesupport import *
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py", line 13, in
import pkg_resources
File "/Library/Python/2.7/site-packages/pkg_resources/init.py", line 72, in
import packaging.requirements
File "/Library/Python/2.7/site-packages/packaging/requirements.py", line 59, in
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: call() takes exactly 2 arguments (1 given)
Notice that it ends in an error - maybe that is a reason why?