[Twisted-Python] Khashmir log crash

RITA Y/O RODRIGO DIAZ Y/O BENENSON rdrb at 123.cl
Fri Oct 17 16:28:23 MDT 2003


Hi!

I'm working in a research project
about new usages for the computers
networks. Actually I would like to
start some prototype services over
Distributed Hash Tables. The python
implementation of kademlia named
"khasmir" (presented at the
twistedmatrix homepage) seems to be
the perfect choice for the fast
devellopment of the first prototypes.

Unfortanutelly running the demo I got:


[rodrigob at localhost khashmir]$ python
khashmir.py 5
Building 5 peer table.
Traceback (most recent call last):
  File
"/usr/local/lib/python2.3/site-packages/twisted/internet/app.py",
line 862, in run
    log.callWithLogger(self,
reactor.run,
installSignalHandlers=installSignalHandlers)
--- <exception caught here> ---
  File
"/usr/local/lib/python2.3/site-packages/twisted/python/log.py",
line 65, in callWithLogger
    callWithContext({"system": lp},
func, *args, **kw)
  File
"/usr/local/lib/python2.3/site-packages/twisted/python/log.py",
line 52, in callWithContext
    return context.call({ILogContext:
newCtx}, func, *args, **kw)
  File
"/usr/local/lib/python2.3/site-packages/twisted/python/context.py",
line 53, in callWithContext
    return
self.currentContext().callWithContext(ctx,
func, *args, **kw)
  File
"/usr/local/lib/python2.3/site-packages/twisted/python/context.py",
line 32, in callWithContext
    return func(*args,**kw)
  File
"/usr/local/lib/python2.3/site-packages/twisted/internet/default.py",
line 121, in run
   
self.startRunning(installSignalHandlers=installSignalHandlers)
  File
"/usr/local/lib/python2.3/site-packages/twisted/internet/default.py",
line 115, in startRunning
    self._handleSignals()
  File
"/usr/local/lib/python2.3/site-packages/twisted/internet/default.py",
line 87, in _handleSignals
    signal.signal(signal.SIGINT,
self.sigInt)
exceptions.ValueError: signal only
works in main thread

Python 2.3.2, Twisted 1.0.7, RH8.


Does anyone know how to fix this ? I
this due to changes in Twisted ?
Have someone already used khashmir ?



Thanks.
RodrigoB.





More information about the Twisted-Python mailing list