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

unable to query a db on s3 #14

@radekosmulski

Description

@radekosmulski

If I query a db on s3 asvdb --read-from=s3://<bucket_name> --print="commitHash, argNameValuePairs, result, unit" I get the following error:

Traceback (most recent call last):
  File "/home/radek/miniconda3/envs/rapids-22.10/bin/asvdb", line 33, in <module>
    sys.exit(load_entry_point('asvdb', 'console_scripts', 'asvdb')())
  File "/home/radek/workspace/asvdb/asvdb/__main__.py", line 208, in main
    fromDb = openAsvdbAtPath(args.read_from)
  File "/home/radek/workspace/asvdb/asvdb/__main__.py", line 97, in openAsvdbAtPath
    db.updateConfFile()
  File "/home/radek/workspace/asvdb/asvdb/asvdb.py", line 233, in updateConfFile
    self.__updateConfFile()
  File "/home/radek/workspace/asvdb/asvdb/asvdb.py", line 514, in __updateConfFile
    raise AttributeError("repo must be set to non-None before "
AttributeError: repo must be set to non-None before writing /tmp/tmpmnj8z4ci/asv.conf.json

If I download the contents of the bucket and query the db locally, everything works.

I execute aws s3 sync s3://<bucket_name> <dir_name> and then asvdb --read-from=<dir_name> --print="commitHash, argNameValuePairs, result, unit"` and get the result:
image

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