datarobot-community / custom-models

Various DataRobot MLOps examples
Apache License 2.0
26 stars 56 forks source link

custom-models/tracking_agents/python/ needs updating / fixing #9

Open ToonWeyens opened 2 years ago

ToonWeyens commented 2 years ago

The links in the jupyter notebook refer to nonexistent paths, such as !pip install -r /content/mlops-examples/MLOps_Agent/requirements.txt

Also, the pip install command, when you fix this to !pip install -r /content/mlops-examples/tracking_agents/python/requirements.txt, gives unresolvable conflicts

Furthermore, does client.get("mlopsInstaller") still work? I get

/usr/local/lib/python3.7/dist-packages/datarobot/client.py:125: UserWarning: Unable to authenticate to the server - are you sure the provided token of "NjE2NDQwMGUwZGFlOTllZTA4ZWEyMzUzOkg3M25tck1pWWM2eWNvSkUzbGQzV1dYSEljNjhXSmV6dHZXQkFHQUc4b0k9" and endpoint of "https://app2.datarobot.com/api/v2" are correct? Note that if you access the DataRobot webapp at `https://app.datarobot.com`, then the correct endpoint to specify would be `https://app.datarobot.com/api/v2`.
  warnings.warn(w_msg_tmpl.format(client.endpoint))
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-12a4f9c87210> in <module>()
      4 client = dr.Client(token, "{}/api/v2".format(endpoint))
      5 
----> 6 mlops_agents_tb = client.get("mlopsInstaller")
      7 with open("/content/mlops-examples/MLOps_Agent/mlops-agent.tar.gz", "wb") as f:
      8      f.write(mlops_agents_tb.content)

AttributeError: 'NoneType' object has no attribute 'get'
ToonWeyens commented 2 years ago

fixing the app2 to app already changes a lot, but there many problems down the road. I think this notebook needs some good maintenance