Christoph Gohlke wrote:
I just installed matplotlib-0.99.3.win32-py2.6.exe on this Win2000 PC.
When I try:
from matplotlib import pyplot as plt
it crashes Python with an apparent NULL-pointer reference. If I run
then it crashes just after:
# c:\python26\lib\site-packages\matplotlib\transforms.pyc matches
import matplotlib.transforms # precompiled from
matplotlib-0.99.1.win32-py2.6.exe worked fine on this PC.
I can not reproduce the crash in a Virtual Machine with Windows 2000 SP4, Python 2.6.5, numpy 1.4.1, and matplotlib 0.99.3.
Exactly which versions are you using, and how did you install Python (for all users?). What is your CPU?
matplotlib-0.99.3.win32-py2.6 was built against numpy 1.4.1, libpng 1.4.2 and zlib 1.2.5, while matplotlib-0.99.1.win32-py2.6 was built against numpy 1.3.0, libpng 1.2.3x, and zlib 1.2.3.
Ah--installing numpy 1.4.1 fixed the issue. I had numpy 1.3.0 installed before that.
Thanks for such a helpful response. I wasn't aware that matplotlib is "built against" a particular version of numpy (not quite sure what that means either, unless numpy provides a direct C API as well as the Python API; please excuse my ignorance).
(To answer your questions in case that's still useful somehow... I'm using Windows 2000 SP4, Python 2.6.5, on a Pentium 4 PC. I installed Python for all users.)
Thanks and regards,
On 5/31/2010 1:53 AM, Craig McQueen wrote: