{"record":{"id":"a607ed9afffa9e5b","repo":"microsoft/qlib","slug":"self-class-name-does-not-support-inst-pr","errorCode":null,"errorMessage":"{self.__class__.__name__} does not support inst_processor. Please use `D.features(disk_cache=0)` or `qlib.init(dataset_cache=None)`","messagePattern":"(.+?) does not support inst_processor\\. Please use `D\\.features\\(disk_cache=0\\)` or `qlib\\.init\\(dataset_cache=None\\)`","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"qlib/data/cache.py","lineNumber":706,"sourceCode":"                df = df.swaplevel(\"datetime\", \"instrument\").sort_index()\n                # read cache and need to replace not-space fields to field\n                df = cls.cache_to_origin_data(df, fields)\n\n            else:\n                df = pd.DataFrame(columns=fields)\n        return df\n\n    def _dataset(\n        self, instruments, fields, start_time=None, end_time=None, freq=\"day\", disk_cache=0, inst_processors=[]\n    ):\n        if disk_cache == 0:\n            # In this case, data_set cache is configured but will not be used.\n            return self.provider.dataset(\n                instruments, fields, start_time, end_time, freq, inst_processors=inst_processors\n            )\n        # FIXME: The cache after resample, when read again and intercepted with end_time, results in incomplete data date\n        if inst_processors:\n            raise ValueError(\n                f\"{self.__class__.__name__} does not support inst_processor. \"\n                f\"Please use `D.features(disk_cache=0)` or `qlib.init(dataset_cache=None)`\"\n            )\n        _cache_uri = self._uri(\n            instruments=instruments,\n            fields=fields,\n            start_time=None,\n            end_time=None,\n            freq=freq,\n            disk_cache=disk_cache,\n            inst_processors=inst_processors,\n        )\n\n        cache_path = self.get_cache_dir(freq).joinpath(_cache_uri)\n\n        features = pd.DataFrame()\n        gen_flag = False\n","sourceCodeStart":688,"sourceCodeEnd":724,"githubUrl":"https://github.com/microsoft/qlib/blob/79633dd9506ea689e5400dea0197717b5b3d74b7/qlib/data/cache.py#L688-L724","documentation":"Error \"{self.__class__.__name__} does not support inst_processor. Please use `D.features(disk_cache=0)` or `qlib.init(dataset_cache=None)`\" thrown in microsoft/qlib.","triggerScenarios":"This error is raised at qlib/data/cache.py:706 when the guard condition fails: \"does not support inst_processor\". It triggers when the code path receives input or a state that violates the precondition checked at this point — e.g. an unimplemented abstract method being called, an unsupported argument type/value, or an invalid configuration. To avoid it, satisfy the documented precondition before this call: implement the required method in your subclass, or pass a supported value of the expected type as described by the message.","commonSituations":"See trigger scenarios.","solutions":["Call `D.features(..., disk_cache=0)` to disable disk cache when using inst_processor.","Or initialize qlib with `qlib.init(dataset_cache=None)` so no dataset cache is used."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79633dd9506ea689e5400dea0197717b5b3d74b7","analyzedAt":"2026-08-15T07:01:27.511Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}