-
Notifications
You must be signed in to change notification settings - Fork 37
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
Making it work with macOS Monterey 12.3 -- which has python2 removed and supports only python3 #65
Comments
Add support for the new CLI of SelfControl 4. Support for older SelfControl versions <= 3 is removed to simplify the code. Older Auto-SelfControl versions can still be installed for SelfControl 3 support. The upcoming macOS Monterey 12.3 will remove oob support for Python2. Incorporate separate Python3 module in main module. Resolves: #65
Add support for the new CLI of SelfControl 4. Support for older SelfControl versions <= 3 is removed to simplify the code. Older Auto-SelfControl versions can still be installed for SelfControl 3 support. The upcoming macOS Monterey 12.3 will remove oob support for Python2. Incorporate separate Python3 module in main module. Resolves: #65
Add support for the new CLI of SelfControl 4. Support for older SelfControl versions <= 3 is removed to simplify the code. Older Auto-SelfControl versions can still be installed for SelfControl 3 support. The upcoming macOS Monterey 12.3 will remove oob support for Python2. Incorporate separate Python3 module in main module. Resolves: #65
Add support for the new CLI of SelfControl 4. Support for older SelfControl versions <= 3 is removed to simplify the code. Older Auto-SelfControl versions can still be installed for SelfControl 3 support. The upcoming macOS Monterey 12.3 will remove oob support for Python2. Incorporate separate Python3 module in main module. Resolves: #65
Thanks for the help. I've added your recommendations and the ones from #28. My local tests were successful but they are still on a branch. Until we found a solution for #64, it is not of much use anyway. When we solve this issue, we can build a new major version with the changes from the python3 branch. |
Is there a workaround yet? I can't seem to make auto-selfcontrol work. |
I've tried the changes suggested but it doesn't work. I hope that we can get some solution for this, I can not make it run :( |
I had trouble making this work on M1 Macbook with macOS Monterey 12.3.
Error --
sudo: /usr/bin/python: command not found
Reason -- Apple is removing support for Python2 from this release (12.3) onwards.
Solution -- make the code work for Python3
Files location --
/opt/homebrew/bin/auto-selfcontrol
and/opt/homebrew/bin/auto-selfcontrol.py
The script runs without any errors after the above changes, however, many other changes might also be required for uncaught exceptions to make the script run from 12.3 onwards.
In the meantime, someone please push the above changes to this repo.
Also, the script does run without errors.
But it does not work properly -- it does not block (issue 64)
Also
auto-selfcontrol install
showsWhy does it show API v2. Shouldn't it be API v3 since I am running SelfControl Version 4.0.2 (410)?
The text was updated successfully, but these errors were encountered: