Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.
This repository was archived by the owner on May 7, 2024. It is now read-only.

Dict issue while downloading #11

Description

@nightlessbaron
Cloning project:BETT-773F
Traceback (most recent call last):
  File "/scratch/workspace/vpimpalkhute_umass_edu-time-series/clone-anonymous-github/src/download.py", line 186, in <module>
    download_repo(args.__dict__)
  File "/scratch/workspace/vpimpalkhute_umass_edu-time-series/clone-anonymous-github/src/download.py", line 144, in download_repo
    sizes = [s[1] for s in get_dict_vals(file_list, ['size'])]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/scratch/workspace/vpimpalkhute_umass_edu-time-series/clone-anonymous-github/src/download.py", line 144, in <listcomp>
    sizes = [s[1] for s in get_dict_vals(file_list, ['size'])]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/scratch/workspace/vpimpalkhute_umass_edu-time-series/clone-anonymous-github/src/download.py", line 28, in get_dict_vals
    for i, j in test_dict.items():
                ^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'items'

Reproduce the error:

  1. git clone https://github.com/fedebotu/clone-anonymous-github.git && cd clone-anonymous-github
  2. pip install -r requirements.txt
  3. python3 src/download.py --url https://anonymous.4open.science/r/BETT-773F/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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