dortania / OpenCore-Legacy-Patcher

Experience macOS just like before
https://dortania.github.io/OpenCore-Legacy-Patcher/
Other
11.78k stars 1.12k forks source link

Server Side: Update backend to Python 3.11 and add Universal 2 support #1099

Closed khronokernel closed 10 months ago

khronokernel commented 10 months ago

For users compiling OpenCore Legacy Patcher manually, ensure you install the universal2 variant of charset-normalizer. pip3 may select the Intel-only slice if installing automatically.


If local build errors on the following:

PyInstaller.utils.osx.IncompatibleBinaryArchError: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/charset_normalizer/md__mypyc.cpython-311-darwin.so is not a fat binary!

Uninstall charset-normalizer, then manually install the universal2 wheel:

pip3 uninstall charset-normalizer
pip3 install https://files.pythonhosted.org/packages/8e/a2/77cf1f042a4697822070fd5f3f5f58fd0e3ee798d040e3863eac43e3a2e5/charset_normalizer-3.2.0-cp311-cp311-macosx_10_9_universal2.whl

Ensure to adjust the whl link to the latest version available at PyPI: