Building python pylab/matplotlib exe using pyinstaller -


the following code runs fine , displays simple pie chart when run interpreted python py program.

a month ago, used pyinstaller create stand-alone exe , worked great.

recently, decided rebuild exe. pyinstaller build completes without errors, generated exe nothing when run. when run it, ends without errors , without displaying pie chart. has changed since month ago, can't figure out what. i've tried uninstalling python , modules , reinstalling, made no difference.

from pylab import * matplotlib import pyplot plt  figure(1, figsize=(6,6)) ax = axes([0.1, 0.1, 0.8, 0.8])  labels = 'frogs', 'hogs', 'dogs', 'logs' fracs = [15, 30, 45, 10] explode=(0, 0.05, 0, 0)  pie(fracs, explode=explode, labels=labels,                 autopct='%1.1f%%', startangle=90)  title('pie chart example', bbox={'facecolor':'0.8', 'pad':5})  show() 

this pyinstaller command using build exe. command works other pyqt gui builds , exe's work fine. having problem building pylab/matplotlib python code.

c:/python27/python.exe c:/pyinstaller/pyinstaller.py --noconfirm --noconsole --onefile --icon=pie.ico pie.py 

found solution. apparently there bug in version of pyinstaller had. found post on pyinstaller's site: http://www.pyinstaller.org/ticket/651

so downloaded latest pyinstaller , can build exe of piechart python program again!


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -