macosx.py only caters for IOError, in this code:
try: default_icon_data = getResource('pygame_icon.tiff').read() except IOError: default_icon_data = None
Where as pkgdata.py can raise NotImplementedError in some cases:
try: from pkg_resources import resource_stream, resource_exists except ImportError: def resource_exists(package_or_requirement, resource_name): return False def resource_stream(package_of_requirement, resource_name): raise NotImplementedError
Specifically with pyinstaller this results in errors like: ERROR: pygame.macosx.Video_AutoInit() call FAILED
Worse, since the python extension doesn't bother to catch the raised exception, the stacktrace is lost, making it virtually impossible to debug.
Anyway, macosx.py should be patched to correctly support the possible type of errors that may be raised in the code above.