Compiling for windows using pyinstaller (or alternatives?)

85 views
Skip to first unread message

Oon-Ee Ng

unread,
Oct 19, 2015, 3:44:33 AM10/19/15
to kivy-...@googlegroups.com
So I've followed http://kivy.org/docs/guide/packaging-windows.html
using kivy-master on both python 2.7 and python 3.4, just trying out
the touchtracer example.

First I tried on wine (running on Linux) which gave ctypes errors,
which led me down a google rabbit hole, so I gave up.

In a virtual machine as well as in my windows dual boot, I could run
pyinstaller successfully, but the resulting exe would not run with the
following error:-
Error loading python DLL: C:\users\<my username>\Temp\_MEa89d.tmp\python34.dll

Any advise? Is there any other supported method for compiling to an
exe (py2exe or cxfreeze) for a kivy project?

Oon-Ee Ng

unread,
Oct 19, 2015, 4:32:20 AM10/19/15
to kivy-...@googlegroups.com
So I got it working, but only with python2.7 (and needing the Tree
command for SDL2). Will have to test it out for my app first.

Oon-Ee Ng

unread,
Oct 19, 2015, 5:14:54 AM10/19/15
to kivy-...@googlegroups.com
It worked once, but didn't include all my dependencies. Running it
again failed with an IOError. The 'successful' compile which didn't
include dependencies worked once I copied my dependencies in by hand.

I think there's a fundamental problem with my setup. Will have to
continue exploring.
Reply all
Reply to author
Forward
0 new messages