What steps will reproduce the problem?
1.Just carry out throttled_ftpd.py in the demo
What do you see instead?
[I 13-04-06 21:49:04] >>> starting FTP server on 0.0.0.0:2121 <<<
[I 13-04-06 21:49:04] poller: <class 'pyftpdlib.ioloop.Epoll'>
[I 13-04-06 21:49:04] masquerade (NAT) address: None
[I 13-04-06 21:49:04] passive ports: None
[I 13-04-06 21:49:04] use sendfile(2): True
[I 13-04-06 21:49:35] 127.0.0.1:42559-[] FTP session opened (connect)
[I 13-04-06 21:49:35] 127.0.0.1:42559-[user] USER 'user' logged in.
[E 13-04-06 21:49:35] unhandled exception in instance
<pyftpdlib.handlers.ThrottledDTPHandler (addr=127.0.0.1:40273, user='user',
receive=False, file='') at 0x7fad17afe850>
Traceback (most recent call last):
File "/usr/lib64/python3.3/asynchat.py", line 231, in initiate_send
data = first[:obs]
TypeError: slice indices must be integers or None or have an __index__ method
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.3/site-packages/pyftpdlib/handlers.py", line 1572, in _on_dtp_connection
self.data_channel.push_with_producer(data)
File "/usr/local/lib/python3.3/site-packages/pyftpdlib/handlers.py", line 584, in push_with_producer
AsyncChat.push_with_producer(self, producer)
File "/usr/lib64/python3.3/asynchat.py", line 198, in push_with_producer
self.initiate_send()
File "/usr/local/lib/python3.3/site-packages/pyftpdlib/handlers.py", line 590, in initiate_send
asynchat.async_chat.initiate_send(self)
File "/usr/lib64/python3.3/asynchat.py", line 233, in initiate_send
data = first.more()
AttributeError: 'bytes' object has no attribute 'more'
[W 13-04-06 21:49:35] 127.0.0.1:42559-[user] Internal error; transfer aborted.
I always see this when I use filezilla connect to the server.
What version of pyftpdlib are you using? On what operating system? Which
Python version?
pytfpdlib 1.0.1
openSUSE 12.3
python 3.3
Original issue reported on code.google.com by zhangpei...@gmail.com on 6 Apr 2013 at 1:59
Original issue reported on code.google.com by
zhangpei...@gmail.com
on 6 Apr 2013 at 1:59