Mat Kelly

Results 844 comments of Mat Kelly

I am starting to wonder if perhaps my installed version of Python is either Intel or not tailored to Apple Silicon. `platform.machine()` states `arm64`.

In the pyinstaller source, the issue exhibited of the complaint in the end of the above can be viewed via: ```py from macholib.MachO import MachO filename = '/opt/homebrew/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/math.cpython-39-darwin.so' executable =...

Per https://github.com/pyinstaller/pyinstaller/issues/5886#issuecomment-854177236 > Homebrew python is single-arch, so trying to build universal2 application should give you a build error. - [x] Reinstall Python3 with multi-architecture support and re-test the above.

I uninstalled the homebrew version of Python3 and installed the universal2 version from the Python site directly. Repeating the above: ```py /tmp % pyinstaller --onefile --target-arch universal2 hello.py 22 INFO:...

With the cross-archtecture version of Python installed, attempting to compile still results in errors of dependencies not being available for the `universal2` platform. ```py Requirement already satisfied: wxPython in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages...

```sh echo "import wx\n\nprint('hello')" > hello.py ``` ```py % pyinstaller --onefile --windowed --target-arch universal2 hello.py 24 INFO: PyInstaller: 4.5.1 24 INFO: Python: 3.9.6 31 INFO: Platform: macOS-11.5.2-arm64-arm-64bit 32 INFO: wrote...

> The 2021-12-31 build now has “universal2” for cp39 > > wxPython-4.1.2a1.dev5268+fcf49322-cp39-cp39-macosx_10_10_universal2.whl https://discuss.wxpython.org/t/mac-os-x-universal-arm-intel/35732/5

ARM support: https://github.com/wxWidgets/Phoenix/issues/1999 An update using the HEAD of wxPython from April 12, 2021 above: ```py % pyinstaller --onefile --windowed --target-arch universal2 hello.py 58 INFO: PyInstaller: 5.0.dev0 58 INFO: Python:...

Pyinstaller 4.10 has been released. ```py % pyinstaller --onefile --windowed --target-arch universal2 hello.py 26 INFO: PyInstaller: 4.10 26 INFO: Python: 3.10.0 33 INFO: Platform: macOS-12.2.1-arm64-arm-64bit 33 INFO: wrote /private/tmp/hello.spec 36...

Hi @kernelBPD, if you are trying to create a universal binary using pyinstaller, this is now supported in the latest version of pyinstaller. I have tested this on an M1...