Pyinstaller issue while building the .exe of a script using MNE

thanks @richard I really appreciated but I’m aiming to generate the standalone using pyinstaller.
I have some more updates. First of all, looking at the program files of the standalone I noted that:
Not only "mne/channels/data/montages/standard_1005.elc " file is not present, but the entire mne folder is not present, that’s why I did some more tests with pyinstaller, specifying in the ‘hidden import’ field of the .spec file that mne have to be imported. An example below, of how I added it in the .spec file:

a = Analysis(   
    hiddenimports=["mne"],
    .....

However it doesn’t work… mne is not imported. Reading a bit the pyinstaller site, it looks like that the main issue is that mne, unlike other packages/modules, doesn’t have a pyinstaller hook. Pyinstaller website states:

We strongly encourage package developers to provide hooks with their packages. See section Providing PyInstaller Hooks with your Package for how easy this is.

At the moment I cannot unfortunately therefore move forward, I’m stacked :disappointed_relieved:
@richard do you know someone in this great MNE community that ever tried to use pyinstaller with MNE and that could share some ideas about this issue? I’ve seen that @larsoner in this file was adding some code related to pyinstaller, maybe he knows something about that?

thanks in advance