PyInstaller, PySide, MacOS and Accessability #8705
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Do you perform some other action with the .app bundle after building it? E.g., copy or move it, or compress, transfer, uncompress it? I.e., something that might break symlinks in it? (Because .app bundles made with PyInstaller 6.x depend heavily on symlinks...). I can't reproduce this. If I build your example with python 3.9.13, PyInstaller 6.9.0, and PySide2 5.15.2.1 on x86_64 Monterey system, the resulting .app bundle seems to set the accessibility values as expected, both on the same Moneterey system, and on arm64 Sonoma system (the screenshots are taken on the latter): |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. |
Beta Was this translation helpful? Give feedback.
Hmmm, yeah, build made with intel-only (macos10.9) variant of python 3.9.13 and PyInstaller 6.9.0 indeed does not work as expected under Sonoma.
But to be fair, neither does running your example as unfrozen script in that python environment.
This boils down to the macOS SDK declared by the executable; in that macos10.9 (intel-only) python 3.9.13 build, python executable and shared library declare SDK version 10.9.
Starting with PyInstaller 4.4 (#5839), we change the reported SDK version on the generated frozen executable to match the one from the python executable (if lower), in order to ensure consistent behavior between the unfrozen python and frozen application (and so, you are getting…