Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When uploading the RML 2016a Data set shows Error #26

Open
sudhirrt10 opened this issue Sep 20, 2019 · 1 comment
Open

When uploading the RML 2016a Data set shows Error #26

sudhirrt10 opened this issue Sep 20, 2019 · 1 comment

Comments

@sudhirrt10
Copy link

Hello When Try to import the data set which is in .pkl format in python 3.7 it shows error
Annotation 2019-09-20 183654

@roman-popenov
Copy link

roman-popenov commented Jan 9, 2021

You need to specify encoding. I believe it's a byte string for python 3.7.
You can try something like this:

    def load_dataset_with_pickle(self):
        with io.open(self.file, "rb") as datasetFile:
            unpickler = pickle.Unpickler(datasetFile, encoding='bytes')

            return unpickler.load()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants