I used the official Python installer from python.org to install Python 3.8.5. configure-xcode-for-embedded-development fails with the message: Traceback (most recent call last): File "Tools/Scripts/configure-xcode-for-embedded-development", line 333, in <module> main() File "Tools/Scripts/configure-xcode-for-embedded-development", line 320, in main if not os.geteuid() == 0 and not os.access(xcode_developer_dir(), os.R_OK | os.W_OK | os.X_OK, effective_ids=True): NotImplementedError: access: effective_ids unavailable on this platform
Ah, the error message is misleading, the real problem was I forgot to use sudo. Perhaps the script should check for that.
(In reply to James Darpinian from comment #1) > Ah, the error message is misleading, the real problem was I forgot to use > sudo. Perhaps the script should check for that. That's exactly what that line is doing....is os.geteuid() not implemented on Python 3.8.5?
os.geteuid() is working as intended. Looks like when the root check fails this line runs this os.access call which throws. Is the os.access call just broken or do Python implementations differ in whether they support effective_ids on macOS?
(In reply to James Darpinian from comment #3) > os.geteuid() is working as intended. Looks like when the root check fails > this line runs this os.access call which throws. Is the os.access call just > broken or do Python implementations differ in whether they support > effective_ids on macOS? I think that the os.access call might be broken in Python 3.8.5, because Python 3.8.2 seems fine with it. In any case, we can probably just remove the os.access(...) line
<rdar://problem/69971919>