dosubot[bot] commented on issue #6279: URL: https://github.com/apache/opendal/issues/6279#issuecomment-2958831590
<!-- Answer --> The error happens because OpenDAL doesn't enable any services unless the corresponding feature is activated at build time. The 'fs' scheme specifically requires the Cargo feature services-fs to be enabledāotherwise, it won't be available and you'll see the "scheme is not enabled or supported" error, even if your environment variables are set correctly. This is a build-time configuration, not something you can fix with runtime environment variables or test flags. See [this discussion](https://github.com/apache/opendal/issues/5932) and [the code reference](https://github.com/apache/opendal/blob/03d6c77341ab82f0fc0bd6aacc139d0bd13da0a1/core/src/services/fs/mod.rs). To fix this, make sure that when you build the C binding (opendal/bindings/c), you enable the services-fs feature in Cargo. For example, you can run: ```bash cargo build --features services-fs ``` Or, if you want to enable all test-related features (which includes services-fs): ```bash cargo build --features tests ``` After rebuilding with the correct features, rerun your test script. This should enable the 'fs' scheme and resolve the error. Also, make sure your OPENDAL_FS_ROOT is set to an absolute path, as required by the fs backend configuration [docs](https://github.com/apache/opendal/blob/03d6c77341ab82f0fc0bd6aacc139d0bd13da0a1/core/src/services/fs/docs.md). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0122085f-306a-4153-b854-d1bd1f55f915?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/opendal/issues/6279) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
