{"record":{"id":"1dfbb96f2185132f","repo":"unslothai/unsloth","slug":"nemo-data-designer-hugging-face-integration-is-not","errorCode":null,"errorMessage":"NeMo Data Designer Hugging Face integration is not installed.","messagePattern":"NeMo Data Designer Hugging Face integration is not installed\\.","errorType":"exception","errorClass":"RecipeDatasetPublishError","httpStatus":400,"severity":"error","filePath":"studio/backend/core/data_recipe/huggingface.py","lineNumber":69,"sourceCode":") -> str:\n    dataset_path = _resolve_recipe_artifact_path(artifact_path)\n\n    try:\n        from data_designer.engine.storage.artifact_storage import (\n            FINAL_DATASET_FOLDER_NAME,\n            METADATA_FILENAME,\n            PROCESSORS_OUTPUTS_FOLDER_NAME,\n            SDG_CONFIG_FILENAME,\n        )\n        from data_designer.integrations.huggingface.client import (\n            HuggingFaceHubClient,\n            HuggingFaceHubClientUploadError,\n        )\n        from data_designer.integrations.huggingface.dataset_card import (\n            DataDesignerDatasetCard,\n        )\n    except ImportError as exc:\n        raise RecipeDatasetPublishError(\n            \"NeMo Data Designer Hugging Face integration is not installed.\"\n        ) from exc\n\n    try:\n        client = HuggingFaceHubClient(token = hf_token)\n        client._validate_repo_id(repo_id = repo_id)\n        client._validate_dataset_path(base_dataset_path = dataset_path)\n        client._create_or_get_repo(repo_id = repo_id, private = private)\n\n        metadata_path = dataset_path / METADATA_FILENAME\n        builder_config_path = dataset_path / SDG_CONFIG_FILENAME\n\n        with metadata_path.open(encoding = \"utf-8\") as fh:\n            metadata = json.load(fh)\n\n        builder_config = None\n        if builder_config_path.exists():\n            with builder_config_path.open(encoding = \"utf-8\") as fh:","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/unslothai/unsloth/blob/203007d19051dcd2ae33876786d117c99f6b0368/studio/backend/core/data_recipe/huggingface.py#L51-L87","documentation":"RecipeDatasetPublishError raised when importing data_designer.integrations.huggingface.* (HuggingFaceHubClient, dataset card classes, constants) fails with ImportError. The publish feature depends on the NeMo Data Designer Hugging Face integration being installed in the backend environment; without those modules, publishing cannot proceed and the original ImportError is chained as the cause.","triggerScenarios":"Calling publish_recipe_dataset in an environment where the 'data_designer' package (NeMo Data Designer / NeMo-Toolkit extras) is missing or lacks the integrations.huggingface submodule; a version of the package that moved/renamed those modules; a broken install with partially installed dependencies.","commonSituations":"Custom deployment images that trimmed optional dependencies; upgrading NeMo-Toolkit to a version where the integration moved; running the backend from a different venv than the one with the extras installed.","solutions":["Install the extra that provides data_designer.integrations.huggingface (e.g. the NeMo Data Designer / nemo-toolkit package with its HF extras) into the backend environment.","Pin a version of the dependency known to contain integrations.huggingface.client.HuggingFaceHubClient.","Verify with: python -c \"from data_designer.integrations.huggingface.client import HuggingFaceHubClient\".","If you do not need HF publishing, avoid the publish endpoint instead of installing."],"exampleFix":"# before: backend env missing the integration\npip install nemo-toolkit  # no HF integration extras\n\n# after\npip install 'nemo-toolkit[data-designer]'  # or the extra that ships data_designer.integrations.huggingface\npython -c \"from data_designer.integrations.huggingface.client import HuggingFaceHubClient\"","handlingStrategy":"validation","validationCode":"try:\n    from data_designer.integrations.huggingface.client import HuggingFaceHubClient  # noqa: F401\n    hf_integration_ok = True\nexcept ImportError:\n    hf_integration_ok = False","typeGuard":null,"tryCatchPattern":"try:\n    publish_recipe_dataset(...)\nexcept RecipeDatasetPublishError as e:\n    if 'not installed' in str(e):\n        disable_publish_ui(); show_install_instructions()","preventionTips":["Bake the NeMo Data Designer HF extras into deployment images.","Smoke-test the import in CI for the backend environment.","Pin dependency versions whose module layout you verified."],"tags":["dependencies","import-error","huggingface","data-recipe","studio"],"backgroundTag":null,"analyzedSha":"203007d19051dcd2ae33876786d117c99f6b0368","analyzedAt":"2026-08-15T02:48:39.846Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}