Possible. I might just do that actually :)

This command gives you the current revision.
svn info -R|grep "Revision:"|cut -d ' ' -f 2|sort -n|tail -n 1
I'd have to implement that in python.

The kqreactor error is because the transport tries to import every 
reactor it knows about, in order of best to worst. As soon as it finds 
one that works, it stops.

It should suppress the exception though. What python/twisted/OS version 
have you got?

---

James


On 06/03/2006, at 7:56 PM, Norman Rasmussen wrote:

> I'm still getting:
>
> Failed to connect to MSN servers: [Failure instance: Traceback:
> exceptions.ImportError: No module named kqsyscall
> --- <exception caught here> ---
> src/main.py:15:?
> /usr/lib/python2.3/site-packages/twisted/internet/kqreactor.py:69:?
> ]
>
> not sure if this has been fixed in my build (I just updated to rev 123
> after the bug).
>
> Would there be any way to put the svn rev in the iq:version response?
> (I'm thinking some sort of svn magic, might need to be run-time)
>
> On 2/4/06, James Bunton <[EMAIL PROTECTED]> wrote:
>> Thanks.
>>
>> I'll fix them soon.
>>
>> ---
>>
>> James
>>
>>
>>
>> On 01/02/2006, at 12:14 AM, Norman Rasmussen wrote:
>>
>>> these may or may not be fixed:
>>>
>>>
>>> '''
>>> Failed to connect to MSN servers: [Failure instance: Traceback:
>>> exceptions.ImportError: No module named kqsyscall
>>> --- <exception caught here> ---
>>> src/main.py:14:?
>>> /usr/lib/python2.3/site-packages/twisted/internet/kqreactor.py:69:?
>>> ]
>>> '''
>>> I don't have a reactor in the config file, so it should be using
>>> select (and not kqueue) right?
>>>
>>>
>>> [2006-01-31 11:11:40] Traceback (most recent call last):
>>>           File "src/main.py", line 382, in ?
>>>             main()
>>>           File "src/main.py", line 379, in main
>>>             reactor.run()
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py",
>>> line 199, in run
>>>             self.mainLoop()
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py",
>>> line 207, in mainLoop
>>>             self.runUntilCurrent()
>>>         --- <exception caught here> ---
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/internet/base.py",
>>> line 533, in runUntilCurrent
>>>             call.func(*call.args, **call.kw)
>>>           File
>>> "/home/norman/src/svn/PyMSNt.trunk/src/tlib/msn/msnw.py",
>>> line 684, in wait
>>>             del self.msncon.switchboardSessions[self.remoteUser]
>>>         exceptions.KeyError: '[EMAIL PROTECTED]'
>>>
>>>
>>> [2006-01-31 12:35:35] Traceback (most recent call last):
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/python/log.py",
>>> line 56, in callWithLogger
>>>             return callWithContext({"system": lp}, func, *args, **kw)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/python/log.py",
>>> line 41, in callWithContext
>>>             return context.call({ILogContext: newCtx}, func, *args,
>>> **kw)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/python/context.py",
>>> line 52, in callWithContext
>>>             return self.currentContext().callWithContext(ctx, func,
>>> *args, **kw)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/python/context.py",
>>> line 31, in callWithContext
>>>             return func(*args,**kw)
>>>         --- <exception caught here> ---
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py",
>>> line 160, in _doReadOrWrite
>>>             why = selectable.doRead()
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py",
>>> line 351, in doRead
>>>             return self.protocol.dataReceived(data)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/xmlstream.py",
>>> line 145, in dataReceived
>>>             self.stream.parse(buf)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/domish.py",
>>> line 600, in parse
>>>             self.parser.Parse(buffer)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/domish.py",
>>> line 638, in _onEndElement
>>>             self.ElementEvent(self.currElem)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/xmlstream.py",
>>> line 166, in onElement
>>>             self.dispatch(element)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",
>>> line 233, in dispatch
>>>             callbacklist.callback(object)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",
>>> line 37, in callback
>>>             methodwrapper(*args, **kwargs)
>>>           File
>>> "/usr/lib/python2.3/site-packages/twisted/xish/utility.py",
>>> line 21, in __call__
>>>             self.method(*nargs, **nkwargs)
>>>           File "src/main.py", line 281, in onPresence
>>>             s.onPresence(el)
>>>           File "/home/norman/src/svn/PyMSNt.trunk/src/jabw.py", line
>>> 280, in onPresence
>>>             self.avatarHashReceived(froj.userhost(), toj.userhost(),
>>> avatarHash)
>>>           File "/home/norman/src/svn/PyMSNt.trunk/src/session.py",
>>> line 185, in avatarHashReceived
>>>             self.avatar = avatar.Avatar(imageData,
>>> self.pytrans.avatarCache) # Stuff in the cache is always PNG
>>>           File "/home/norman/src/svn/PyMSNt.trunk/src/avatar.py", 
>>> line
>>> 38, in __init__
>>>             self.__imageHash = sha.sha(imageData).hexdigest()
>>>         exceptions.TypeError: new() argument 1 must be string or
>>> read-only buffer, not instance
>>>
>>>
>>>
>>> --
>>> - Norman Rasmussen
>>>  - Email: [EMAIL PROTECTED]
>>>  - Home page: http://norman.rasmussen.co.za/
>>> _______________________________________________
>>> py-transports mailing list
>>> py-transports@blathersource.org
>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>
>> _______________________________________________
>> py-transports mailing list
>> py-transports@blathersource.org
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>
>
> --
> - Norman Rasmussen
>  - Email: [EMAIL PROTECTED]
>  - Home page: http://norman.rasmussen.co.za/
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>

Reply via email to