Questions
What is the reason for the exception?
Did the client cause any errors ?
If at all possible, explain the other errors.
Background
I am creating a Python GUI socket server. When a client connects to my server, a GUI window will open (I'm still working on this). But when the client connects, I get an error message:
Unhandled exception in thread started by <function clientthread at 0x10246c230>
Since the actual script is quite long, I provided a pastebin link.
Here is the stream code. s is the name of my socket object.
def clientthread(s):
Traceback
Thanks for the suggestion of Morten . Here is the trace.
Socket Created Socket Bind Complete Socket now listening Connected Traceback (most recent call last): File "/Users/BigKids/Desktop/Coding/Python 2/Sockets/Function/Server GUI Alpha Function.py", line 80, in clientthread s.send("Welcome to the server. Type something and hit enter\n") File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 170, in _dummy raise error(EBADF, 'Bad file descriptor') error: [Errno 9] Bad file descriptor
Personally, I believe that many errors are related to the graphical interface.
Thanks!
xxmbabanexx
source share