This message was deleted.
# ask-for-help
s
This message was deleted.
βž• 1
πŸ’Ύ 1
🍱 1
βœ… 1
l
Copy code
Traceback (most recent call last):
 File "/home/lamia/.local/bin/bentoctl", line 8, in <module>
  sys.exit(bentoctl())
 File "/home/ubuntu/miniconda3/envs/datasci/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
  return self.main(*args, **kwargs)
 File "/home/ubuntu/miniconda3/envs/datasci/lib/python3.9/site-packages/click/core.py", line 1055, in main
  rv = self.invoke(ctx)
 File "/home/ubuntu/miniconda3/envs/datasci/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
  return _process_result(sub_ctx.command.invoke(sub_ctx))
 File "/home/ubuntu/miniconda3/envs/datasci/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
  return ctx.invoke(self.callback, **ctx.params)
 File "/home/ubuntu/miniconda3/envs/datasci/lib/python3.9/site-packages/click/core.py", line 760, in invoke
  return __callback(*args, **kwargs)
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoctl/cli/utils.py", line 92, in wrapper
  return_value = func(*args, **kwargs)
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoctl/cli/utils.py", line 57, in wrapper
  return func(*args, **kwargs)
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoctl/cli/utils.py", line 26, in wrapper
  return func(*args, **kwargs)
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoctl/cli/__init__.py", line 316, in build
  generate_deployable_container(
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoctl/docker_utils.py", line 120, in generate_deployable_container
  backend.build(**buildx_args)
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoml/_internal/container/base.py", line 165, in build
  cmds.extend(self.construct_build_args(**attrs))
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoml/_internal/container/buildx.py", line 125, in construct_build_args
  if supports_attestation():
 File "/home/lamia/.local/lib/python3.9/site-packages/bentoml/_internal/container/buildx.py", line 43, in supports_attestation
  return parse(
 File "/home/lamia/.local/lib/python3.9/site-packages/packaging/version.py", line 52, in parse
  return Version(version)
 File "/home/lamia/.local/lib/python3.9/site-packages/packaging/version.py", line 198, in __init__
  raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'v0.9.1-docker'
l
I am too!
Copy code
packaging.version.InvalidVersion: Invalid version: 'v0.11.2-desktop.1'
It seems to have something to do with the docker buildx version installed on the desktop. I'm on a Mac with Docker Desktop version 4.22.1 (118664)
same issue with the aws-ec2 operator
BTW, I don't have the same issue running
bentoml build --containerize
j
@Aaron Pham do you think this is related to attestation update for BentoML's buildx?
a
can you both send me your output of
docker buildx version
?
l
Copy code
<http://github.com/docker/buildx|github.com/docker/buildx> v0.11.2-desktop.1 986ab6afe790e25f022969a18bc0111cff170bc2
l
Copy code
<http://github.com/docker/buildx|github.com/docker/buildx> v0.9.1-docker ed00243a0ce2a0aee75311b06e32d33b44729689
l
Copy code
❯ pip freeze | grep bento
bentoctl==0.4.0
bentoml==1.1.3
a
Yes, I’m working on a patch and will release this promptly
Hi there, I have released 1.1.4 to address this, thanks for the patience please try again.
l
thanks! I'm trying it now
bentoctl build ...
did work successfully me πŸ‘
πŸ‘ 2
l
I was able to successfully use bentocl build. Thanks for the fix πŸ‘
πŸ‘ 1
a
Thank you for the great feedback and good spot πŸ˜… we will try to add more test so that we wont run into this issue in the future