New Install

11 views
Skip to first unread message

Jeremy Turner

unread,
Feb 16, 2018, 10:13:40 AM2/16/18
to Python FTP server library - Discussion group
Hi

Trying to run the documented example but it keeps wanting additonal agruments added.

  handler.use_sendfile = False

Then I had to add

handler.banner

Its still failing to load now asking for:

handler.max_login_attempts

Why am I being asked for all the extra parameters.

Thanks

Giampaolo Rodola'

unread,
Feb 16, 2018, 10:19:10 AM2/16/18
to pyft...@googlegroups.com
Who asks you what? Are you seeing an error or traceback message? If so paste it.
Otherwise this is the weirdest request for help I've bumped into so far. =)

--
You received this message because you are subscribed to the "Python FTP server library" project group:
http://code.google.com/p/pyftpdlib/
To post to this group, send email to pyft...@googlegroups.com
To unsubscribe from this group, send email to pyftpdlib-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyftpdlib
---
You received this message because you are subscribed to the Google Groups "Python FTP server library - Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyftpdlib+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Jeremy Turner

unread,
Feb 16, 2018, 10:20:17 AM2/16/18
to Python FTP server library - Discussion group
Applogies message got truncated:

Traceback (most recent call last):
  File "fwserver.py", line 40, in <module>
    main()
  File "fwserver.py", line 37, in main
    server.serve_forever()
  File "/usr/local/lib/python2.7/dist-packages/pyftpdlib/servers.py", line 205, in serve_forever
    self._log_start()
  File "/usr/local/lib/python2.7/dist-packages/pyftpdlib/servers.py", line 181, in _log_start
    logger.debug("max login attempts: %r", self.handler.max_login_attempts)
AttributeError: class MyHandler has no attribute 'max_login_attempts'

Giampaolo Rodola'

unread,
Feb 16, 2018, 10:25:23 AM2/16/18
to pyft...@googlegroups.com
Please show the content of fwserver.py

--
You received this message because you are subscribed to the "Python FTP server library" project group:
http://code.google.com/p/pyftpdlib/
To post to this group, send email to pyft...@googlegroups.com
To unsubscribe from this group, send email to pyftpdlib-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyftpdlib
---
You received this message because you are subscribed to the Google Groups "Python FTP server library - Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyftpdlib+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeremy Turner

unread,
Feb 16, 2018, 10:26:57 AM2/16/18
to Python FTP server library - Discussion group
ok resolved:

I used this example:


Its wrong

class MyHandler:
Should be
class MyHandler(FTPHandler)

Giampaolo Rodola'

unread,
Feb 16, 2018, 10:28:08 AM2/16/18
to pyft...@googlegroups.com
Exactly, you are not inheriting from FTPHandler.

--
You received this message because you are subscribed to the "Python FTP server library" project group:
http://code.google.com/p/pyftpdlib/
To post to this group, send email to pyft...@googlegroups.com
To unsubscribe from this group, send email to pyftpdlib-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/pyftpdlib
---
You received this message because you are subscribed to the Google Groups "Python FTP server library - Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyftpdlib+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages