As a total python beginner with zero experience, I'm trying to make a script that takes a photo with the camera module V2 every x minutes and then uploads it to FTP. So far it's a nightmare and I am breaking the problem(s) down into small segments.
First: the FTP issue. It won't do anything, so I just wanted to see what happens when I execute this small script:
nluug is an anynomous FTP server that is good for testing.
According to the ftplib docs (https://docs.python.org/3/library/ftplib.html) the syntax should be:
When I execute this code I get:
First: the FTP issue. It won't do anything, so I just wanted to see what happens when I execute this small script:
Code:
import ftplibfrom ftplib import FTPsession = ftplib.FTP('ftp.nluug.nl')FTP.size('README.nluug')FTP.quit()
According to the ftplib docs (https://docs.python.org/3/library/ftplib.html) the syntax should be:
Code:
size(filename)
WHY?!TypeError: FTP.size() missing 1 required positional argument: 'filename'
Statistics: Posted by nielsgeode — Mon Jul 01, 2024 9:43 am — Replies 0 — Views 2