Compiling with cx_Freeze
not-nef opened this issue · comments
Hello! I am using win32mica in a program, and when running the program from the .py file, everything works flawlessly. But when i compile the program to an execuetable using cx_Freeze, win32mica throws the following error:
Win32Mica Error: win32 version 9200 is not supported
What does that mean and how do i fix it?
Mhmm, that's weird... It looks that cx_freeze is not providing a correct windows build number...
Could you try build using PyInstaller?
I can, but does pyinstaller build msi's?
PyInstaller will build a standalone .exe file, and then you can create an installer using tools like Inno Setup (will create a .exe installer) or AppDeploy Repackager (will create a .msi installer)
Epic, ok. How do i use pyinstaller? (Sorry for bothering you)
It is really easy (actually easier than cx_freeze).
- install pyinstaller:
pip install pyinstaller
- Build the .exe file:
pyinstaller ./yourfile.py --onefile --windowed
- You will have a .exe file in a folder located in your current working directory called dist. It should work then.
For more info check out the docs: https://pyinstaller.org/en/stable/usage.html
Hi, did that help with the issue?
I am still having troubles with another of the apps components, but once its fixed, i will report to you if it works!
Yes @martinet101 it works, thank you