JackMcKew / pyinstaller-action-windows

Github Action for building executables with Pyinstaller
MIT License
168 stars 67 forks source link

Program(exe file) gets closed as soon as it open #29

Closed musman920 closed 1 year ago

musman920 commented 1 year ago

Hi In my local system , if I build the exe from pyinstaller .spec then it works fine. from the github actions artifact. The exe file closes as soon as i open it.

what could be the underlying problem as no error is displayed.

Thank you. @JackMcKew

musman920 commented 1 year ago

It is because the packager did not consider hidden imports from .spec file

PLanB2008 commented 1 year ago

Is there a workaround for this?

JackMcKew commented 1 year ago

Can you provide a reproducible example?

musman920 commented 1 year ago

remove the following line from spec file:

hooksconfig={},

This is recommended by the github actions as it is a known/common error with the package.

JackMcKew commented 1 year ago

Marking as complete :) Thank you @musman920