opendal icon indicating copy to clipboard operation
opendal copied to clipboard

bug: Python binding not working for the ftp protocol

Open yusfad1 opened this issue 1 year ago • 2 comments

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?

  • [ ] Yes, I would like to submit a PR.

yusfad1 avatar Oct 15 '24 09:10 yusfad1

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.

Xuanwo avatar Oct 15 '24 10:10 Xuanwo

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.

yusfad1 avatar Oct 15 '24 14:10 yusfad1