Pyinstaller with Wine #9041
-
Hi, First of all thank you for Pyinstaller. However I recently came upon a crash during Pyinstaller's execution where it wants to access the function On Pyinstaller's side the crash appears to happen in I am using Pyinstaller 6.12.0 and pyinstaller-hooks-contrib 2025.1 (all up to date) on Python 3.12.9. This problem seems related to #8886 but this time the error is elsewhere on Pyinstaller's side. Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It's the same kind of problem, yes. You have a package that calls Except in your case, the crash happens earlier, during hook directory discovery - presumably because the offending package provides You will have to identify the package (try looking at the metadata directories for |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. As a baseline I tried to compile a python file containing only It fails with the same error (but works with pyinstaller on Ubuntu). I will try changing wine versions and update this thread in case anybody is in a similar situation. |
Beta Was this translation helpful? Give feedback.
Oh I see, you are right.
I tried your code snippet, turns out
numpy
is the culprit, which is quite sad seeing how common the package is.From quick tests,
numpy>=2.2.2
is broken, but works withnumpy==2.2.1
.As a workaround I will just use
numpy==2.2.1
for my Windows project.Many thanks for you help!