[Numpy-discussion] persistent ImportError: No module named multiarray when moving cPickle files between machines

Charles R Harris charlesr.harris@gmail....
Wed Nov 4 09:17:36 CST 2009


On Wed, Nov 4, 2009 at 7:06 AM, Reckoner <reckoner@gmail.com> wrote:

> Here's an example:
>
> On winxp 64-bit:
>
> Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import numpy
> >>> import cPickle
> >>> a = numpy.eye(10)
> >>> cPickle.dump(a,open('from32bitxp.pkl','w'))
> >>> import numpy.core.multiarray
> >>> numpy.__version__
> '1.0.4'
> >>>
>
> On linux 64 bit:
>
> Python 2.5.4 (r254:67916, Feb  5 2009, 19:52:35)
> [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import numpy
> >>> import cPickle
> >>> cPickle.load(open('from32bitxp.pkl'))
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named multiarray
> >>> numpy.__version__
> '1.2.1'
> >>> import numpy.core.multiarray
> >>>
>
>
I wonder if this is a numpy version problem. Do you have a windows machine
with a more recent version of numpy on it?

<snip>

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20091104/ba694d72/attachment.html 


More information about the NumPy-Discussion mailing list