Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Bug: Validation error when loading linked model #668

Open
igordertigor opened this issue Apr 28, 2023 · 0 comments
Open

Bug: Validation error when loading linked model #668

igordertigor opened this issue Apr 28, 2023 · 0 comments
Labels
bug Something isn't working core Related to things in mlem.core serialization Dumping and loading Python objects

Comments

@igordertigor
Copy link

I linked a model from a different repository using

$ mlem link --rev=feature_engine@v0.0.2 --sp="https://github.com/myorg/myrepo/" models/feature_engine models/feature_engine

However, I can't load it:

import mlem.api
model = mlem.api.load('models/feature_engine')

gives the following (not very useful) error message:

INFO: Trying to load all models
ERROR: Failed loading model at models/feature_engine.mlem: 1 validation error for ParsingModel[MlemObject]
__root__ -> __root__ -> model_type
  extra fields not permitted (type=value_error.extra)
ERROR: Failed

Importantly, the model loads fine if I am directly inside the myrepo repository (except for a warning from the requests library).

The mlem-link file is small, so I'm posting it here, in case it's useful:

link_type: model
object_type: link
path: models/feature_engine.mlem
project: https://github.com/myorg/myrepo/
rev: feature-engine@v0.0.2
@aguschin aguschin added bug Something isn't working core Related to things in mlem.core serialization Dumping and loading Python objects labels Apr 28, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working core Related to things in mlem.core serialization Dumping and loading Python objects
Projects
None yet
Development

No branches or pull requests

2 participants