deeplearninc / auger-ai

Auger python API and auger cli
MIT License
0 stars 1 forks source link

'HubApi' object has no attribute 'hub_client' #8

Closed IgorFlint closed 5 years ago

IgorFlint commented 5 years ago

Trying to deploy model locally got:

(auger-ai) [03:09] flint@flint-desktop:~/projects/deeplearninc/auger-ai/igor_iris_augerai$ augerai model deploy 05A611073214408 --locally
Downloading model 05A611073214408
'HubApi' object has no attribute 'hub_client'
IgorFlint commented 5 years ago

Traceback shows that the problem is related to a2ml repo (auger-refactoring branch)

Traceback (most recent call last):
  File "/home/flint/projects/deeplearninc/auger-ai/auger/cli/commands/cmd_model.py", line 19, in deploy
    Model(self.ctx, project).deploy(model_id, locally)
  File "/home/flint/projects/deeplearninc/auger-ai/auger/api/model.py", line 14, in deploy
    ModelDeploy(self.ctx, self.project).execute(model_id, locally)
  File "/home/flint/projects/deeplearninc/auger-ai/auger/api/mparts/deploy.py", line 20, in execute
    self.depoly_model_locally(model_id)
  File "/home/flint/projects/deeplearninc/auger-ai/auger/api/mparts/deploy.py", line 43, in depoly_model_locally
    pipeline_file_properties = pipeline_file_api.create(model_id)
  File "/home/flint/projects/deeplearninc/a2ml/a2ml/api/auger/hub/pipeline_file.py", line 20, in create
    ['not_requested', 'pending'])
  File "/home/flint/projects/deeplearninc/a2ml/a2ml/api/auger/hub/base.py", line 104, in _call_create
    'create_%s' % self.api_request_path, params)
  File "/home/flint/projects/deeplearninc/a2ml/a2ml/api/auger/hub/hub_api.py", line 44, in call_hub_api
    result = self.call_hub_api_ex(method, params)
  File "/home/flint/projects/deeplearninc/a2ml/a2ml/api/auger/hub/hub_api.py", line 41, in call_hub_api_ex
    return getattr(self.hub_client, method)(**params)
AttributeError: 'HubApi' object has no attribute 'hub_client'

For some reason hub_client was not set (HubApi.setup() wasn't caled) at the moment of depoly_model_locally call.

vlad-dplrn commented 5 years ago

Can't reproduce, closing for now