Error when connecting to ML Registry

I am trying out the hopswork end-to-end pipeline example. I am getting error even if my project is enabled for the Model Serving (I am using 2.4 open source version)


​
mr = conn.get_model_registry()
​
An error was encountered:
No Models dataset exists in project TestProject, Please enable the Serving service or create the dataset manually.
Traceback (most recent call last):
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/decorators.py", line 35, in if_connected
    return fn(inst, *args, **kwargs)
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/connection.py", line 138, in get_model_registry
    return self._model_registry_api.get(project)
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/core/model_registry_api.py", line 58, in get
    _client._project_name
hopsml.client.exceptions.ModelRegistryException: No Models dataset exists in project TestProject, Please enable the Serving service or create the dataset manually.```

and when I am giving the project name in get_model_registy I m getting this error

An error was encountered:
Metadata operation error: (url: https://hopsworks.glassfish.service.consul:8182/hopsworks-api/api/project/120/modelregistries). Server response: 
HTTP code: 404, HTTP reason: Not Found, error code: 120004, error msg: Web application exception occurred, user msg: HTTP 404 Not Found
Traceback (most recent call last):
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/decorators.py", line 35, in if_connected
    return fn(inst, *args, **kwargs)
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/connection.py", line 138, in get_model_registry
    return self._model_registry_api.get(project)
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/core/model_registry_api.py", line 42, in get
    model_registries = _client._send_request("GET", path_params)
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/decorators.py", line 35, in if_connected
    return fn(inst, *args, **kwargs)
  File "/srv/hops/anaconda/envs/theenv/lib/python3.7/site-packages/hopsml/client/base.py", line 147, in _send_request
    raise exceptions.RestAPIError(url, response)
hopsml.client.exceptions.RestAPIError: Metadata operation error: (url: https://hopsworks.glassfish.service.consul:8182/hopsworks-api/api/project/120/modelregistries). Server response: 
HTTP code: 404, HTTP reason: Not Found, error code: 120004, error msg: Web application exception occurred, user msg: HTTP 404 Not Found

Hi @ravjot28!

This library is still in the development phase and will not be released until we also release hopsworks 2.5.0 which is planned in a few weeks. The library is not compatible with a 2.4.0 cluster.

Best regards,
Robin