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

Bug: Validation error when loading linked model #668

@igordertigor

Description

@igordertigor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoreRelated to things in mlem.coreserializationDumping and loading Python objects

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions