SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: hgbing2013 <hgb...@gm...> - 2014年05月29日 03:35:51
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.7PyQt GPL v4.10.3 for Python v2.7 (x32)
Thanks
robert
From: Christoph G. <cg...@uc...> - 2014年05月29日 05:15:54
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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /