[Numpy-discussion] npz load on numpy 3

Pauli Virtanen pav@iki...
Tue Mar 29 03:27:52 CDT 2011


Tue, 29 Mar 2011 04:16:00 -0400, josef.pktd wrote:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Programs\Python32\lib\site-packages\numpy\lib\npyio.py",
> line 222, in __getitem__
>     return format.read_array(value)
>   File "C:\Programs\Python32\lib\site-packages\numpy\lib\format.py",
> line 449, in read_array
>     array = pickle.load(fp)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 6:
> ordinal not in range(128)
[clip]
> Any ideas ?

There's some open() call that opens the file in text mode rather than in 
binary mode, I guess.

	Pauli



More information about the NumPy-Discussion mailing list