You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to list all entries in the accessibility database with sudo tccutil -l. However, I got the following error.
# tccutil -l
/usr/local/bin/tccutil:30: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
osx_version = version(mac_ver()[0]) # mac_ver() returns 10.16 for Big Sur instead 11.+
Error opening Database. You probably need to disable SIP for this to work.
The SIP has been turned off.
# csrutil status
System Integrity Protection status: disabled.
The text was updated successfully, but these errors were encountered:
Commented out the except TypeError: part and got this:
Traceback (most recent call last):
File "./tccutil", line 354, in <module>
main()
File "./tccutil", line 334, in main
list_clients()
File "./tccutil", line 205, in list_clients
open_database()
File "./tccutil", line 134, in open_database
accessTableDigest = digest_check(c.execute("SELECT sql FROM sqlite_master WHERE name='access' and type='table'"))
File "./tccutil", line 109, in digest_check
accessTableDigest = hashlib.sha1(row[0]).hexdigest()[0:10]
TypeError: Strings must be encoded before hashing
zhouchenh
changed the title
Error Opening Database When SIP Is Off
TypeError: Strings must be encoded before hashing
Apr 28, 2022
I was trying to list all entries in the accessibility database with
sudo tccutil -l
. However, I got the following error.# tccutil -l
/usr/local/bin/tccutil:30: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
osx_version = version(mac_ver()[0]) # mac_ver() returns 10.16 for Big Sur instead 11.+
Error opening Database. You probably need to disable SIP for this to work.
The SIP has been turned off.
# csrutil status
System Integrity Protection status: disabled.
The text was updated successfully, but these errors were encountered: