Re: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Christian Theune
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

-- 
Christian Theune, gocept gmbh  co. kg
http://www.gocept.com - [EMAIL PROTECTED]
fon: 03496 3099112 fax: 03496 3099118 mobile: 0179 7808366


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Shane Hathaway
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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Bjorn Stabell
Shane wrote:
[...]
 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.

Thanks.  I was running it on Debian, so it's most likely a python-tk
problem as also reported by Christian Theune.  When I ran it under
Windows it worked fine.

I'll report it as a Debian bug.

Bye,
-- 
Bjorn

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )