-
I'm trying to pack a some code from me into an exe with help of pyinstaller. In the code I use some proprietary .net third party libraries which are included via the pythonnet/clr module. When I run the script everything works fine, but after using pyinstaller to create the package I'm getting a ModuleNotFoundError. Beside adding "clr" as hidden import, I add the used dll's to the datas argument to copy them from the original place to the (pyinstaller) working directory:
In my program I am using the source or the copied dll's depending if it is frozen by pyinstaller or not:
But running the .exe ends in:
Coping the dll's seems to work, after running the pyinstaller the dll's are as expected in the dll_path['frozen'] folder. Also adding them as reference clr.AddReference(dll) might work, at least I get no error. What else do I have to consider to make the import of the dll's working? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Problem solved: the issue was that I missed to copy an additional referenced .dll file into the folder. |
Beta Was this translation helpful? Give feedback.
Problem solved: the issue was that I missed to copy an additional referenced .dll file into the folder.