marticliment / win32mica

Win32mica: a simple module to add the Mica effect on legacy python windows.

Home Page:https://pypi.org/project/win32mica

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling with cx_Freeze

not-nef opened this issue · comments

commented

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?

commented

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)

commented

Epic, ok. How do i use pyinstaller? (Sorry for bothering you)

It is really easy (actually easier than cx_freeze).

  1. install pyinstaller:
pip install pyinstaller
  1. Build the .exe file:
pyinstaller ./yourfile.py --onefile --windowed
  1. 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?

commented

I am still having troubles with another of the apps components, but once its fixed, i will report to you if it works!

commented

Yes @martinet101 it works, thank you