Skip to content

error when trying create db make_db.py in database2021 subdirectory #60

@Asmedeus998

Description

@Asmedeus998

hello,

I interesting in your project and want to recreate the meta database

so I want to recreate the database by downloading json from GCP:
https://console.cloud.google.com/storage/browser/danbooru_public/data?project=danbooru1

but I get the following error when I try to replace all /mnt/D2/metadata/{filename.json}

here is the error:

json_line["file_ext"],json_line["file_size"],json_line["md5"],int(json_line["has_children"]),
KeyError: 'md5'

from:

import_tags("/mnt/D2/metadata/tags000000000000.json", conn)
import_artists("/mnt/D2/metadata/artists000000000000.json", conn)
import_notes("/mnt/D2/metadata/notes000000000000.json", conn)
import_pools("/mnt/D2/metadata/pools000000000000.json", conn)

replace:

import_tags("~/danbooru_public/tags.json", conn)
import_notes("~/danbooru_public/notes.json", conn)
import_pools("~/danbooru_public/pools.json", conn)

since I don have your previous data I can't check the error.

hope you can help me out thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions