Rok Mandeljc
Rok Mandeljc
Are you running ARM64 python on ARM64 Windows machine? What is the output of ``` import platform print(platform.machine()) ``` The error message suggests that you are running on ARM64, but...
Then you probably ended up with x64 PyPI wheel (which has x64 bootloaders in `Windows-64bit-intel`) instead ARM64 wheel (which has ARM64 bootloaders in `Windows-64bit-arm`, where PyInstaller expects to find them...
As well as: ```python import os print(os.environ.get('PROCESSOR_ARCHITEW6432')) print(os.environ.get('PROCESSOR_ARCHITECTURE')) print(os.environ.get('PROCESSOR_IDENTIFIER')) ``` these are used behind the scenes in `platform.machine`, although python 3.12 added a WMI-based check that takes precedence over those...
Is this with python 3.12? Could you also check an earlier version (e.g., 3.11) - to see if the addition of WMI-based query changed the behavior of `platform.machine()`?
Although I suppose ``` >>> import platform >>> platform.machine() 'ARM64' ``` and ``` >>> import os >>> print(os.environ.get('PROCESSOR_ARCHITEW6432')) None >>> print(os.environ.get('PROCESSOR_ARCHITECTURE')) AMD64 ``` should be a proof enough that the...
> Those outputs on Python 3.11 are identical to the ones from Python 3.12. Hmm, that's odd - what about `platform._get_machine_win32()`?
Hmm, I can't seem to reproduce this. Can you provide a full example that triggers this issue (the icon, the PyInstaller command, the .spec file, etc.) so I can reproduce...
> For what it's worth, I tried installing the ARM Python version, but it doesn't support so many of the wheels that I needed for my app Yeah, the lack...
So we have: x64 on x64 (native) - mingw64 ``` >>> import platform >>> platform.machine() 'AMD64' >>> platform.architecture() ('64bit', 'WindowsPE') >>> import sysconfig >>> print(sysconfig.get_platform()) mingw_x86_64 >>> import os >>>...
> It looks like pip (via packaging) [is using sysconfig](https://github.com/pypa/packaging/blob/57a6a7ff661930a8b0dde55663947b80cf3c196a/src/packaging/tags.py#L508-L521C16). It would probably make sense to match method, although it probably doesn't matter either way. Does `sysconfig.get_platform()` under arm64 python...