On 04/03/17 00:28, Jason Snyder wrote: > I have the following program where I am trying to generate a pdf:
> 6 from matplotlib.backends.backend_pdf import PdfPages > 7 import numpy as np > 13 with PdfPages('wx_plot.pdf') as pdf: > When I run it I get the following error: > > Traceback (most recent call last): > File "testinger.py", line 13, in <module> > with PdfPages('wx_plot.pdf') as pdf: > AttributeError: __exit__ > > What is going on here and how do I resolve this issue? I don't know, but it's not really a python language problem more of a matplotlib/SciPy problem so you should probably try asking first on the SciPy support forum. We don't mind offering general help on third party libraries but that looks like a very specific module issue. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor