'Pyinstaller and Clr (pythonnet) - unable to find module

I try to create .exe file using pyinstaller. In my .py script I'm using clr package with line clr.AddReference('name1.name2.name3'). In .spec file I set hiddenimports = ['clr'] and I added paths to this name1.name2.name3.dll in binaries field. Hovewer, when I try to run .exe fie on another computer I get "Unable to find module name1 ". What should I correct?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source