pickle error

Hi everyone,

since matplotlib 1.3 matplotlib figures are pickle-able

but when i try an example found on stackoverflow:
import matplotlib.pyplot as plt
import numpy as np
import pickle

ax = plt.subplot(111)
x = np.linspace(0, 10)
y = np.exp(x)
plt.plot(x, y)
pickle.dump(ax, file('myplot.pickle', 'w'))
(http://stackoverflow.com/questions/7290370/store-and-reload-matplotlib-pyplot-object)

i get the following error:
Traceback (most recent call last):
  File "D:/Work/Programming/Experimental/picklematplotlib/main.py", line 15,
in <module>
    pickle.dump(ax, file)
  File "C:\Python32\lib\site-packages\six.py", line 116, in __getattr__
    _module = self._resolve()
  File "C:\Python32\lib\site-packages\six.py", line 105, in _resolve
    return _import_module(self.mod)
  File "C:\Python32\lib\site-packages\six.py", line 76, in _import_module
    __import__(name)
  File "C:\Python32\lib\dbm\gnu.py", line 3, in <module>
    from _gdbm import *
ImportError: No module named _gdbm

i am using matplotlib-1.3.1.win-amd64.py3.2.exe version of matplotlib
together with python3.2 on an 64bit windows machine

thanks,
jojo

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/pickle-error-tp43036.html
Sent from the matplotlib - users mailing list archive at Nabble.com.