ptftpd icon indicating copy to clipboard operation
ptftpd copied to clipboard

python3 experimental

Open Shrhawk opened this issue 8 years ago • 3 comments

I need this package for python3 so download it using: pip install git+https://github.com/mpetazzoni/ptftpd@master

While downloading the file using the get method here it throws following error: lib/python3.5/site-packages/ptftplib/proto.py", line 139, in createRRQ struct.error: argument for 's' must be a bytes object

Is this package is ready for python3 or not ?

Shrhawk avatar Jan 03 '17 12:01 Shrhawk

Python3 support is still under development. There has been some recent contributions to improve Python3 compatibility but it might not all be there yet. If you have time, I'd love to review PRs that continue on this path and make ptftpd work with Python3!

mpetazzoni avatar Jan 03 '17 21:01 mpetazzoni

The just-released version 1.3 (on PyPI), or master, should work now with Python 3. Thanks for reporting!

mpetazzoni avatar Jul 18 '18 06:07 mpetazzoni

It seems that python3 is still not supported. There's various errors in dhcp:

ptftplib/dhcpserver.py", line 175, in __init__
    if ord(pkt[9]) != IP_UDP_PROTO:
TypeError: ord() expected string of length 1, but int found

uSpike avatar Jun 21 '19 19:06 uSpike