rapidsai / asvdb

Apache License 2.0
9 stars 4 forks source link

unable to query a db on s3 #14

Open radekosmulski opened 1 year ago

radekosmulski commented 1 year ago

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= --print="commitHash, argNameValuePairs, result, unit"` and get the result: image