Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get:
Unhandled exception in thread started by <function window_loop at 0x402877d4> Traceback (most recent call last): File "/zope/opt/bin/tcpwatch.py", line 656, in window_loop app.mainloop() File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 965, in mainloop self.tk.mainloop(n) RuntimeError: Calling Tcl from different appartment
Are there any other good, free TCPWatch-like tools that allow you to snoop on HTTP requests.
Regards,
Bjorn Stabell wrote:
Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get:
Unhandled exception in thread started by <function window_loop at 0x402877d4> Traceback (most recent call last): File "/zope/opt/bin/tcpwatch.py", line 656, in window_loop app.mainloop() File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 965, in mainloop self.tk.mainloop(n) RuntimeError: Calling Tcl from different appartment
Other people have reported this, but I can't reproduce it. I've been using tcpwatch on Python versions 2.1 through 2.3 without a hiccup. Are you using Linux? If so, what distribution?
As a workaround, you can use "-s" to dump to stdout.
Are there any other good, free TCPWatch-like tools that allow you to snoop on HTTP requests.
There is ethereal, though it's a lower level tool.
Shane
On Wed, 2004-02-25 at 05:53, Bjorn Stabell wrote:
Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get:
Unhandled exception in thread started by <function window_loop at 0x402877d4> Traceback (most recent call last): File "/zope/opt/bin/tcpwatch.py", line 656, in window_loop app.mainloop() File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 965, in mainloop self.tk.mainloop(n) RuntimeError: Calling Tcl from different appartment
Are there any other good, free TCPWatch-like tools that allow you to snoop on HTTP requests.
This is a problem with python-tk most probably a problem in your distribution (I had that a lot with debian).
You can also call tcpwatch with the -s commandline parameter to suppress the GUI and get a CLI. Another option is enabling logging to write requests and responses to files.
Regards, Christian