zenml-io / zenml

ZenML ๐Ÿ™: The bridge between ML and Ops. https://zenml.io.
https://zenml.io
Apache License 2.0
3.95k stars 430 forks source link

[BUG]: FileNotFoundError: [WinError 2] The system cannot find the file specified [bentoml-deployer demo] #1595

Closed Yuanlim0919 closed 1 year ago

Yuanlim0919 commented 1 year ago

Contact Details [Optional]

No response

System Information

ZENML_LOCAL_VERSION: 0.38.0 ZENML_SERVER_VERSION: 0.38.0 ZENML_SERVER_DATABASE: mysql ZENML_SERVER_DEPLOYMENT_TYPE: other ZENML_CONFIG_DIR: C:\Users\acer\AppData\Roaming\zenml ZENML_LOCAL_STORE_DIR: C:\Users\acer\AppData\Roaming\zenml\local_stores ZENML_SERVER_URL: http://localhost:8080 ZENML_ACTIVE_REPOSITORY_ROOT: C:\Users\acer PYTHON_VERSION: 3.10.11 ENVIRONMENT: native SYSTEM_INFO: {'os': 'windows', 'windows_version_release': '10', 'windows_version': '10.0.19045', 'windows_version_service_pack': 'SP0', 'windows_version_os_type': 'Multiprocessor Free'} ACTIVE_WORKSPACE: default ACTIVE_STACK: stack_test ACTIVE_USER: admin TELEMETRY_STATUS: enabled ANALYTICS_CLIENT_ID: 20d4e795-cb65-407f-b728-45875558b544 ANALYTICS_USER_ID: ff84ca8e-83c4-4cd4-bcd4-f2992d4b3147 ANALYTICS_SERVER_ID: a679abec-f1d4-4296-9aed-9203abbe644f INTEGRATIONS: ['airflow', 'aws', 'bentoml', 'graphviz', 'kaniko', 'pillow', 'pytorch', 's3', 'scipy', 'sklearn'] PACKAGES: {'pip': '22.2', 'babel': '2.12.1', 'configupdater': '3.1.1', 'deprecated': '1.2.13', 'flask': '2.2.5', 'flask-appbuilder': '4.1.4', 'flask-babel': '2.0.0', 'flask-caching': '2.0.2', 'flask-jwt-extended': '4.5.2', 'flask-login': '0.6.2', 'flask-sqlalchemy': '2.5.1', 'flask-wtf': '1.1.1', 'gitpython': '3.1.31', 'jinja2': '3.1.2', 'mako': '1.2.4', 'markdown': '3.4.3', 'markupsafe': '2.1.2', 'pillow': '9.5.0', 'pyjwt': '2.7.0', 'pymysql': '1.0.3', 'pyyaml': '5.4.1', 'pygments': '2.15.1', 'sqlalchemy': '1.4.41', 'sqlalchemy-jsonfield': '1.0.1.post0', 'sqlalchemy-utils': '0.38.3', 'send2trash': '1.8.2', 'wtforms': '3.0.1', 'werkzeug': '2.2.3', 'aiobotocore': '2.4.2', 'aiohttp': '3.8.4', 'aioitertools': '0.11.0', 'aiosignal': '1.3.1', 'alembic': '1.8.1', 'analytics-python': '1.4.post1', 'anyio': '3.6.2', 'apache-airflow': '2.4.3', 'apache-airflow-providers-common-sql': '1.5.1', 'apache-airflow-providers-ftp': '3.4.1', 'apache-airflow-providers-http': '4.4.1', 'apache-airflow-providers-imap': '3.2.1', 'apache-airflow-providers-sqlite': '3.4.1', 'apispec': '3.3.2', 'appdirs': '1.4.4', 'argcomplete': '3.0.8', 'argon2-cffi': '21.3.0', 'argon2-cffi-bindings': '21.2.0', 'arrow': '1.2.3', 'asgiref': '3.7.1', 'asttokens': '2.2.1', 'async-timeout': '4.0.2', 'attrs': '22.2.0', 'backcall': '0.2.0', 'backoff': '1.10.0', 'bcrypt': '4.0.1', 'beautifulsoup4': '4.12.2', 'bentoml': '1.0.20', 'bleach': '6.0.0', 'blinker': '1.6.2', 'boto3': '1.26.144', 'botocore': '1.27.59', 'build': '0.10.0', 'cachelib': '0.9.0', 'cattrs': '22.2.0', 'certifi': '2023.5.7', 'cffi': '1.15.1', 'charset-normalizer': '3.1.0', 'circus': '0.18.0', 'click': '8.1.3', 'click-option-group': '0.5.5', 'click-params': '0.3.0', 'clickclick': '20.10.2', 'cloudpickle': '2.2.1', 'colorama': '0.4.6', 'colorlog': '4.8.0', 'comm': '0.1.3', 'commonmark': '0.9.1', 'connexion': '2.14.2', 'contextlib2': '21.6.0', 'contourpy': '1.0.7', 'cron-descriptor': '1.4.0', 'croniter': '1.3.15', 'cryptography': '41.0.1', 'cycler': '0.11.0', 'databricks-cli': '0.17.7', 'debugpy': '1.6.7', 'decorator': '5.1.1', 'deepmerge': '1.1.0', 'defusedxml': '0.7.1', 'dill': '0.3.6', 'distro': '1.8.0', 'dnspython': '2.3.0', 'docker': '6.0.1', 'docutils': '0.20.1', 'ecdsa': '0.18.0', 'email-validator': '1.3.1', 'entrypoints': '0.4', 'exceptiongroup': '1.1.1', 'executing': '1.2.0', 'fastapi': '0.75.2', 'fastapi-utils': '0.2.1', 'fastjsonschema': '2.16.3', 'filelock': '3.12.0', 'flask-session': '0.5.0', 'fonttools': '4.39.4', 'fqdn': '1.5.1', 'frozenlist': '1.3.3', 'fs': '2.4.16', 'fsspec': '2022.11.0', 'gitdb': '4.0.10', 'google-pasta': '0.2.0', 'graphviz': '0.20.1', 'greenlet': '2.0.2', 'grpcio': '1.54.2', 'grpcio-health-checking': '1.54.2', 'gunicorn': '20.1.0', 'h11': '0.14.0', 'httpcore': '0.17.2', 'httplib2': '0.19.1', 'httptools': '0.5.0', 'httpx': '0.24.1', 'idna': '3.4', 'importlib-metadata': '4.13.0', 'inflection': '0.5.1', 'ipykernel': '6.23.0', 'ipython': '8.13.2', 'ipython-genutils': '0.2.0', 'ipywidgets': '7.7.5', 'isoduration': '20.11.0', 'itsdangerous': '2.1.2', 'jedi': '0.18.2', 'jmespath': '1.0.1', 'joblib': '1.2.0', 'jsonpointer': '2.3', 'jsonschema': '4.17.3', 'jupyter-client': '8.2.0', 'jupyter-core': '5.3.0', 'jupyter-events': '0.6.3', 'jupyter-server': '2.5.0', 'jupyter-server-terminals': '0.4.4', 'jupyterlab-pygments': '0.2.2', 'jupyterlab-widgets': '1.1.4', 'kiwisolver': '1.4.4', 'lazy-object-proxy': '1.9.0', 'linkify-it-py': '2.0.2', 'lockfile': '0.12.2', 'markdown-it-py': '2.2.0', 'marshmallow': '3.19.0', 'marshmallow-enum': '1.5.1', 'marshmallow-oneofschema': '3.0.1', 'marshmallow-sqlalchemy': '0.26.1', 'matplotlib': '3.7.1', 'matplotlib-inline': '0.1.6', 'mdit-py-plugins': '0.3.5', 'mdurl': '0.1.2', 'mistune': '2.0.5', 'mlflow': '2.3.1', 'monotonic': '1.6', 'mpmath': '1.3.0', 'multidict': '6.0.4', 'multiprocess': '0.70.14', 'nbclassic': '1.0.0', 'nbclient': '0.7.4', 'nbconvert': '7.4.0', 'nbformat': '5.8.0', 'nest-asyncio': '1.5.6', 'networkx': '3.1', 'notebook': '6.5.4', 'notebook-shim': '0.2.3', 'numpy': '1.24.3', 'oauthlib': '3.2.2', 'opentelemetry-api': '1.14.0', 'opentelemetry-instrumentation': '0.35b0', 'opentelemetry-instrumentation-aiohttp-client': '0.35b0', 'opentelemetry-instrumentation-asgi': '0.35b0', 'opentelemetry-instrumentation-grpc': '0.35b0', 'opentelemetry-sdk': '1.14.0', 'opentelemetry-semantic-conventions': '0.35b0', 'opentelemetry-util-http': '0.35b0', 'orjson': '3.8.14', 'packaging': '23.1', 'pandas': '2.0.1', 'pandocfilters': '1.5.0', 'parso': '0.8.3', 'passlib': '1.7.4', 'pathos': '0.3.0', 'pathspec': '0.9.0', 'pendulum': '2.1.2', 'pickleshare': '0.7.5', 'pip-requirements-parser': '32.0.1', 'pip-tools': '6.13.0', 'platformdirs': '3.5.0', 'pluggy': '1.0.0', 'pox': '0.3.2', 'ppft': '1.7.6.6', 'prison': '0.2.1', 'prometheus-client': '0.16.0', 'prompt-toolkit': '3.0.38', 'protobuf': '3.20.3', 'protobuf3-to-dict': '0.1.5', 'psutil': '5.9.5', 'pure-eval': '0.2.2', 'pyarrow': '11.0.0', 'pyasn1': '0.5.0', 'pycparser': '2.21', 'pydantic': '1.10.7', 'pyngrok': '6.0.0', 'pynvml': '11.5.0', 'pyparsing': '2.4.7', 'pyproject-hooks': '1.0.0', 'pyrsistent': '0.19.3', 'python-daemon': '3.0.1', 'python-dateutil': '2.8.2', 'python-dotenv': '1.0.0', 'python-jose': '3.3.0', 'python-json-logger': '2.0.7', 'python-multipart': '0.0.6', 'python-nvd3': '0.15.0', 'python-slugify': '8.0.1', 'python-terraform': '0.10.1', 'pytz': '2023.3', 'pytzdata': '2020.1', 'pywin32': '306', 'pywinpty': '2.0.10', 'pyzmq': '25.0.2', 'querystring-parser': '1.2.4', 'requests': '2.30.0', 'requests-toolbelt': '1.0.0', 'rfc3339-validator': '0.1.4', 'rfc3986-validator': '0.1.1', 'rich': '12.6.0', 'rsa': '4.9', 's3fs': '2022.11.0', 's3transfer': '0.6.1', 'sagemaker': '2.117.0', 'schema': '0.7.5', 'scikit-learn': '1.2.2', 'scipy': '1.10.1', 'setproctitle': '1.3.2', 'setuptools': '66.0.0', 'simple-di': '0.1.5', 'six': '1.16.0', 'smdebug-rulesconfig': '1.0.1', 'smmap': '5.0.0', 'sniffio': '1.3.0', 'soupsieve': '2.4.1', 'sqlalchemy2-stubs': '0.0.2a34', 'sqlmodel': '0.0.8', 'sqlparse': '0.4.4', 'stack-data': '0.6.2', 'starlette': '0.17.1', 'swagger-ui-bundle': '0.0.9', 'sympy': '1.12', 'tabulate': '0.9.0', 'tenacity': '8.2.2', 'termcolor': '2.3.0', 'terminado': '0.17.1', 'text-unidecode': '1.3', 'threadpoolctl': '3.1.0', 'tinycss2': '1.2.1', 'tomli': '2.0.1', 'torch': '2.0.1', 'torchvision': '0.15.2', 'tornado': '6.3.1', 'traitlets': '5.9.0', 'typing-extensions': '4.5.0', 'tzdata': '2023.3', 'uc-micro-py': '1.0.2', 'unicodecsv': '0.14.1', 'uri-template': '1.2.0', 'urllib3': '1.26.15', 'uvicorn': '0.17.6', 'validators': '0.18.2', 'waitress': '2.1.2', 'watchfiles': '0.19.0', 'watchgod': '0.8.2', 'wcwidth': '0.2.6', 'webcolors': '1.13', 'webencodings': '0.5.1', 'websocket-client': '1.5.1', 'websockets': '11.0.3', 'wheel': '0.38.4', 'widgetsnbextension': '3.6.4', 'wrapt': '1.15.0', 'yarl': '1.9.2', 'zenml': '0.38.0', 'zipp': '3.15.0'} โ†[33mThe stack โ†[0mโ†[33mstack_testโ†[33m contains components that require building Docker images. Older versions of ZenML always built these images locally, but since version 0.32.0 this behavior can be configured using the โ†[0mโ†[33mimage_builderโ†[33m stack component. This stack will temporarily default to a local image builder that mirrors the previous behavior, but this will be removed in future versions of ZenML. Please add an image builder to this stack: โ†[0mโ†[33mzenml image-builder register ... zenml stack update 0ac3a99e-9f44-4917-8a2c-163ffede74c7 -i โ†[33mโ†[0m

CURRENT STACK

Name: stack_test ID: 0ac3a99e-9f44-4917-8a2c-163ffede74c7 Shared: No User: admin / ff84ca8e-83c4-4cd4-bcd4-f2992d4b3147 Workspace: default / e6d3ad08-426e-4cbb-a367-fd816184cb7f

ORCHESTRATOR: default

Name: default ID: 7a5cbef0-12ee-4532-be7f-3471b65383fe Type: orchestrator Flavor: local Configuration: {} Shared: No User: admin / ff84ca8e-83c4-4cd4-bcd4-f2992d4b3147 Workspace: default / e6d3ad08-426e-4cbb-a367-fd816184cb7f

ARTIFACT_STORE: default

Name: default ID: dd539621-c548-4563-9f86-23e333d7affa Type: artifact_store Flavor: local Configuration: {'path': ''} Shared: No User: admin / ff84ca8e-83c4-4cd4-bcd4-f2992d4b3147 Workspace: default / e6d3ad08-426e-4cbb-a367-fd816184cb7f

MODEL_DEPLOYER: bentoml

Name: bentoml ID: a7a1bb0a-bd8d-49f4-bb33-2bbb3be9778d Type: model_deployer Flavor: bentoml Configuration: {'service_path': ''} Shared: No User: admin / ff84ca8e-83c4-4cd4-bcd4-f2992d4b3147 Workspace: default / e6d3ad08-426e-4cbb-a367-fd816184cb7f

EXPERIMENT_TRACKER: mlflow

Name: mlflow ID: 280d3e6b-b94e-4f12-977e-c846f8471098 Type: experiment_tracker Flavor: mlflow Configuration: {'experiment_name': None, 'nested': False, 'tags': {}, 'tracking_uri': None, 'tracking_username': '****', 'tracking_password': '****', 'tracking_token': '****', 'tracking_insecure_tls': False, 'databricks_host': None} Shared: No User: admin / ff84ca8e-83c4-4cd4-bcd4-f2992d4b3147 Workspace: default / e6d3ad08-426e-4cbb-a367-fd816184cb7f

What happened?

I pulled the [bentoml-deployment] example repository into my local desktop, and I created a stack with default orchestrator, default artifact-store and bentoml deployer. When I execute run.py, the execution of data loading step and training step is normal, when it comes bento_builder step, following error occurs:

FileNotFoundError: [WinError 2] The system cannot find the file specified

Reproduction steps

No response

Relevant log output

Failed to run step bento_builder.
Pipeline run training_fashion_mnist-2023_06_05-09_25_28_938428 failed.
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Traceback (most recent call last) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\runpy.py:196 in _run_module_as_main                       โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   193 โ”‚   main_globals = sys.modules["__main__"].__dict__                                        โ”‚
โ”‚   194 โ”‚   if alter_argv:                                                                         โ”‚
โ”‚   195 โ”‚   โ”‚   sys.argv[0] = mod_spec.origin                                                      โ”‚
โ”‚ โฑ 196 โ”‚   return _run_code(code, main_globals, None,                                             โ”‚
โ”‚   197 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚    "__main__", mod_spec)                                                 โ”‚
โ”‚   198                                                                                            โ”‚
โ”‚   199 def run_module(mod_name, init_globals=None,                                                โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\runpy.py:86 in _run_code                                  โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    83 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚      __loader__ = loader,                                                โ”‚
โ”‚    84 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚      __package__ = pkg_name,                                             โ”‚
โ”‚    85 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚      __spec__ = mod_spec)                                                โ”‚
โ”‚ โฑ  86 โ”‚   exec(code, run_globals)                                                                โ”‚
โ”‚    87 โ”‚   return run_globals                                                                     โ”‚
โ”‚    88                                                                                            โ”‚
โ”‚    89 def _run_module_code(code, init_globals=None,                                              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy\__main โ”‚
โ”‚ __.py:39 in <module>                                                                             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   36 โ”‚                                                                                           โ”‚
โ”‚   37 โ”‚   from debugpy.server import cli                                                          โ”‚
โ”‚   38 โ”‚                                                                                           โ”‚
โ”‚ โฑ 39 โ”‚   cli.main()                                                                              โ”‚
โ”‚   40                                                                                             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy/..\deb โ”‚
โ”‚ ugpy\server\cli.py:430 in main                                                                   โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   427 โ”‚   โ”‚   โ”‚   "code": run_code,                                                              โ”‚
โ”‚   428 โ”‚   โ”‚   โ”‚   "pid": attach_to_pid,                                                          โ”‚
โ”‚   429 โ”‚   โ”‚   }[options.target_kind]                                                             โ”‚
โ”‚ โฑ 430 โ”‚   โ”‚   run()                                                                              โ”‚
โ”‚   431 โ”‚   except SystemExit as exc:                                                              โ”‚
โ”‚   432 โ”‚   โ”‚   log.reraise_exception(                                                             โ”‚
โ”‚   433 โ”‚   โ”‚   โ”‚   "Debuggee exited via SystemExit: {0!r}", exc.code, level="debug"               โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy/..\deb โ”‚
โ”‚ ugpy\server\cli.py:284 in run_file                                                               โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   281 โ”‚   log.describe_environment("Pre-launch environment:")                                    โ”‚
โ”‚   282 โ”‚                                                                                          โ”‚
โ”‚   283 โ”‚   log.info("Running file {0!r}", target)                                                 โ”‚
โ”‚ โฑ 284 โ”‚   runpy.run_path(target, run_name="__main__")                                            โ”‚
โ”‚   285                                                                                            โ”‚
โ”‚   286                                                                                            โ”‚
โ”‚   287 def run_module():                                                                          โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy\_vendo โ”‚
โ”‚ red\pydevd\_pydevd_bundle\pydevd_runpy.py:321 in run_path                                        โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   318 โ”‚   โ”‚   # Not a valid sys.path entry, so run the code directly                             โ”‚
โ”‚   319 โ”‚   โ”‚   # execfile() doesn't help as we want to allow compiled files                       โ”‚
โ”‚   320 โ”‚   โ”‚   code, fname = _get_code_from_file(run_name, path_name)                             โ”‚
โ”‚ โฑ 321 โ”‚   โ”‚   return _run_module_code(code, init_globals, run_name,                              โ”‚
โ”‚   322 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   pkg_name=pkg_name, script_name=fname)                      โ”‚
โ”‚   323 โ”‚   else:                                                                                  โ”‚
โ”‚   324 โ”‚   โ”‚   # Finder is defined for path, so add it to                                         โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy\_vendo โ”‚
โ”‚ red\pydevd\_pydevd_bundle\pydevd_runpy.py:135 in _run_module_code                                โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   132 โ”‚   fname = script_name if mod_spec is None else mod_spec.origin                           โ”‚
โ”‚   133 โ”‚   with _TempModule(mod_name) as temp_module, _ModifiedArgv0(fname):                      โ”‚
โ”‚   134 โ”‚   โ”‚   mod_globals = temp_module.module.__dict__                                          โ”‚
โ”‚ โฑ 135 โ”‚   โ”‚   _run_code(code, mod_globals, init_globals,                                         โ”‚
โ”‚   136 โ”‚   โ”‚   โ”‚   โ”‚     mod_name, mod_spec, pkg_name, script_name)                               โ”‚
โ”‚   137 โ”‚   # Copy the globals of the temporary module, as they                                    โ”‚
โ”‚   138 โ”‚   # may be cleared when the temporary module goes away                                   โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy\_vendo โ”‚
โ”‚ red\pydevd\_pydevd_bundle\pydevd_runpy.py:124 in _run_code                                       โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   121 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚      __loader__=loader,                                                  โ”‚
โ”‚   122 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚      __package__=pkg_name,                                               โ”‚
โ”‚   123 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚      __spec__=mod_spec)                                                  โ”‚
โ”‚ โฑ 124 โ”‚   exec(code, run_globals)                                                                โ”‚
โ”‚   125 โ”‚   return run_globals                                                                     โ”‚
โ”‚   126                                                                                            โ”‚
โ”‚   127                                                                                            โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ d:\Internship@Webcomm\ieee-fraud-detection\zenml_examples\bentoml_deployment\run.py:85 in        โ”‚
โ”‚ <module>                                                                                         โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   82                                                                                             โ”‚
โ”‚   83                                                                                             โ”‚
โ”‚   84 if __name__ == "__main__":                                                                  โ”‚
โ”‚ โฑ 85 โ”‚   main()                                                                                  โ”‚
โ”‚   86                                                                                             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\click\core.py:1130 in __call__              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   1127 โ”‚                                                                                         โ”‚
โ”‚   1128 โ”‚   def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any:                           โ”‚
โ”‚   1129 โ”‚   โ”‚   """Alias for :meth:`main`."""                                                     โ”‚
โ”‚ โฑ 1130 โ”‚   โ”‚   return self.main(*args, **kwargs)                                                 โ”‚
โ”‚   1131                                                                                           โ”‚
โ”‚   1132                                                                                           โ”‚
โ”‚   1133 class Command(BaseCommand):                                                               โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\click\core.py:1055 in main                  โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   1052 โ”‚   โ”‚   try:                                                                              โ”‚
โ”‚   1053 โ”‚   โ”‚   โ”‚   try:                                                                          โ”‚
โ”‚   1054 โ”‚   โ”‚   โ”‚   โ”‚   with self.make_context(prog_name, args, **extra) as ctx:                  โ”‚
โ”‚ โฑ 1055 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   rv = self.invoke(ctx)                                                 โ”‚
โ”‚   1056 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   if not standalone_mode:                                               โ”‚
โ”‚   1057 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   return rv                                                         โ”‚
โ”‚   1058 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   # it's not safe to `ctx.exit(rv)` here!                               โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\click\core.py:1404 in invoke                โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   1401 โ”‚   โ”‚   โ”‚   echo(style(message, fg="red"), err=True)                                      โ”‚
โ”‚   1402 โ”‚   โ”‚                                                                                     โ”‚
โ”‚   1403 โ”‚   โ”‚   if self.callback is not None:                                                     โ”‚
โ”‚ โฑ 1404 โ”‚   โ”‚   โ”‚   return ctx.invoke(self.callback, **ctx.params)                                โ”‚
โ”‚   1405 โ”‚                                                                                         โ”‚
โ”‚   1406 โ”‚   def shell_complete(self, ctx: Context, incomplete: str) -> t.List["CompletionItem"]:  โ”‚
โ”‚   1407 โ”‚   โ”‚   """Return a list of completions for the incomplete value. Looks                   โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\click\core.py:760 in invoke                 โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    757 โ”‚   โ”‚                                                                                     โ”‚
โ”‚    758 โ”‚   โ”‚   with augment_usage_errors(__self):                                                โ”‚
โ”‚    759 โ”‚   โ”‚   โ”‚   with ctx:                                                                     โ”‚
โ”‚ โฑ  760 โ”‚   โ”‚   โ”‚   โ”‚   return __callback(*args, **kwargs)                                        โ”‚
โ”‚    761 โ”‚                                                                                         โ”‚
โ”‚    762 โ”‚   def forward(                                                                          โ”‚
โ”‚    763 โ”‚   โ”‚   __self, __cmd: "Command", *args: t.Any, **kwargs: t.Any  # noqa: B902             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ d:\Internship@Webcomm\ieee-fraud-detection\zenml_examples\bentoml_deployment\run.py:69 in main   โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   66 โ”‚   โ”‚   โ”‚   ),                                                                              โ”‚
โ”‚   67 โ”‚   โ”‚   โ”‚   bento_builder=bento_builder,                                                    โ”‚
โ”‚   68 โ”‚   โ”‚   โ”‚   deployer=bentoml_model_deployer,                                                โ”‚
โ”‚ โฑ 69 โ”‚   โ”‚   ).run()                                                                             โ”‚
โ”‚   70 โ”‚   if predict:                                                                             โ”‚
โ”‚   71 โ”‚   โ”‚   inference_fashion_mnist(                                                            โ”‚
โ”‚   72 โ”‚   โ”‚   โ”‚   inference_loader=inference_loader(),                                            โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\pipelines\base_pipeline.py:602 in run โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    599 โ”‚   โ”‚   โ”‚   # unexpected behavior                                                         โ”‚
โ”‚    600 โ”‚   โ”‚   โ”‚   constants.SHOULD_PREVENT_PIPELINE_EXECUTION = True                            โ”‚
โ”‚    601 โ”‚   โ”‚   โ”‚   try:                                                                          โ”‚
โ”‚ โฑ  602 โ”‚   โ”‚   โ”‚   โ”‚   stack.deploy_pipeline(deployment=deployment_model)                        โ”‚
โ”‚    603 โ”‚   โ”‚   โ”‚   finally:                                                                      โ”‚
โ”‚    604 โ”‚   โ”‚   โ”‚   โ”‚   constants.SHOULD_PREVENT_PIPELINE_EXECUTION = False                       โ”‚
โ”‚    605                                                                                           โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\stack\stack.py:864 in deploy_pipeline โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    861 โ”‚   โ”‚   Returns:                                                                          โ”‚
โ”‚    862 โ”‚   โ”‚   โ”‚   The return value of the call to `orchestrator.run_pipeline(...)`.             โ”‚
โ”‚    863 โ”‚   โ”‚   """                                                                               โ”‚
โ”‚ โฑ  864 โ”‚   โ”‚   return self.orchestrator.run(deployment=deployment, stack=self)                   โ”‚
โ”‚    865 โ”‚                                                                                         โ”‚
โ”‚    866 โ”‚   def _get_active_components_for_step(                                                  โ”‚
โ”‚    867 โ”‚   โ”‚   self, step_config: "StepConfiguration"                                            โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\base_orchestrator.py:16 โ”‚
โ”‚ 6 in run                                                                                         โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   163 โ”‚   โ”‚                                                                                      โ”‚
โ”‚   164 โ”‚   โ”‚   environment = get_config_environment_vars()                                        โ”‚
โ”‚   165 โ”‚   โ”‚   try:                                                                               โ”‚
โ”‚ โฑ 166 โ”‚   โ”‚   โ”‚   result = self.prepare_or_run_pipeline(                                         โ”‚
โ”‚   167 โ”‚   โ”‚   โ”‚   โ”‚   deployment=deployment, stack=stack, environment=environment                โ”‚
โ”‚   168 โ”‚   โ”‚   โ”‚   )                                                                              โ”‚
โ”‚   169 โ”‚   โ”‚   finally:                                                                           โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\local\local_orchestrato โ”‚
โ”‚ r.py:82 in prepare_or_run_pipeline                                                               โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    79 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   step.config.name,                                                      โ”‚
โ”‚    80 โ”‚   โ”‚   โ”‚   โ”‚   )                                                                          โ”‚
โ”‚    81 โ”‚   โ”‚   โ”‚                                                                                  โ”‚
โ”‚ โฑ  82 โ”‚   โ”‚   โ”‚   self.run_step(                                                                 โ”‚
โ”‚    83 โ”‚   โ”‚   โ”‚   โ”‚   step=step,                                                                 โ”‚
โ”‚    84 โ”‚   โ”‚   โ”‚   )                                                                              โ”‚
โ”‚    85                                                                                            โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\base_orchestrator.py:18 โ”‚
โ”‚ 6 in run_step                                                                                    โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   183 โ”‚   โ”‚   โ”‚   step=step,                                                                     โ”‚
โ”‚   184 โ”‚   โ”‚   โ”‚   orchestrator_run_id=self.get_orchestrator_run_id(),                            โ”‚
โ”‚   185 โ”‚   โ”‚   )                                                                                  โ”‚
โ”‚ โฑ 186 โ”‚   โ”‚   launcher.launch()                                                                  โ”‚
โ”‚   187 โ”‚                                                                                          โ”‚
โ”‚   188 โ”‚   @staticmethod                                                                          โ”‚
โ”‚   189 โ”‚   def requires_resources_in_orchestration_environment(                                   โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\step_launcher.py:198 in โ”‚
โ”‚ launch                                                                                           โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   195 โ”‚   โ”‚   โ”‚                                                                                  โ”‚
โ”‚   196 โ”‚   โ”‚   โ”‚   if execution_needed:                                                           โ”‚
โ”‚   197 โ”‚   โ”‚   โ”‚   โ”‚   try:                                                                       โ”‚
โ”‚ โฑ 198 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   self._run_step(                                                        โ”‚
โ”‚   199 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   pipeline_run=pipeline_run,                                         โ”‚
โ”‚   200 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   step_run=step_run_response,                                        โ”‚
โ”‚   201 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   )                                                                      โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\step_launcher.py:380 in โ”‚
โ”‚ _run_step                                                                                        โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   377 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   step_run_info=step_run_info,                                           โ”‚
โ”‚   378 โ”‚   โ”‚   โ”‚   โ”‚   )                                                                          โ”‚
โ”‚   379 โ”‚   โ”‚   โ”‚   else:                                                                          โ”‚
โ”‚ โฑ 380 โ”‚   โ”‚   โ”‚   โ”‚   self._run_step_without_step_operator(                                      โ”‚
โ”‚   381 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   step_run_info=step_run_info,                                           โ”‚
โ”‚   382 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   input_artifacts=step_run.input_artifacts,                              โ”‚
โ”‚   383 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   output_artifact_uris=output_artifact_uris,                             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\step_launcher.py:450 in โ”‚
โ”‚ _run_step_without_step_operator                                                                  โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   447 โ”‚   โ”‚   โ”‚   output_artifact_uris: The output artifact URIs of the current step.            โ”‚
โ”‚   448 โ”‚   โ”‚   """                                                                                โ”‚
โ”‚   449 โ”‚   โ”‚   runner = StepRunner(step=self._step, stack=self._stack)                            โ”‚
โ”‚ โฑ 450 โ”‚   โ”‚   runner.run(                                                                        โ”‚
โ”‚   451 โ”‚   โ”‚   โ”‚   input_artifacts=input_artifacts,                                               โ”‚
โ”‚   452 โ”‚   โ”‚   โ”‚   output_artifact_uris=output_artifact_uris,                                     โ”‚
โ”‚   453 โ”‚   โ”‚   โ”‚   step_run_info=step_run_info,                                                   โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\orchestrators\step_runner.py:133 in   โ”‚
โ”‚ run                                                                                              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   130 โ”‚   โ”‚   โ”‚   self._stack.prepare_step_run(info=step_run_info)                               โ”‚
โ”‚   131 โ”‚   โ”‚   โ”‚   step_failed = False                                                            โ”‚
โ”‚   132 โ”‚   โ”‚   โ”‚   try:                                                                           โ”‚
โ”‚ โฑ 133 โ”‚   โ”‚   โ”‚   โ”‚   return_values = step_entrypoint(**function_params)                         โ”‚
โ”‚   134 โ”‚   โ”‚   โ”‚   except BaseException as step_exception:  # noqa: E722                          โ”‚
โ”‚   135 โ”‚   โ”‚   โ”‚   โ”‚   step_failed = True                                                         โ”‚
โ”‚   136 โ”‚   โ”‚   โ”‚   โ”‚   failure_hook_source = self.configuration.failure_hook_source               โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\zenml\integrations\bentoml\steps\bento_buil โ”‚
โ”‚ der.py:103 in bento_builder_step                                                                 โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   100 โ”‚   โ”‚   )                                                                                  โ”‚
โ”‚   101 โ”‚                                                                                          โ”‚
โ”‚   102 โ”‚   # Build the BentoML bundle                                                             โ”‚
โ”‚ โฑ 103 โ”‚   bento = bentos.build(                                                                  โ”‚
โ”‚   104 โ”‚   โ”‚   service=params.service,                                                            โ”‚
โ”‚   105 โ”‚   โ”‚   version=params.version,                                                            โ”‚
โ”‚   106 โ”‚   โ”‚   labels=labels,                                                                     โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\simple_di\__init__.py:139 in _              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   136 โ”‚   โ”‚   bind = sig.bind_partial(*filtered_args, **filtered_kwargs)                         โ”‚
โ”‚   137 โ”‚   โ”‚   bind.apply_defaults()                                                              โ”‚
โ”‚   138 โ”‚   โ”‚                                                                                      โ”‚
โ”‚ โฑ 139 โ”‚   โ”‚   return func(*_inject_args(bind.args), **_inject_kwargs(bind.kwargs))               โ”‚
โ”‚   140 โ”‚                                                                                          โ”‚
โ”‚   141 โ”‚   setattr(_, "_is_injected", True)                                                       โ”‚
โ”‚   142 โ”‚   return cast(WrappedCallable, _)                                                        โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\site-packages\bentoml\bentos.py:372 in build              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   369 โ”‚   โ”‚   bentofile_path = os.path.join(os.path.dirname(f.name), f.name)                     โ”‚
โ”‚   370 โ”‚   โ”‚   build_args.extend(["--bentofile", bentofile_path])                                 โ”‚
โ”‚   371 โ”‚   โ”‚   try:                                                                               โ”‚
โ”‚ โฑ 372 โ”‚   โ”‚   โ”‚   output = subprocess.check_output(build_args)                                   โ”‚
โ”‚   373 โ”‚   โ”‚   except subprocess.CalledProcessError as e:                                         โ”‚
โ”‚   374 โ”‚   โ”‚   โ”‚   logger.error("Failed to build BentoService bundle: %s", e)                     โ”‚
โ”‚   375 โ”‚   โ”‚   โ”‚   raise                                                                          โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\subprocess.py:421 in check_output                         โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    418 โ”‚   โ”‚   โ”‚   empty = b''                                                                   โ”‚
โ”‚    419 โ”‚   โ”‚   kwargs['input'] = empty                                                           โ”‚
โ”‚    420 โ”‚                                                                                         โ”‚
โ”‚ โฑ  421 โ”‚   return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,                      โ”‚
โ”‚    422 โ”‚   โ”‚   โ”‚      **kwargs).stdout                                                           โ”‚
โ”‚    423                                                                                           โ”‚
โ”‚    424                                                                                           โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\subprocess.py:503 in run                                  โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    500 โ”‚   โ”‚   kwargs['stdout'] = PIPE                                                           โ”‚
โ”‚    501 โ”‚   โ”‚   kwargs['stderr'] = PIPE                                                           โ”‚
โ”‚    502 โ”‚                                                                                         โ”‚
โ”‚ โฑ  503 โ”‚   with Popen(*popenargs, **kwargs) as process:                                          โ”‚
โ”‚    504 โ”‚   โ”‚   try:                                                                              โ”‚
โ”‚    505 โ”‚   โ”‚   โ”‚   stdout, stderr = process.communicate(input, timeout=timeout)                  โ”‚
โ”‚    506 โ”‚   โ”‚   except TimeoutExpired as exc:                                                     โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\subprocess.py:971 in __init__                             โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    968 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   self.stderr = io.TextIOWrapper(self.stderr,                           โ”‚
โ”‚    969 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   encoding=encoding, errors=errors)                             โ”‚
โ”‚    970 โ”‚   โ”‚   โ”‚                                                                                 โ”‚
โ”‚ โฑ  971 โ”‚   โ”‚   โ”‚   self._execute_child(args, executable, preexec_fn, close_fds,                  โ”‚
โ”‚    972 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   pass_fds, cwd, env,                                       โ”‚
โ”‚    973 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   startupinfo, creationflags, shell,                        โ”‚
โ”‚    974 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   p2cread, p2cwrite,                                        โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ C:\Users\acer\Anaconda3\envs\MLOps\lib\subprocess.py:1456 in _execute_child                      โ”‚
โ”‚                                                                                                  โ”‚
โ”‚   1453 โ”‚   โ”‚   โ”‚                                                                                 โ”‚
โ”‚   1454 โ”‚   โ”‚   โ”‚   # Start the process                                                           โ”‚
โ”‚   1455 โ”‚   โ”‚   โ”‚   try:                                                                          โ”‚
โ”‚ โฑ 1456 โ”‚   โ”‚   โ”‚   โ”‚   hp, ht, pid, tid = _winapi.CreateProcess(executable, args,                โ”‚
โ”‚   1457 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚    # no special security                            โ”‚
โ”‚   1458 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚    None, None,                                      โ”‚
โ”‚   1459 โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”‚    int(not close_fds),                              โ”‚
โ”‚                                                                                                  โ”‚
โ”‚ c:\Users\acer\.vscode\extensions\ms-python.python-2023.8.0\pythonFiles\lib\python\debugpy\_vendo โ”‚
โ”‚ red\pydevd\_pydev_bundle\pydev_monkey.py:901 in new_CreateProcess                                โ”‚
โ”‚                                                                                                  โ”‚
โ”‚    898 โ”‚   โ”‚   โ”‚   cmd_line = patch_arg_str_win(cmd_line)                                        โ”‚
โ”‚    899 โ”‚   โ”‚   โ”‚   send_process_created_message()                                                โ”‚
โ”‚    900 โ”‚   โ”‚                                                                                     โ”‚
โ”‚ โฑ  901 โ”‚   โ”‚   return getattr(_subprocess, original_name)(app_name, cmd_line, *args)             โ”‚
โ”‚    902 โ”‚                                                                                         โ”‚
โ”‚    903 โ”‚   return new_CreateProcess                                                              โ”‚
โ”‚    904                                                                                           โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
FileNotFoundError: [WinError 2] The system cannot find the file specified

Code of Conduct

htahir1 commented 1 year ago

Maybe this is tangentially related to https://github.com/zenml-io/zenml/issues/1592.. We are investigating BentoML and will take this into account

strickvl commented 1 year ago

Thanks for the bug report. I've investigated this and we've figured out what's going wrong. I'll update once this has been fixed.

strickvl commented 1 year ago

@Yuanlim0919 this has been fixed in #1647 and was subsequently released. The fix will be in our most current version, i.e.. Thank you for bringing it to our attention!