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

Python 3 vs Python 2 discrepancy #14

Open
Olabisi-Aishat-Bello opened this issue Jul 19, 2024 · 1 comment
Open

Python 3 vs Python 2 discrepancy #14

Olabisi-Aishat-Bello opened this issue Jul 19, 2024 · 1 comment

Comments

@Olabisi-Aishat-Bello
Copy link

In case anyone is using this in python 3, you would likely need to make some changes to the standalone numpy python file:

i) Instead of import cPickle as pickle, you can do "import _pickle as pickle"

ii) Instead of "self.vars = pickle.load(fid)", you can do "self.vars = pickle.load(fid, encoding='latin1')"

iii) Also, replace any np.bool with bool if you are using a more recent numpy version

Hopefully, this helps!

@xiaoruiDong
Copy link

It works for me. Thanks for the tips, @Olabisi-Aishat-Bello.

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