apache / opendal

Apache OpenDAL: access data freely.
https://opendal.apache.org
Apache License 2.0
3.33k stars 468 forks source link

bug: Python binding not working for the ftp protocol #5183

Open yusfad1 opened 1 week ago

yusfad1 commented 1 week ago

Describe the bug

I tried to connect to an ftp server using apache opendal version 0.45.10 but it seems that the FTP scheme still not supported in the python binding

Steps to Reproduce

I tried to connect to the server using the Operator from Opendal:

from opendal import Operator
op = Operator(scheme="ftp", endpoint="...", user="...", password="..")

I got this error:

---------------------------------------------------------------------------
UnsupportedError                          Traceback (most recent call last)
----> [1]( op = Operator(scheme="ftp", endpoint=".....", user="....", password="....")

UnsupportedError: Unsupported (permanent) at , context: { scheme: ftp } => scheme is not enabled or supported

Expected Behavior

Should connect successfully to an FTP server

Additional Context

No response

Are you willing to submit a PR to fix this bug?

Xuanwo commented 1 week ago

Hello @yusfad1, thank you for bringing this to our attention. The FTP service has been disabled on the Python side to reduce the binary size. We intend to resolve this issue as outlined here: https://github.com/apache/opendal/issues/4939.

yusfad1 commented 1 week ago

Hii @Xuanwo, thanks for the updates and for addressing the issue. I understand the need to disable the FTP service to manage the binary size effectively. I look forward to the resolution as detailed in #4939. Please keep me posted on any further developments.