Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Model Registry problem with sklearn log method mlflow version 1.4.0 #2037

Closed
echarso opened this issue Nov 3, 2019 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@echarso
Copy link

echarso commented Nov 3, 2019

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    MAc OS Siera 10.12.6
  • MLflow installed from (source or binary): source via pip3 install
  • MLflow version (run mlflow --version): 1.4.0
  • Python version:3.7.3

Hi all ,

I have launched the mlflow server -- host 0.0.0.0
and in my python3 script I am importing the followings and also loging the model at the end ::

import mlflow
import mlflow.sklearn
mlflow.set_tracking_uri('http://127.0.0.1:5000');

mlflow.sklearn.log_model(clf, "model_2")

In Mlflow UI everything looks OK but when I am going to register the model I get a server internal error notice.

In addition to that the server logs are the following:

2019/11/03 12:49:50 ERROR mlflow.server: Exception on /ajax-api/2.0/preview/mlflow/model-versions/search [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python3.7/site-packages/mlflow/server/handlers.py", line 137, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/mlflow/server/handlers.py", line 581, in _search_model_versions
model_versions_detailed = _get_model_registry_store().search_model_versions(
AttributeError: 'NoneType' object has no attribute 'search_model_versions'

@echarso echarso added the bug Something isn't working label Nov 3, 2019
@harupy
Copy link
Member

harupy commented Nov 3, 2019

Duplicate of #1975

@harupy
Copy link
Member

harupy commented Nov 3, 2019

@echarso
Model Registry does not support file-based stores.

https://github.com/mlflow/mlflow/blob/master/mlflow/server/handlers.py#L60

@echarso
Copy link
Author

echarso commented Nov 3, 2019

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants