{"record":{"id":"664e4028bda4aaa0","repo":"tensorflow/models","slug":"s-does-not-match-any-files","errorCode":null,"errorMessage":"%s does not match any files.","messagePattern":"(.+?) does not match any files\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/core/input_reader.py","lineNumber":66,"sourceCode":"  if isinstance(input_path, str):\n    input_path_list = [input_path]\n  elif isinstance(input_path, (list, tuple)):\n    if any(not isinstance(x, str) for x in input_path):\n      raise ValueError(usage % input_path)\n    input_path_list = input_path\n  else:\n    raise ValueError(usage % input_path)\n\n  for input_path in input_path_list:\n    input_patterns = input_path.strip().split(',')\n    for input_pattern in input_patterns:\n      input_pattern = input_pattern.strip()\n      if not input_pattern:\n        continue\n      if '*' in input_pattern or '?' in input_pattern:\n        tmp_matched_files = tf.io.gfile.glob(input_pattern)\n        if not tmp_matched_files:\n          raise ValueError('%s does not match any files.' % input_pattern)\n        matched_files.extend(tmp_matched_files)\n      else:\n        matched_files.append(input_pattern)\n\n  if not matched_files:\n    raise ValueError('%s does not match any files.' % input_path)\n\n  return matched_files\n\n\ndef _read_files_then_shard(matched_files: List[str],\n                           dataset_fn,\n                           input_context: Optional[\n                               tf.distribute.InputContext] = None,\n                           sharding: bool = False,\n                           repeat: bool = False) -> tf.data.Dataset:\n  \"\"\"Sends all data files to every worker and then shard by data.\"\"\"\n  dataset = dataset_fn(matched_files)","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/core/input_reader.py#L48-L84","documentation":"Error \"%s does not match any files.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/core/input_reader.py:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}