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

Deployment fails with Relative link is not saved #626

Open
aguschin opened this issue Mar 1, 2023 · 0 comments
Open

Deployment fails with Relative link is not saved #626

aguschin opened this issue Mar 1, 2023 · 0 comments
Labels
bug Something isn't working deploy Related to model deployment p0-critical Critical priority

Comments

@aguschin
Copy link
Contributor

aguschin commented Mar 1, 2023

reported in discord:


Hey all -- I'm trying to follow the mlem user-guide at https://mlem.ai/doc/user-guide/deploying/heroku/ and I can't pass that point:

mlem deployment run --load app.mlem \
--model=models/rf                                                              
⏳️ Loading model from models/rf.mlem
⏳️ Loading deployment from app.mlem
❌ Relative link is not saved
mlem --tb deployment run --load app.mlem --model=models/rf
⏳️ Loading model from models/rf.mlem
⏳️ Loading deployment from app.mlem
Traceback (most recent call last):
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/bin/mlem", line 8, in <module>
    sys.exit(app())
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/typer/main.py", line 328, in __call__
    raise e
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/click/core.py", line 1635, in invoke
    rv = super().invoke(ctx)
  File "/Users/pmoreira/data/scrap/prixsa-


[1:27 AM]
app/.venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/cli/main.py", line 507, in inner
    f(*iargs, **ikwargs)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/cli/main.py", line 370, in inner
    return f(*args, **kwargs)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/cli/deployment.py", line 87, in deploy_run_callback
    deploy(
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/telemetry.py", line 50, in inner
    return f(*args, **kwargs)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/api/commands.py", line 480, in deploy
    deploy_meta.get_env()
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/core/objects.py", line 1314, in get_env
    self.env_cache = link.load_link(force_type=MlemEnv)
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/core/objects.py", line 366, in load_link
    link = self.parse_link()
  File "/Users/pmoreira/data/scrap/prixsa-app/.venv/lib/python3.10/site-packages/mlem/core/objects.py", line 388, in parse_link
    raise MlemObjectNotSavedError("Relative link is not saved")
mlem.core.errors.MlemObjectNotSavedError: Relative link is not saved
$ mlem --version
🐶 MLEM Version: 0.4.5
@aguschin aguschin added bug Something isn't working deploy Related to model deployment p1-high High priority labels Mar 1, 2023
@omesser omesser added p0-critical Critical priority and removed p1-high High priority labels Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working deploy Related to model deployment p0-critical Critical priority
Projects
None yet
Development

No branches or pull requests

2 participants