Try unbundling the Python interpreter using the `'bundle_files': 2` option <http://www.py2exe.org/index.cgi/SingleFileExecutable>. Works for me with Python 3.4 (2.7 works with `'bundle_files': 3`).
Christoph On 5/28/2014 8:35 PM, hgbing2013 wrote: > I need to embedding matplotlib in pyqt4, i use the below code in my project: > > from matplotlib.backends.backend_qt4agg \ > import FigureCanvasQTAgg as FigureCanvas > > convert to exe with py2exe, however running exe i got the error: > > File "matplotlib\backends\backend_qt4agg.pyo", line 19, in <module> > File "ctypes\__init__.pyo", line 378, in __getattr__ > File "ctypes\__init__.pyo", line 383, in __getitem__ > AttributeError: function 'Py_DecRef' not found > > environment in my pc: > python2.7 > PyQt GPL v4.10.3 for Python v2.7 (x32) > > Thanks > ------------------------------------------------------------------------ > robert > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users