Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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