We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platform.machine()
x86_64
Issue: platform.machine() seems to return the result belonging to the machine that froze the program instead of the machine running the program.
This is particular problematic if one needs to run different code based on the runtime architecture.
PyInstaller: 4.2 Python: 3.9.1 (universal2 installer) Freeze platform: macOS 10.14.6 Runtime platform: macOS 11.1 (M1 chip)
test_platform_machine.py
import platform print(platform.machine())
Returns the machine type, e.g. 'i386'. An empty string is returned if the value cannot be determined
https://docs.python.org/3/library/platform.html#platform.machine
Expected output: arm64 Actual output: x86_64
arm64
I do not know anything about PyInstaller internals but that also might be related to the compatibility mode causing this issue.
Our current workaround is to use os.uname().version instead, which seems to behave correctly.
os.uname().version
The text was updated successfully, but these errors were encountered:
The bootloader is currently built only for x86_64.
Can you check if #5315 (comment) helps?
Sorry, something went wrong.
This has indeed solved the issue, see #5315 (comment)
Successfully merging a pull request may close this issue.
Issue:
platform.machine()
seems to return the result belonging to the machine that froze the program instead of the machine running the program.This is particular problematic if one needs to run different code based on the runtime architecture.
PyInstaller: 4.2
Python: 3.9.1 (universal2 installer)
Freeze platform: macOS 10.14.6
Runtime platform: macOS 11.1 (M1 chip)
test_platform_machine.py
https://docs.python.org/3/library/platform.html#platform.machine
Expected output:
arm64
Actual output:
x86_64
I do not know anything about PyInstaller internals but that also might be related to the compatibility mode causing this issue.
Our current workaround is to use
os.uname().version
instead, which seems to behave correctly.The text was updated successfully, but these errors were encountered: