Tuesday, 15 April 2014

python ftplib weird behaviour -



python ftplib weird behaviour -

i'm running unusual behaviour when trying connect ftp server using ftplib. i'm doing is:

import ftplib ftp = ftplib.ftp('my-ftp-server') ftp.login('user ', 'pass')

now if run these python interpreter work fine , get:

'230 login successful.'

but want have these in nice script can stuff me. when set these in python script , run:

python my_ftp_stuff.py

i get:

ftplib.error_perm: 530 login incorrect.

i clueless can cause weird behaviour. have tips on try?

best regards

you have space (' ') character in username field.

python ftplib

No comments:

Post a Comment