Questions tagged [ftplib]
ftplib — FTP protocol client under Python programming language
ftplib
681
questions
0
votes
0
answers
20
views
Error utf-8 enconding - Lib python FtpLib
I am having trouble listing files from an FTP server using Python's ftplib. The server appears to send data that is causing a UTF-8 decoding error. Here’s a summary of the problem and what I’ve tried:
...
0
votes
1
answer
40
views
FTP download of the latest files of the day [duplicate]
I need to connect to the FTP server in Python and download all the files that appeared only today from five different folders. Deleting files is not required.
I have just started to learn Python. We ...
0
votes
0
answers
22
views
FTP Timeout error only when using ftplib on a PyInstaller generated executable
I'm trying to make a program that helps upload files to a target device. The program opens the FTP connection as follows:
Inside some FTP object
def __keep_alive(self):
"""
...
1
vote
2
answers
76
views
Live tail a CSV from an FTP server
I am trying to live tail a CSV file from the FTP server of a data logger using pandas. I am trying to implement a solution from Live tail a CSV using Pandas to process, but am having issues with ...
0
votes
0
answers
71
views
ftplib error encoding. latin-1 utf-8: utf-8' codec can't decode byte 0xf1 in position 132: invalid continuation byte
I have a function (code attached below) that should download the most recent day's files and save them in Azure Blob.
The problem is that the encoding of these files is 'latin-1' as they may contain ...
0
votes
1
answer
55
views
ftputil throwing "530 Please login with USER and PASS" error on login with blank credentials while ftplib does not
Getting the following error when trying to connect to ftp host with ftputil:
ftputil.error.PermanentError: 530 Please login with USER and PASS.
However I do not get this error when connecting with ...
1
vote
1
answer
268
views
SSL V3 Handhake failure via FTP_TLS()
I am trying to fetch some files via ftplib in my Python application
Error I am constantly encountering:
[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1007)
My code to ...
0
votes
1
answer
91
views
Getting EOFError from retrlines() when using FTP_TLS from python ftplib
This one is not making any sense to me. Apologies for my poor python, I'm relatively new to the language.
The pertinent part of my program looks like:
from ftplib import FTP, FTP_TLS
...
try:...
0
votes
0
answers
57
views
python ftplib login OK but ftp.retrlines KO
I try this python code with python 3.11.4 :
f = FTP(ftp_host)
print(f.login(ftp_login, ftp_password))
print(f.pwd())
f.retrlines('LIST')
f.close()
f.login, return :
230 Login successful.
f.pwd() ...
0
votes
1
answer
67
views
ftplib RETR a small file stuck
Ok, first things first - there is little configuration available on this FTP; it is part of an industrial HMI control panel. I have tested via Filezilla the ability to download a file without PASV and ...
1
vote
1
answer
89
views
Read .xlsx as pandas dataframe from FTP without writting to disk
I want to read .xlsx file as pandas dataframe from an FTP connection, However I want to do this on memory without writing the .xlsx to my local disk.
Here is my current code:
import ftplib
import ...
1
vote
1
answer
205
views
Specify external IP address for active mode in Python ftplib
I'm using active mode for transfers with my FTP server. In WinSCP and FileZilla there is an option for network external IP. If I give my IP in those boxes, I'm able to connect to the FTP server with ...
0
votes
0
answers
803
views
In Python 3.11 using ftplib and ssl I'm getting this error: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2702), why?
Using Python 3.11.3 on MacOS Ventura 13.3.1 I've been troubleshooting an error I receive after successfully uploading one file using ftplib and ssl. I can successfully connect to the FTPS server but ...
1
vote
1
answer
80
views
Paramiko sendcmd like in Python ftplib
I have a host system with two systems on it (HP Nonstop).
With Python ftplib I can use
ftp = FTP()
ftp.encoding = encoding
ftp.connect(host_addr, ftp_port)
ftp.sendcmd('guardian')
to use the Guardian ...
-1
votes
1
answer
125
views
how to FTP Enscribed file type of "U" to HP TANDEM non-stop server using python ftplib?
I have created a program to download file using ftplib and after editing the file content , I have uploaded to the HP TANDEM SERVER but the file is in ASCII format and it should be reflected as ...