Skip to content

Pyinstaller Windows on Apple Silicon fails to start #148

@Cediddi

Description

@Cediddi

Describe the bug
pyinstaller-windows:v4.11 unfortunately fails to run on Mac with emulation.

To Reproduce
Steps to reproduce the behavior:
0. Have a M3 Pro Macbook

  1. Fetch pyinstaller-windows:v4.11.0
  2. Run docker run batonogov/pyinstaller-windows:v4.11.0
wine: dlls/ntdll/unix/virtual.c:253: anon_mmap_fixed: Assertion `!((UINT_PTR)start & host_page_mask)' failed.
qemu: uncaught target signal 6 (Aborted) - core dumped
/usr/bin/pyinstaller: line 1:    18 Aborted                 wine 'C:\Python3\Scripts\pyinstaller.exe' "$@"

Expected behavior

  1. Work as expected, like pyinstaller-linux:v4.11 and output something like this
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
0050:err:vulkan:vulkan_init_once Failed to load libvulkan.so.1
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0050:err:systray:initialize_systray Could not create tray window
00c4:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\winebth": c00000e5
usage: pyinstaller [-h] [-v] [-D] [-F] [--specpath DIR] [-n NAME] [--contents-directory CONTENTS_DIRECTORY] [--add-data SOURCE:DEST] [--add-binary SOURCE:DEST] [-p DIR] [--hidden-import MODULENAME] [--collect-submodules MODULENAME] [--collect-data MODULENAME]
                   [--collect-binaries MODULENAME] [--collect-all MODULENAME] [--copy-metadata PACKAGENAME] [--recursive-copy-metadata PACKAGENAME] [--additional-hooks-dir HOOKSPATH] [--runtime-hook RUNTIME_HOOKS] [--exclude-module EXCLUDES] [--splash IMAGE_FILE]
                   [-d {all,imports,bootloader,noarchive}] [--optimize LEVEL] [--python-option PYTHON_OPTION] [-s] [--noupx] [--upx-exclude FILE] [-c] [-w] [--hide-console {minimize-early,hide-early,minimize-late,hide-late}]
                   [-i <FILE.ico or FILE.exe,ID or FILE.icns or Image or "NONE">] [--disable-windowed-traceback] [--version-file FILE] [--manifest <FILE or XML>] [-m <FILE or XML>] [-r RESOURCE] [--uac-admin] [--uac-uiaccess] [--argv-emulation]
                   [--osx-bundle-identifier BUNDLE_IDENTIFIER] [--target-architecture ARCH] [--codesign-identity IDENTITY] [--osx-entitlements-file FILENAME] [--runtime-tmpdir PATH] [--bootloader-ignore-signals] [--distpath DIR] [--workpath WORKPATH] [-y]
                   [--upx-dir UPX_DIR] [--clean] [--log-level LEVEL]
                   scriptname [scriptname ...]
pyinstaller: error: the following arguments are required: scriptname

Screenshots
Can provide if requested.

Docker information (please provide the following information):

  • Docker image: batonogov/pyinstaller-windows:v4.11.0
  • Docker version: 27.4.0 (Apple Virtualization + Rosetta + VirtioFS)
  • Run command: docker run batonogov/pyinstaller-windows:v4.11.0

Additional context
Also tested 4.8.0 4.9.0 and 4.10, they're working fine.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions