Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Transfer
#6
This is the error i got from the terminal.

server.py

Server Created
Socket bind complete
Server now listening
Connected with 127.0.0.1:51150
Client> b''
Traceback (most recent call last):
File "./server.py", line 34, in <module>
string = reqCommand.split(' ')
TypeError: a bytes-like object is required, not 'str'

client.py

Instruction
"FileUpload [filename]" to send the file the server
"FileDownload [filename]" to download the file from the server
"ls" to list all files in this directory
"lls" to list all files in the server
"IndexGet shortlist <starttimestamp> <endtimestamp>" to list the files modified in mentioned timestamp.
"IndexGet longlist" similar to shortlist but with complete file listing
"FileHash verify <filename>" checksum of the modification of the mentioned file.
"quit" to exit


lls
h> Traceback (most recent call last):
File "./client.py", line 185, in <module>
serverList('lls')
File "./client.py", line 150, in serverList
socket1.send(commandName)
TypeError: a bytes-like object is required, not 'str'

This are the errors from both codes.
Reply


Messages In This Thread
File Transfer - by deezy - Nov-09-2017, 05:39 PM
RE: File Transfer - by heiner55 - Nov-10-2017, 06:15 AM
RE: File Transfer - by Jaylord - Feb-24-2019, 04:54 PM
RE: File Transfer - by Jaylord - Feb-25-2019, 09:44 AM
RE: File Transfer - by Jaylord - Feb-25-2019, 02:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  File transfer with xmodem CRC (1024) checksum Jhonbovi 3 8,281 Nov-08-2018, 09:01 AM
Last Post: Larz60+
  file transfer with sockets sinister88 1 6,450 Nov-11-2017, 03:29 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020