-
BackgroundMy app uses gstreamer and OpenCV and runs fine before pyinstaller. I don't use pygobject, only opencv needs gstreamer. ProblemAfter freezing with pyinstaller, my executable crashes with I can see a lot of Does anyone have advice about this? Thanks in advance Current attemptI have tried using Where I have # Empty hook to prevent collecting unnecessary GObject Introspection modules
hiddenimports = []
excludedimports = ['gi.repository']My packages |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Does the executable crash when executing your program code or while it is still executing our run-time hooks? If you change If the crash happens in your program, can you instrument it with additional print statements to see what package is being imported when it crashes? Alternatively, you can also change: into and rebuild. This will dump information about all imports that happen, so you can see what import chain led to the crash. My guess would be that you have some component that actually depends on |
Beta Was this translation helpful? Give feedback.
You are collecting the gst-python plugin; and my guess would be that the
pygobject initialization failederror message is coming from here.When you run frozen application, the gstreamer plugins are probably rescanned, which is why you are seeing this message (either because the registry file is not collected, or because plugin location changed). Whereas when you run unfrozen, the gstreamer plugins registry is re-used, and so no scan is necessary - but on the very first run, you might have seen similar error/warning message (or if you remove the registry file to…