-
Notifications
You must be signed in to change notification settings - Fork 4
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
standalone windows exe distribution script #15
Comments
With some experimentation, I was able to get the gui to run on windows. However, the "pyinstaller" build was not successful. It did complain that it could not find "C:/Python27/share/gir-1.0.", and there is indeed no "share" directory. The steps I've taken so far were:
From there, you can run the converter_gui.py script from this project, and the basic functionality seems to work ok. I only tested the png exporter, though. Also note, pillow must be installed from the commandline, via easy_install or pip, so it is definitely necessary to bundle an exe, as I expect most users interested in this would not know how to do this :/ Also note, with the above it takes almost a minute for the program to start O_O wtf |
Some more progress. There is a bug in pyinstaller with regards to the gobject introspection stuff. It can be worked around by copying c:/python27/lib/site-packages/gnome/share to c:/python27/. Second problem, is that this needs to be built with freeze, so do something like The resulting program will still crash, unfortunately. Its hard to get the command output, but I got a screenshot D: The relevant error in the traceback is: Getting warmer :O |
This incorperates a work-around from here: pyinstaller/pyinstaller#1966 This isn't perfect: - you need to modify your python directory on windows (copy c:/python27/lib/site-packages/gnome/shared to c:/python27/shared) - after generating the exe file, you also need to copy the glade file and the svg files into the dist dir, or the exe will crash. This relates to issue #15. I also updated the .gitignore file.
Ok, got it to build after some helter skelter work-arounds:
|
Create a script that generates a stand-alone windows exe file for the gui tool, using pyinstaller.
Actionable things:
The text was updated successfully, but these errors were encountered: