Skip to content
New issue

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

pyinstaller on Wine references undefined ucrtbase function #127

Open
bob-schumaker opened this issue Jan 23, 2025 · 4 comments
Open

pyinstaller on Wine references undefined ucrtbase function #127

bob-schumaker opened this issue Jan 23, 2025 · 4 comments

Comments

@bob-schumaker
Copy link

Describe the bug
Running the pyinstaller commands fails with exception:

Successfully installed ...

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
01d0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
01d0:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
01d0:err:systray:initialize_systray Could not create tray window
wine: Call from 00006FFFFF41CF77 to unimplemented function ucrtbase.dll.crealf, aborting
wine: Unimplemented function ucrtbase.dll.crealf called at address 00006FFFFF41CF77 (thread 01c4), starting debugger...
Can't attach process 01c0: error 5

To Reproduce
Steps to reproduce the behavior:

  1. Any Mac (M3 or Intel)
  2. docker run --platform linux/amd64 --rm -v $PWD:"/src/"" -e SRCDIR="/src/" -e SPECFILE=pyinstaller.spec batonogov/pyinstaller-windows:latest

Expected behavior
pyinstaller runs and builds the application.

Screenshots
If applicable, add screenshots to help explain your problem.

Docker information (please provide the following information):

  • Docker image: batonogov/pyinstaller-linux:latest
  • Docker version: Docker version 27.4.1, build b9d17ea
  • Run command: docker run --platform linux/amd64 --rm -v $PWD:"/src/"" -e SRCDIR="/src/" -e SPECFILE=pyinstaller.spec batonogov/pyinstaller-windows:latest

Additional context
This only started happening recently, and I can't pinpoint the change. My build worked fine on 1/18, but I rebuilt my personal copy from a fork that failed. So I went back to the source :-)

Copy link

🎉 Thank you for your first issue! We will look into it soon.

@bob-schumaker
Copy link
Author

I may have found the issue: numpy=2.2.2 fails, and numpy=2.2.1 seems to work just fine. So there's something in how pyinstaller loads numpy 2.2.2 (on Wine, haven't tried it on a "real" Windows machine, I live on Mac and haven't set up my dev environment on Win yet ;-)

I will see if I can come up with an example that's more Wine oriented and file something over there if I can figure it out.

@batonogov
Copy link
Owner

Thanks @bob-schumaker

I made a new release 4.8.4, it has a new wine. Maybe it will help with your problem.

docker run --rm -it --platform linux/amd64 --entrypoint "" ghcr.io/batonogov/pyinstaller-windows:v4.8.3 wine --version
wine-10.0-rc1

docker run --rm -it --platform linux/amd64 --entrypoint "" ghcr.io/batonogov/pyinstaller-windows:v4.8.4 wine --version
wine-10.0

@conmarti
Copy link

conmarti commented Feb 5, 2025

I hit the same issue and it could be solved by downgrading numpy to 2.2.1
v4.8.4 of pyinstaller-windows does not solve the issue with numpy 2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants