Skip to content

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128) #3

@flaviomb

Description

@flaviomb

I have tried to run this example but I have found some problems.

First, when I run the command import cPickle I have got the following error:

ImportError: No module named 'cPickle'

Searching on the web, I found this command: import _pickle as cPickle and the error ImportError: No module named 'cPickle' disappears.

However, when I run the first command Xd = cPickle.load(open("RML2016.10a.dat",'rb')) again the following error appears:

Traceback (most recent call last): File "<ipython-input-42-221bdee5fae3>", line 1, in <module> Xd = cPickle.load(open("RML2016.10a.dat",'rb')) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)

My python version is 3.4.3

What is the cause of this UnicodeDecodeError?

Thanks for the attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions