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

Read the 'pkl' file under Windows, prompt 'an integer is required (get type bytes)' #150

Open
Rui-hub1 opened this issue Oct 9, 2023 · 0 comments

Comments

@Rui-hub1
Copy link

Rui-hub1 commented Oct 9, 2023

my read program

import checklist
from checklist.test_suite import TestSuite
suite_path = 'release_data/qqp/qqp_suite.pkl'
suite = TestSuite.from_file(suite_path)

Error reported after running the program

Traceback (most recent call last):
  File "C:\Users\Rui\Desktop\All_code\CheckList\release_data\qqp\test.py", line 4, in <module>
    suite = TestSuite.from_file(suite_path)
  File "C:\Users\Rui\Desktop\All_code\CheckList\checklist\test_suite.py", line 33, in from_file
    return load_test(path)
  File "C:\Users\Rui\Desktop\All_code\CheckList\checklist\abstract_test.py", line 13, in load_test
    return dill.load(infile)
  File "C:\ProgramData\anaconda3\envs\CheckList\lib\site-packages\dill\_dill.py", line 287, in load
    return Unpickler(file, ignore=ignore, **kwds).load()
  File "C:\ProgramData\anaconda3\envs\CheckList\lib\site-packages\dill\_dill.py", line 442, in load
    obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)

what I should do to solve this problem

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

1 participant