Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

from jarvis.db.figshare import data #327

@xiaowangfeng

Description

@xiaowangfeng

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions