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
MacOS.Error for platform.mac_ver under OS X #38977
Comments
>>> platform.mac_ver()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/Users/drifty/cvs_code/lib/python2.3/platform.py",
line 563, in mac_ver
sysv,sysu,sysa = _mac_ver_lookup(('sysv','sysu','sysa'))
File "/Users/drifty/cvs_code/lib/python2.3/platform.py",
line 532, in _mac_ver_lookup
append(gestalt(selector))
MacOS.Error: (-5551, 'undefined selector was passed to
Gestalt') This is on an OS X 10.2.6 system. Any chance this is because I compiled with --enable- |
Logged In: YES The problem is not with your ucs4 build, this call always fails The code in _mac_ver_lookup does a try/except on RuntimeError I suggest doing the try/except on MacOS.Error. |
Logged In: YES Catching MacOS.Error doesn't help much: if 'sysu' is not Thanks. |
Logged In: YES I have no clue how to get the info but I can help test anything. I |
Logged In: YES Well, this is working for me under 2.4 (still busted under 2.3, So I will go ahead and backport the changes from 1.6 and 1.7 to |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: