iris-hep / idap-200gbps-atlas

benchmarking throughput with PHYSLITE
6 stars 1 forks source link

`servicex cache list` does not work out-of-the-box #137

Open gordonwatts opened 2 months ago

gordonwatts commented 2 months ago

This is using the servicex.yaml file that is directly downloaded from the servicex dashboard at the UChicago AF.

PS C:\Users\gordo\Code\iris-hep\idap-200gbps-atlas> servicex cache list
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ c:\Users\gordo\Code\iris-hep\idap-200gbps-atlas\.venv\lib\site-packages\servicex\app\cache.py:53 │
│ in list                                                                                          │
│                                                                                                  │
│   50 │   """                                                                                     │
│   51 │   List the cached queries                                                                 │
│   52 │   """                                                                                     │
│ ❱ 53 │   sx = ServiceXClient()                                                                   │
│   54 │   cache = sx.query_cache                                                                  │
│   55 │   table = Table(title="Cached Queries")                                                   │
│   56 │   table.add_column("Title")                                                               │
│                                                                                                  │
│ c:\Users\gordo\Code\iris-hep\idap-200gbps-atlas\.venv\lib\site-packages\servicex\servicex_client │
│ .py:141 in __init__                                                                              │
│                                                                                                  │
│   138 │   │   │   backend = self.config.default_endpoint                                         │
│   139 │   │                                                                                      │
│   140 │   │   if bool(url) == bool(backend):                                                     │
│ ❱ 141 │   │   │   raise ValueError("Only specify backend or url... not both")                    │
│   142 │   │                                                                                      │
│   143 │   │   if url:                                                                            │
│   144 │   │   │   self.servicex = ServiceXAdapter(url)                                           │
│                                                                                                  │
│ ╭─────────────────────────────────────── locals ───────────────────────────────────────╮         │
│ │     backend = None                                                                   │         │
│ │ config_path = None                                                                   │         │
│ │        self = <servicex.servicex_client.ServiceXClient object at 0x0000029293AE62C0> │         │
│ │         url = None                                                                   │         │
│ ╰──────────────────────────────────────────────────────────────────────────────────────╯         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Only specify backend or url... not both