nodet / dowml

A library and command line client to use Decision Optimization on IBM Watson Machine Learning (WML). NOT SUPPORTED BY IBM.
Apache License 2.0
3 stars 0 forks source link

'dowml -r eu-gb' crashes #41

Closed nodet closed 2 years ago

nodet commented 2 years ago

When run under my default conditions (env var points to a file that specifies apikey and region), dowml -r eu-gb crashes:

Traceback (most recent call last):
  File "/Users/nodet/Documents/work/Support/2021-11-03-Global-Radio/venv/bin/dowml", line 8, in <module>
    sys.exit(interactive())
  File "/Users/nodet/Documents/work/Support/2021-11-03-Global-Radio/venv/lib/python3.8/site-packages/dowml/interactive.py", line 553, in interactive
    instance = DOWMLInteractive(args.wml_cred_file, args.space, url=args.url, region=args.region)
  File "/Users/nodet/Documents/work/Support/2021-11-03-Global-Radio/venv/lib/python3.8/site-packages/dowml/interactive.py", line 68, in __init__
    self.lib = DOWMLLib(wml_cred_file, space_id, url=url, region=region)
  File "/Users/nodet/Documents/work/Support/2021-11-03-Global-Radio/venv/lib/python3.8/site-packages/dowml/dowmllib.py", line 287, in __init__
    cred_provider = _CredentialsProvider(wml_credentials_file, url=url, region=region)
  File "/Users/nodet/Documents/work/Support/2021-11-03-Global-Radio/venv/lib/python3.8/site-packages/dowml/dowmllib.py", line 138, in __init__
    self.credentials = self.check_credentials(wml_credentials_str, url=url, region=region)
  File "/Users/nodet/Documents/work/Support/2021-11-03-Global-Radio/venv/lib/python3.8/site-packages/dowml/dowmllib.py", line 165, in check_credentials
    wml_credentials.pop(self.URL)
KeyError: 'url'