mar10 / pyftpsync

Synchronize directories using FTP(S), SFTP, or file system access.
https://pyftpsync.readthedocs.io
MIT License
117 stars 25 forks source link

Error importing SFTPTarget with paramiko > 3.0 #82

Closed fralau closed 1 year ago

fralau commented 1 year ago

When I import SFTPTarget (Python 3.10.11), I get the following error:

  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xxxx, line 15, in <module>
    from ftpsync.sftp_target import SFTPTarget
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ftpsync/sftp_target.py", line 50, in <module>
    class SFTPTarget(_Target):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ftpsync/sftp_target.py", line 385, in SFTPTarget
    _paramiko_py3compat_u = paramiko.py3compat.u
AttributeError: module 'paramiko' has no attribute 'py3compat'

Versions:

paramiko                    3.1.0
pyftpsync                   4.0.0

This works with paramiko==2.12.0, so this is is apparently a breaking change in that library.

mar10 commented 1 year ago

This should be fixed in an upcoming release d1f14546aae0a6a749878e47d193ecafb5718e5e

ChillarAnand commented 6 months ago

@mar10 It has been almost a year now. Can you please publish a new release?