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

from jarvis.db.figshare import data #327

Open
xiaowangfeng opened this issue Sep 27, 2024 · 0 comments
Open

from jarvis.db.figshare import data #327

xiaowangfeng opened this issue Sep 27, 2024 · 0 comments

Comments

@xiaowangfeng
Copy link

Hello Professor. I am encountering an error when utilising the jarvis dataset. I have installed jarvis-tools-2024.8.30 and jarvis-0.1.9 but I am running:
from jarvis.db.figshare import data
d = data(‘dft_3d’) #choose a name of dataset from above

See available keys

print (d[0].keys())

See available keys print (d[0].keys())

print(len(d))
I'm getting an error.
d = data(‘dft_3d’) #choose a name of dataset from above
File ‘D:\Anaconda\envs\DL\lib\site-packages\jarvis\db\figshare.py’, line 588, in data
dat = get_request_data(js_tag=js_tag, url=url, store_dir=store_dir)
File ‘D:\Anaconda\envs\DL\lib\site-packages\jarvis\db\figshare.py’, line 541, in get_request_data
data = json.loads(zipfile.ZipFile(path).read(js_tag))
File ‘D:\Anaconda\envs\DL\lib\zipfile.py’, line 1266, in init
self._RealGetContents()
File ‘D:\Anaconda\envs\DL\lib\zipfile.py’, line 1333, in _RealGetContents
raise BadZipFile(‘File is not a zip file’)
zipfile.BadZipFile: File is not a zip file
Can you tell me how to fix him?

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