Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

KeyError: "filename 'storages' not found" #6

Open
abhikhanna30 opened this issue Oct 10, 2018 · 3 comments
Open

KeyError: "filename 'storages' not found" #6

abhikhanna30 opened this issue Oct 10, 2018 · 3 comments

Comments

@abhikhanna30
Copy link

getting this error while loading data. Am i missing something?

@weigq
Copy link
Owner

weigq commented Oct 15, 2018

@abhikhanna30
is there any more info?

@abhikhanna30
Copy link
Author

when i was doing torch.load(train_3d.pth.tar) for example on my gpu , i was getting the error:

_Traceback (most recent call last):
File "", line 1, in
File "/home/abhijeet/anaconda3/lib/python3.6/site-packages/torch/serialization.py", line 358, in load
return _load(f, map_location, pickle_module)
File "/home/abhijeet/anaconda3/lib/python3.6/site-packages/torch/serialization.py", line 527, in _load
return legacy_load(f)
File "/home/abhijeet/anaconda3/lib/python3.6/site-packages/torch/serialization.py", line 441, in legacy_load
tar.extract('storages', path=tmpdir)
File "/home/abhijeet/anaconda3/lib/python3.6/tarfile.py", line 2039, in extract
tarinfo = self.getmember(member)
File "/home/abhijeet/anaconda3/lib/python3.6/tarfile.py", line 1750, in getmember
raise KeyError("filename %r not found" % name)
KeyError: "filename 'storages' not found"

@weigq
Copy link
Owner

weigq commented Oct 16, 2018

This is due to python version, the codes only tested in pytho2.7, there are some problems in python3

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

No branches or pull requests

2 participants