This message was deleted.
# ask-for-help
s
This message was deleted.
m
full stacktrace:
Copy code
Traceback (most recent call last):
  File "/Users/mikekuhlen/.virtualenvs/tst/bin/bentoml", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml_cli/utils.py", line 362, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml_cli/utils.py", line 333, in wrapper
    return_value = func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml_cli/utils.py", line 290, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/click/decorators.py", line 45, in new_func
    return f(get_current_context().obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml_cli/bentos.py", line 267, in pull
    cloud_client.pull_bento(
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/simple_di/__init__.py", line 139, in _
    return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml/_internal/cloud/bentocloud.py", line 427, in pull_bento
    return self._do_pull_bento(
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/simple_di/__init__.py", line 139, in _
    return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml/_internal/cloud/bentocloud.py", line 493, in _do_pull_bento
    list(futures)
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 619, in result_iterator
    yield _result_or_cancel(fs.pop())
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 317, in _result_or_cancel
    return fut.result(timeout)
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml/_internal/cloud/bentocloud.py", line 484, in pull_model
    self._do_pull_model(
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/simple_di/__init__.py", line 139, in _
    return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/bentoml/_internal/cloud/bentocloud.py", line 986, in _do_pull_model
    with httpx.stream("GET", presigned_download_url) as response:
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/httpx/_api.py", line 160, in stream
    with client.stream(
  File "/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/httpx/_client.py", line 857, in stream
    request = self.build_request(
              ^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/httpx/_client.py", line 345, in build_request
    url = self._merge_url(url)
          ^^^^^^^^^^^^^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/httpx/_client.py", line 375, in _merge_url
    merge_url = URL(url)
                ^^^^^^^^
  File "/Users/mikekuhlen/.virtualenvs/tst/lib/python3.11/site-packages/httpx/_urls.py", line 119, in __init__
    raise TypeError(
TypeError: Invalid type for url.  Expected str or httpx.URL, got <class 'NoneType'>: None
j
Unfortunately, we do not have fukll backwards compatibility for yatai for 1.2. If you need to interact with yatai you may have to use
1.1
m
Ugh. 😨 That's equivalent to preventing me from ever upgrading beyond 1.1! Is this intended to be a permanent state? Very problematic...
j
@Chaoyu would you like to comment on this?
m
Your blog post about 1.2 begins with "Before we dive in, we want to reassure you that this release maintains full backward compatibility." That doesn't seem quite accurate...
Maybe it would be worth having a broader conversation about yatai? I've seen other users ask about yatai compatibility going forward (see for example here and here). So far there hasn't been any communication around deprecation, and what that would mean for existing users of the system.
I mean, I get that you're trying to steer users towards your commercial solution BentoCloud. But a sudden deprecation of an integral part of the existing ecosystem (in a minor version update no less!) seems a bit extreme, no? Preventing existing yatai users from upgrading past 1.1 is quite user unfriendly. What about future bug fixes or library incompatibilities (like we saw with cattrs or starlette)? Lastly, this change has not been transparently communicated at all.
c
For others looking for BentoML 1.2 on Yatai, see the latest reply here: https://bentoml.slack.com/archives/CKRANBHPH/p1708653747124299?thread_ts=1707468846.683729&amp;cid=CKRANBHPH We are actively working on bringing BentoML 1.2 to Yatai: 1. Add 1.2 support in current Yatai 1.x: https://github.com/bentoml/Yatai/issues/505 2. You may also check out our proposal for Yatai 2.0 here: https://github.com/bentoml/Yatai/issues/504 New channel #yatai has just been setup for those interested in contributing to the project or sharing feedbacks!