This message was deleted.
# ask-for-help
s
This message was deleted.
j
Copy code
Traceback (most recent call last):
  File "bento_build.py", line 19, in <module>
    setup_script="./bento_setup.sh"
  File "/opt/conda/lib/python3.7/site-packages/simple_di/__init__.py", line 139, in _
    return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
  File "/opt/conda/lib/python3.7/site-packages/bentoml/bentos.py", line 355, in build
    build_ctx=build_ctx,
  File "/opt/conda/lib/python3.7/site-packages/simple_di/__init__.py", line 139, in _
    return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/bento/bento.py", line 263, in create
    yaml.dump(svc.openapi_spec, f)
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/service/service.py", line 288, in openapi_spec
    return generate_spec(self)
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/service/openapi/__init__.py", line 125, in generate_spec
    components=generate_service_components(svc),
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/service/openapi/__init__.py", line 89, in generate_service_components
    output_components = api.output.openapi_components()
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/io_descriptors/json.py", line 323, in openapi_components
    return {"schemas": pydantic_components_schema(self._pydantic_model)}
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/service/openapi/utils.py", line 43, in pydantic_components_schema
    return {k: Schema(**definitions[k]) for k in sorted(definitions)}
  File "/opt/conda/lib/python3.7/site-packages/bentoml/_internal/service/openapi/utils.py", line 43, in <dictcomp>
    return {k: Schema(**definitions[k]) for k in sorted(definitions)}
TypeError: __init__() missing 1 required positional argument: 'type'
c
Hi @Jack Norman what version of BentoML is this?
j
Hi @Chaoyu, it’s
1.0.17
There actually have been some changes actually since the last time it ran successfully, but it was just a refactor. I can’t think of what would have caused this. I have a bunch of pytests that load the runners and makes sure they all are passing
The build command I’m running is:
Copy code
bentoml.bentos.build(
    service="service.py:svc",
    labels={
        "owner": "owner",
        "project": "project"
    },
    python=dict(
        requirements_txt="requirements.txt"
    ),
    docker=dict(
        dockerfile_template="Dockerfile.template",
        base_image="bento_container:latest",
        env=dict(
            BENTOML_CONFIG="src/bentoml_configuration.yaml"
        ),
        setup_script="./bento_setup.sh"
    ),
)