Python Forum
Python 3.7.4 (FTPLib Deprecated). Now What?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.7.4 (FTPLib Deprecated). Now What?
#1
I've been running a Python script for a while that scrapes data from a website, parses through what it finds, saves everything to a CSV file, and then uses FTPLib to move the CSV to an FTP location.

We've moved everything recently to a new machine which is running Python 3.7.4, and I keep getting an error message when trying to execute my Python script of:

--- ImportError: cannot import name 'FTP_TLS' from 'ftplib' (c:\programdata\anaconda3\lib\ftplib.py)

In doing some research, it appears that this library was deprecated in a slightly earlier version of Python and will not work with Python version 3.7.4.

I've tried using another couple of Python FTP-related libraries that I've found, but the issue there is that it won't allow my Python-coded connection into the FTP location due to it saying that SSL/TLS is required, and these other Python FTP-related libraries I've found apparently don't support SSL/TLS-enabled FTP connections.

Any thoughts on this as well? I've Googled this extensively today and haven't really turned up any suggestions at all.

Thanks in advance!
Reply
#2
this is the recommended replacement: https://docs.python.org/3.9/library/ssl....cert_chain
SSLContext.load_cert_chain
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  FutureWarning: pandas.util.testing is deprecated buunaanaa 3 4,999 May-17-2020, 07:43 AM
Last Post: snippsat
  transfering files between server locations using ftplib katesfb 1 1,957 Nov-11-2019, 12:24 AM
Last Post: katesfb
  Question about YAMLLoadWarning (PyYAML error / deprecated) UniKlixX 4 4,152 Sep-10-2019, 11:49 AM
Last Post: UniKlixX
  FTPlib - moving a file kerzol81 2 9,245 Mar-13-2018, 10:51 AM
Last Post: kerzol81

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020