Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with cx_Freeze #6

Closed
not-nef opened this issue Apr 13, 2022 · 8 comments
Closed

Compiling with cx_Freeze #6

not-nef opened this issue Apr 13, 2022 · 8 comments

Comments

@not-nef
Copy link

not-nef commented Apr 13, 2022

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?

@marticliment
Copy link
Owner

Mhmm, that's weird... It looks that cx_freeze is not providing a correct windows build number...

Could you try build using PyInstaller?

@not-nef
Copy link
Author

not-nef commented Apr 13, 2022

I can, but does pyinstaller build msi's?

@marticliment
Copy link
Owner

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)

@not-nef
Copy link
Author

not-nef commented Apr 13, 2022

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

@marticliment
Copy link
Owner

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

@marticliment
Copy link
Owner

Hi, did that help with the issue?

@not-nef
Copy link
Author

not-nef commented Apr 17, 2022

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

@not-nef
Copy link
Author

not-nef commented Apr 19, 2022

Yes @martinet101 it works, thank you

@not-nef not-nef closed this as completed Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants