please help me to debud my local chat network program

Terry Reedy tjreedy at udel.edu
Tue Nov 27 22:48:16 EST 2012


On 11/27/2012 9:50 PM, Minh Dang wrote:
> Hello everybody, i am doing my project: local network chat using python
> here is my file
> http://www.mediafire.com/?cc2g9tmsju0ba2m

I am not familiar with .rar files and whether I can open them. Better to 
upload a standard .zip.

> when i compile client.py, there is some bug
> Traceback (most recent call last):
> File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 303, in <module>
> sys.exit(main())

sys.exit is not usually necessary. Just 'main()' should be sufficient.

> File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 42, in main
> servIP = broadcast()
> File "C:\Users\MINH_IT\workspace\project\src\project\pclient.py", line 79, in broadcast
> udpSock.bind((broadcastIP, broadcastPort))
> OSError: [WinError 10049] The requested address is not valid in its context

The broadcastIP, which you defined elsewhere, whatever it is, is not 
valid for udpSock, also defined elsewhere.

-- 
Terry Jan Reedy




More information about the Python-list mailing list