You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(4) |
Feb
|
Mar
|
Apr
(5) |
May
(11) |
Jun
|
Jul
|
Aug
(7) |
Sep
(17) |
Oct
(4) |
Nov
(1) |
Dec
(10) |
2005 |
Jan
(9) |
Feb
(10) |
Mar
(3) |
Apr
(4) |
May
(12) |
Jun
(24) |
Jul
(22) |
Aug
(29) |
Sep
(74) |
Oct
(47) |
Nov
(25) |
Dec
(22) |
2006 |
Jan
(36) |
Feb
(9) |
Mar
(36) |
Apr
(33) |
May
(39) |
Jun
(9) |
Jul
(18) |
Aug
(18) |
Sep
(26) |
Oct
(48) |
Nov
(14) |
Dec
(9) |
2007 |
Jan
(10) |
Feb
(2) |
Mar
(9) |
Apr
(3) |
May
(9) |
Jun
|
Jul
(12) |
Aug
(20) |
Sep
|
Oct
(16) |
Nov
(4) |
Dec
(21) |
2008 |
Jan
(32) |
Feb
(11) |
Mar
(4) |
Apr
(13) |
May
(13) |
Jun
(16) |
Jul
(1) |
Aug
(8) |
Sep
(9) |
Oct
(23) |
Nov
(7) |
Dec
|
2009 |
Jan
(17) |
Feb
(11) |
Mar
(35) |
Apr
(10) |
May
(8) |
Jun
(14) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
(2) |
Nov
|
Dec
(5) |
2010 |
Jan
(15) |
Feb
(4) |
Mar
|
Apr
|
May
(5) |
Jun
(4) |
Jul
(3) |
Aug
(1) |
Sep
(10) |
Oct
(2) |
Nov
(8) |
Dec
(3) |
2011 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(4) |
Sep
|
Oct
|
Nov
(4) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2013 |
Jan
(5) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(1) |
Nov
(14) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: mahdieh s. <mah...@gm...> - 2010-06-16 06:49:42
|
Hi, I want to know ,Is there any way for setting time out when connecting into special jabberID ? when server not found or stop Jabber Client exit quickly. Regards |
From: mahdieh s. <mah...@gm...> - 2010-06-15 04:59:53
|
Thanks, that's works |
From: Norman R. <no...@ra...> - 2010-06-13 19:05:49
|
This is fixed by this patch: http://github.com/normanr/xmpppy/commit/9518b54e12051d1ae0894b47264cc7f5f3c6b1ba On Sun, Jun 13, 2010 at 10:20 AM, mahdieh saeed <mah...@gm...>wrote: > Hi , > I want to use xmpppy for connecting into "jabberd2" server.My code is: > > jid=xmpp.protocol.JID('ex...@ja...') > cl=xmpp.Client(jid.getDomain(),debug=['always']) > cl.connect() > cl.auth(jid.getNode(),'123') > > But authentication has been failed.Debug reports are : > > DEBUG: sasl start Plugging <xmpp.auth.SASL instance at 0x934422c> > into <xmpp.client.Client instance at 0x934034c> > DEBUG: dispatcher info Registering handler <bound method > SASL.SASLHandler of <xmpp.auth.SASL instance at 0x934422c>> for "challenge" > type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher warn Registering namespace > "urn:ietf:params:xml:ns:xmpp-sasl" > DEBUG: dispatcher info Registering protocol "unknown" as > xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher info Registering protocol "default" as > xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher warn Registering protocol "challenge" as > xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher info Registering handler <bound method > SASL.SASLHandler of <xmpp.auth.SASL instance at 0x934422c>> for "failure" > type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher warn Registering protocol "failure" as > xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher info Registering handler <bound method > SASL.SASLHandler of <xmpp.auth.SASL instance at 0x934422c>> for "success" > type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: dispatcher warn Registering protocol "success" as > xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) > DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" > mechanism="PLAIN">a2hhckBqYWJiZXIubXkAa2hhcgAxMjM=\n</auth> > DEBUG: socket got <failure > xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> > <incorrect-encoding/> > </failure> > DEBUG: nodebuilder down DEPTH -> 2 , tag -> > urn:ietf:params:xml:ns:xmpp-sasl failure, attrs -> {} > DEBUG: nodebuilder down DEPTH -> 3 , tag -> > urn:ietf:params:xml:ns:xmpp-sasl incorrect-encoding, attrs -> {} > DEBUG: nodebuilder up DEPTH -> 3 , tag -> > urn:ietf:params:xml:ns:xmpp-sasl incorrect-encoding > DEBUG: nodebuilder up DEPTH -> 2 , tag -> > urn:ietf:params:xml:ns:xmpp-sasl failure > DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/failure > stanza > DEBUG: dispatcher ok Dispatching failure stanza with type-> > props->[u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None > DEBUG: sasl error Failed SASL authentification: <incorrect-encoding > /> > DEBUG: sasl stop Plugging <xmpp.auth.SASL instance at 0x934422c> > out of <xmpp.client.Client instance at 0x934034c>. > > But username and password is correct and I can connect into it by > "pidgin".But when connect into gmail account every thing is okay. Does any > body know about my problem? > > > Regards > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: mahdieh s. <mah...@gm...> - 2010-06-13 09:20:10
|
Hi , I want to use xmpppy for connecting into "jabberd2" server.My code is: jid=xmpp.protocol.JID('ex...@ja...') cl=xmpp.Client(jid.getDomain(),debug=['always']) cl.connect() cl.auth(jid.getNode(),'123') But authentication has been failed.Debug reports are : DEBUG: sasl start Plugging <xmpp.auth.SASL instance at 0x934422c> into <xmpp.client.Client instance at 0x934034c> DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x934422c>> for "challenge" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering namespace "urn:ietf:params:xml:ns:xmpp-sasl" DEBUG: dispatcher info Registering protocol "unknown" as xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher info Registering protocol "default" as xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering protocol "challenge" as xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x934422c>> for "failure" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering protocol "failure" as xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher info Registering handler <bound method SASL.SASLHandler of <xmpp.auth.SASL instance at 0x934422c>> for "success" type-> ns->(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: dispatcher warn Registering protocol "success" as xmpp.protocol.Protocol(urn:ietf:params:xml:ns:xmpp-sasl) DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">a2hhckBqYWJiZXIubXkAa2hhcgAxMjM=\n</auth> DEBUG: socket got <failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'> <incorrect-encoding/> </failure> DEBUG: nodebuilder down DEPTH -> 2 , tag -> urn:ietf:params:xml:ns:xmpp-sasl failure, attrs -> {} DEBUG: nodebuilder down DEPTH -> 3 , tag -> urn:ietf:params:xml:ns:xmpp-sasl incorrect-encoding, attrs -> {} DEBUG: nodebuilder up DEPTH -> 3 , tag -> urn:ietf:params:xml:ns:xmpp-sasl incorrect-encoding DEBUG: nodebuilder up DEPTH -> 2 , tag -> urn:ietf:params:xml:ns:xmpp-sasl failure DEBUG: dispatcher ok Got urn:ietf:params:xml:ns:xmpp-sasl/failure stanza DEBUG: dispatcher ok Dispatching failure stanza with type-> props->[u'urn:ietf:params:xml:ns:xmpp-sasl'] id->None DEBUG: sasl error Failed SASL authentification: <incorrect-encoding /> DEBUG: sasl stop Plugging <xmpp.auth.SASL instance at 0x934422c> out of <xmpp.client.Client instance at 0x934034c>. But username and password is correct and I can connect into it by "pidgin".But when connect into gmail account every thing is okay. Does any body know about my problem? Regards |
From: Norman R. <no...@ra...> - 2010-05-31 13:53:53
|
You must call cl.Process(<timeout>) as part of your loop, so that incoming messages are processed. You can do this instead of your time.sleep On Mon, May 31, 2010 at 2:16 PM, Cyril LAVIER <cla...@lt...<clavier%2Bx...@lt...> > wrote: > Hi. > > I'm coding a simple jabber bot using xmpppy, and after some hours, it > stops sending messages. > > The bot is quite silly, it simply reads a file, and sending the content > to a muc. > > The main problem is, after some hours of running. > > I added a "wake up" send every minute, it sends a blank message (like I > saw in some old messages on the mailing list), but it always do the same > problem. > > Here is the main loop, which reads the file, sends the message in the > file, and sends a "wake up" message every minute. > > cl is a client created using > "cl=xmpp.client.Client(jid.getDomain(),debug=['always'])" > > conference.room is a variable containing the conference room which will > receive the message. > > jabber.jid is the variable containing the complete JID of the user to > connect. > > Here is the part of the code containing the loop which reads the file, > sends the message in the file, and sends a "wake up" message every minute. > > _____________________________ > > jid=xmpp.protocol.JID(jabber.jid) > cl=xmpp.client.Client(jid.getDomain(),debug=['always']) > > cl.connect() > cl.auth(jid.getNode(), jabber.jid_password) > cl.sendInitPresence() > > presenceto=conference.room+"/"+conference.username > presence = xmpp.protocol.Presence(to=presenceto) > presence.setTag('x',namespace = > xmpp.protocol.NS_MUC).setTagData('password',conference.room_password) > cl.send(presence) > > mtime = os.stat("/var/cache/mnb_server")[ST_MTIME] > timer=time.time() > n=1 > > while n==1: > readmtime = os.stat(CACHEFILE)[ST_MTIME] > if not readmtime == mtime: > f = open(CACHEFILE, "r") > readl = f.readline() > if readl.strip() == "____exit____": > n=2 > else: > > tosend=xmpp.Message(to=conference.room,typ='groupchat',body=readl.strip()) > id=cl.send(tosend) > open(LOGFILE, > "a+").write(time.strftime("[%d/%m/%Y - %H:%M:%S]")+"Message #"+str(id)+" > sent\n") > mtime = readmtime > f.close() > if time.time() > timer + 60: > idw = cl.send(xmpp.Message()) > open(LOGFILE, > "a+").write(time.strftime("[%d/%m/%Y - %H:%M:%S]")+"Wake Up > #"+str(idw)+"\n") > timer=time.time() > time.sleep(0.25) > > ______________________ > > In the debug prints, I see the "wake up" messages like this "DEBUG: > socket sent <message id="1511" />" > > And I see the regular messages like this (here, I simply send the > current date) : "DEBUG: socket sent <message > to="conferenceroom@conferenceserver" type="groupchat" > id="1513"><body>Fri May 28 08:53:39 GMT 2010</body></message>" > > I set the ejabberd2 server logs to debug, and when the message do not > arrive in the conference room, they are not displayed in the server logs. > > I hope somebody will find an answer to this issue. > > Thanks. > > -- > Cyril LAVIER | Systems Administrator | LTU Technologies > 132 Rue de Rivoli - 75001 Paris France > (tel) +33 (0)1 53 43 01 71 | (mail) cl...@lt... > LTU technologies - Making Sense of Visual Content | www.LTUtech.com > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Cyril L. <cla...@lt...> - 2010-05-31 13:16:26
|
Hi. I'm coding a simple jabber bot using xmpppy, and after some hours, it stops sending messages. The bot is quite silly, it simply reads a file, and sending the content to a muc. The main problem is, after some hours of running. I added a "wake up" send every minute, it sends a blank message (like I saw in some old messages on the mailing list), but it always do the same problem. Here is the main loop, which reads the file, sends the message in the file, and sends a "wake up" message every minute. cl is a client created using "cl=xmpp.client.Client(jid.getDomain(),debug=['always'])" conference.room is a variable containing the conference room which will receive the message. jabber.jid is the variable containing the complete JID of the user to connect. Here is the part of the code containing the loop which reads the file, sends the message in the file, and sends a "wake up" message every minute. _____________________________ jid=xmpp.protocol.JID(jabber.jid) cl=xmpp.client.Client(jid.getDomain(),debug=['always']) cl.connect() cl.auth(jid.getNode(), jabber.jid_password) cl.sendInitPresence() presenceto=conference.room+"/"+conference.username presence = xmpp.protocol.Presence(to=presenceto) presence.setTag('x',namespace = xmpp.protocol.NS_MUC).setTagData('password',conference.room_password) cl.send(presence) mtime = os.stat("/var/cache/mnb_server")[ST_MTIME] timer=time.time() n=1 while n==1: readmtime = os.stat(CACHEFILE)[ST_MTIME] if not readmtime == mtime: f = open(CACHEFILE, "r") readl = f.readline() if readl.strip() == "____exit____": n=2 else: tosend=xmpp.Message(to=conference.room,typ='groupchat',body=readl.strip()) id=cl.send(tosend) open(LOGFILE, "a+").write(time.strftime("[%d/%m/%Y - %H:%M:%S]")+"Message #"+str(id)+" sent\n") mtime = readmtime f.close() if time.time() > timer + 60: idw = cl.send(xmpp.Message()) open(LOGFILE, "a+").write(time.strftime("[%d/%m/%Y - %H:%M:%S]")+"Wake Up #"+str(idw)+"\n") timer=time.time() time.sleep(0.25) ______________________ In the debug prints, I see the "wake up" messages like this "DEBUG: socket sent <message id="1511" />" And I see the regular messages like this (here, I simply send the current date) : "DEBUG: socket sent <message to="conferenceroom@conferenceserver" type="groupchat" id="1513"><body>Fri May 28 08:53:39 GMT 2010</body></message>" I set the ejabberd2 server logs to debug, and when the message do not arrive in the conference room, they are not displayed in the server logs. I hope somebody will find an answer to this issue. Thanks. -- Cyril LAVIER | Systems Administrator | LTU Technologies 132 Rue de Rivoli - 75001 Paris France (tel) +33 (0)1 53 43 01 71 | (mail) cl...@lt... LTU technologies - Making Sense of Visual Content | www.LTUtech.com |
From: Евгений Ч. <nec...@gm...> - 2010-05-24 12:27:11
|
Ohh... Thanks. It's works. |
From: Norman R. <no...@ra...> - 2010-05-22 20:20:50
|
try and change: self.conn.disconnected() into self.conn.disconnect() I hope that helps :-) On Thu, May 20, 2010 at 1:11 PM, Евгений Чегодаев <nec...@gm...>wrote: > Sorry for my bad English - Google Translate > > Hello, I'm writing a program with a graphical interface for PyQt > That's decided to add the ability to send logs and receive commands > remotely with Xmpp > That is a normal working code to work with xmpp > > > class JabberBot(): > > def __init__(self): > self.password='blablalba' # pass self.jid > self.jid='BLA...@gm...' #send jid > self.jid2='bla...@gm...' #take jid > self.jid3='bla...@gm...' #manager commands jid > > jid=xmpp.protocol.JID(self.jid) > self.server = jid.getDomain() > self.user = jid.getNode() > > def connect_jid(self): > > > self.conn = xmpp.Client(self.server, debug = []) > if (self.server=='gmail.com'): > print ('connect to google ', self.server) > conres = self.conn.connect(('talk.google.com',5223)) > else: > conres = self.conn.connect() > > if not conres: > print "Unable to connect to server %s!" % self.server > sys.exit(1) > > if conres == 'tls': > print "We have TLS connection!" > elif conres == 'ssl': > print "We have SSL connection!" > else: > print "Warning: unable to estabilish secure connection - > TLS & SSL failed!" > > authres = self.conn.auth(self.user, self.password) > > if not authres: > print "Unable to authorize on %s - check login/password." > % self.server > sys.exit(1) > > if authres <> 'sasl': > print """Warning: unable to perform SASL auth os %s. > Old authentication method used!""" % self.server > > #set status > presence = xmpp.Presence(status = "Ready!", show ="chat", > priority = '1') > self.conn.send(presence) > > #return myclient > > def send(self,text): > print text > mymsg=xmpp.protocol.Message(self.jid2,text, "chat") > self.conn.send(mymsg) > print mymsg > > def message_handler(self, conn, message): > print "new message!" > > if (re.findall(r'^('+self.jid3+r')/', str(message.getFrom()))): > command=str(message.getBody()) > print "from: " + str(message.getFrom()) > print "msg: " + str(message.getBody()) > if (command=='exit'): > print 'exit' > try: > self.conn.disconnected() > except: > print 'errrrrr' > self.exit=1 > > else: > print 'msg not in trust' > > def run(self): > > self.connect_jid() > self.conn.RegisterHandler('message', self.message_handler) > while self.step_on(): pass > > def step_on(self): > if (self.exit==1): return 0 > try: > self.conn.Process(1) > print 1 > except KeyboardInterrupt: return 0 > return 1 > > > bot = JabberBot() > bot.run() > > This code works fine if you send the command 'exit' it will be run code: > if (command=='exit'): > print 'exit' > try: > self.conn.disconnected() > except: > print 'errrrrr' > self.exit=1 > > In principle, sufficiently pure self.exit and then everything will > come, self.conn.disconnected () here because for redundancy. > But as soon as I stuffed it all in QtCore.QThread - make class > JabberBot (QtCore.QThread) > Start: > self.jb = JabberBot(self) > self.jb.start() > > Actually everything is working the team accepted the message sent. But > the problem is that when I send the 'exit' command - session is not > closed. User stays in the network. > But apparently that "def step_on (self)" cease to do "print 1", and > even if I do: > if self.jb.isRunning(): > print 'qqqq' > else: > print 'zzzz' > It gives 'zzzz', which indicates the completion of this work Thread. > But user stay online =( And no longer takes command > But as soon as I complete the program my JabberBot immediately > disappears from the list. > How to make that all actually happened 100% off the user? > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Евгений Ч. <nec...@gm...> - 2010-05-20 12:11:51
|
Sorry for my bad English - Google Translate Hello, I'm writing a program with a graphical interface for PyQt That's decided to add the ability to send logs and receive commands remotely with Xmpp That is a normal working code to work with xmpp class JabberBot(): def __init__(self): self.password='blablalba' # pass self.jid self.jid='BLA...@gm...' #send jid self.jid2='bla...@gm...' #take jid self.jid3='bla...@gm...' #manager commands jid jid=xmpp.protocol.JID(self.jid) self.server = jid.getDomain() self.user = jid.getNode() def connect_jid(self): self.conn = xmpp.Client(self.server, debug = []) if (self.server=='gmail.com'): print ('connect to google ', self.server) conres = self.conn.connect(('talk.google.com',5223)) else: conres = self.conn.connect() if not conres: print "Unable to connect to server %s!" % self.server sys.exit(1) if conres == 'tls': print "We have TLS connection!" elif conres == 'ssl': print "We have SSL connection!" else: print "Warning: unable to estabilish secure connection - TLS & SSL failed!" authres = self.conn.auth(self.user, self.password) if not authres: print "Unable to authorize on %s - check login/password." % self.server sys.exit(1) if authres <> 'sasl': print """Warning: unable to perform SASL auth os %s. Old authentication method used!""" % self.server #set status presence = xmpp.Presence(status = "Ready!", show ="chat", priority = '1') self.conn.send(presence) #return myclient def send(self,text): print text mymsg=xmpp.protocol.Message(self.jid2,text, "chat") self.conn.send(mymsg) print mymsg def message_handler(self, conn, message): print "new message!" if (re.findall(r'^('+self.jid3+r')/', str(message.getFrom()))): command=str(message.getBody()) print "from: " + str(message.getFrom()) print "msg: " + str(message.getBody()) if (command=='exit'): print 'exit' try: self.conn.disconnected() except: print 'errrrrr' self.exit=1 else: print 'msg not in trust' def run(self): self.connect_jid() self.conn.RegisterHandler('message', self.message_handler) while self.step_on(): pass def step_on(self): if (self.exit==1): return 0 try: self.conn.Process(1) print 1 except KeyboardInterrupt: return 0 return 1 bot = JabberBot() bot.run() This code works fine if you send the command 'exit' it will be run code: if (command=='exit'): print 'exit' try: self.conn.disconnected() except: print 'errrrrr' self.exit=1 In principle, sufficiently pure self.exit and then everything will come, self.conn.disconnected () here because for redundancy. But as soon as I stuffed it all in QtCore.QThread - make class JabberBot (QtCore.QThread) Start: self.jb = JabberBot(self) self.jb.start() Actually everything is working the team accepted the message sent. But the problem is that when I send the 'exit' command - session is not closed. User stays in the network. But apparently that "def step_on (self)" cease to do "print 1", and even if I do: if self.jb.isRunning(): print 'qqqq' else: print 'zzzz' It gives 'zzzz', which indicates the completion of this work Thread. But user stay online =( And no longer takes command But as soon as I complete the program my JabberBot immediately disappears from the list. How to make that all actually happened 100% off the user? |
From: Patrick N. <ma...@pa...> - 2010-02-09 06:10:57
|
Hi, On 2010-02-01 08:38, Patrick Nagel wrote: > I reported the release of version 1.8 to my > distributor (Gentoo), and hope it will pop up in the repository soon. dnspython 1.8.0 is now in the testing branch (~) of Gentoo. Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |
From: Patrick N. <ma...@pa...> - 2010-02-01 00:41:10
|
Hi Norman, On 2010-01-31 23:55 UTC Norman Rasmussen wrote: > btw, dnspython 1.8 doesn't seed the entropy pool unless it's needed. > it also uses os.random if possible. both of these should help > remove the hangs. That sounds great. I reported the release of version 1.8 to my distributor (Gentoo), and hope it will pop up in the repository soon. Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |
From: Norman R. <no...@ra...> - 2010-02-01 00:36:47
|
On Mon, Feb 1, 2010 at 12:03 AM, Patrick Nagel <ma...@pa...>wrote: > Hi Norman, > > On 2010-01-31 23:39 UTC Norman Rasmussen wrote: > > lol, reading /dev/random only occurs on import, so are you > > relaunching the python script very often? > > Well, it gets started whenever some video compression process finishes > on that server (I then get notified via XMPP). > > > btw, my 2.6.32 kernel doesn't mix network traffic into the random > > entropy pool, does rng-tools do that? > > I don't use rng-tools. If my kernel (2.6.31.something) doesn't get > entropy from the network, I wouldn't know where else it could get it (it > doesn't have a keyboard or a mouse connected - just the mainboard, CPU > and two SATA HDDs in that box). Maybe from HDD activity? In any case, > those torrents help ;) yea, I think keyboard, mouse and disk io are the only places that entropy is gathered from. I found randomsound (uses alsa's arecord to gather entropy), but it's command line for arecord is hardcoded and doesn't work on my server - default recording device doesn't support mono recording and the command line is hard coded :-( On Sun, Jan 31, 2010 at 11:55 PM, Norman Rasmussen <no...@ra...> wrote: > btw, dnspython 1.8 doesn't seed the entropy pool unless it's needed. it > also uses os.random if possible. both of these should help remove the > hangs. > actually it uses os.urandom now, and if that fails it reads from /dev/urandom, so fixed both ways. -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Patrick N. <ma...@pa...> - 2010-02-01 00:03:51
|
Hi Norman, On 2010-01-31 23:39 UTC Norman Rasmussen wrote: > lol, reading /dev/random only occurs on import, so are you > relaunching the python script very often? Well, it gets started whenever some video compression process finishes on that server (I then get notified via XMPP). > btw, my 2.6.32 kernel doesn't mix network traffic into the random > entropy pool, does rng-tools do that? I don't use rng-tools. If my kernel (2.6.31.something) doesn't get entropy from the network, I wouldn't know where else it could get it (it doesn't have a keyboard or a mouse connected - just the mainboard, CPU and two SATA HDDs in that box). Maybe from HDD activity? In any case, those torrents help ;) Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |
From: Norman R. <no...@ra...> - 2010-01-31 23:55:44
|
btw, dnspython 1.8 doesn't seed the entropy pool unless it's needed. it also uses os.random if possible. both of these should help remove the hangs. On Sun, Jan 24, 2010 at 6:41 PM, Norman Rasmussen <no...@ra...>wrote: > This feature is brought to you by pythondns, see: > > http://www.mail-archive.com/dns...@ho.../msg00003.html > > http://howl.play-bow.org/pipermail/dnspython-users/2009-September/000112.html > > On Sun, Jan 24, 2010 at 7:00 AM, Patrick Nagel <ma...@pa...>wrote: > >> Hi, >> >> I just discovered xmpppy (which is great, thanks!), and I am a Python >> newbie. >> >> When I try using xmpppy with the example script, it often (but not always) >> hangs when I call the script. strace tells me, that it's waiting for data >> from >> /dev/random. This happens during the 'import xmpp' call. Now, this >> probably >> doesn't happen on busy systems, where /dev/random always has numbers, but >> on >> my quiet home server, it's definitely annoying. >> >> Since I'm a Python newbie, I don't know how things are done there, but >> from my >> experience just doing 'import <library>' shouldn't do complex things that >> can >> go wrong or take a long time, such as getting a random number from >> /dev/random. Wouldn't be the xmpp.Client constructor (or however that is >> called in Python land) be a better place for that? >> >> Thanks, >> Patrick. >> >> -- >> Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc >> Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> >> > > > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Norman R. <no...@ra...> - 2010-01-31 23:51:21
|
lol, reading /dev/random only occurs on import, so are you relaunching the python script very often? (using random instead of urandom is stupid, urandom is supposed to be usable for cryptographic operations) btw, my 2.6.32 kernel doesn't mix network traffic into the random entropy pool, does rng-tools do that? On Fri, Jan 29, 2010 at 8:02 AM, Patrick Nagel <ma...@pa...>wrote: > Hi, > > On 2010-01-25 23:05 UTC Jippen wrote: > > You might want to look into things to help seed /dev/random > > > > Things like this: > > > http://www.chrissearle.org/blog/technical/increase_entropy_26_kernel_linux_ > > box > > Thanks for the pointer, I'll look into that. For now I'm just downloading > and > seeding a few torrents, that causes enough network activity to keep > /dev/random useful ;) > > Patrick. > > -- > Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc > Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Norman R. <no...@ra...> - 2010-01-31 23:39:41
|
lol, reading /dev/random only occurs on import, so are you relaunching the python script very often? btw, my 2.6.32 kernel doesn't mix network traffic into the random entropy pool, does rng-tools do that? On Fri, Jan 29, 2010 at 8:02 AM, Patrick Nagel <ma...@pa...>wrote: > Hi, > > On 2010-01-25 23:05 UTC Jippen wrote: > > You might want to look into things to help seed /dev/random > > > > Things like this: > > > http://www.chrissearle.org/blog/technical/increase_entropy_26_kernel_linux_ > > box > > Thanks for the pointer, I'll look into that. For now I'm just downloading > and > seeding a few torrents, that causes enough network activity to keep > /dev/random useful ;) > > Patrick. > > -- > Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc > Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Patrick N. <ma...@pa...> - 2010-01-29 08:02:29
|
Hi, On 2010-01-25 23:05 UTC Jippen wrote: > You might want to look into things to help seed /dev/random > > Things like this: > http://www.chrissearle.org/blog/technical/increase_entropy_26_kernel_linux_ > box Thanks for the pointer, I'll look into that. For now I'm just downloading and seeding a few torrents, that causes enough network activity to keep /dev/random useful ;) Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |
From: Norman R. <no...@ra...> - 2010-01-28 00:01:18
|
no, you might have a look at gajim, they forked xmpp.py and have bosh support. On Wed, Jan 27, 2010 at 11:14 PM, Anand CVR <ana...@gm...> wrote: > Hi All, > Does XMPPPY have support for BOSH? > Thanks, > Anand > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Anand C. <ana...@gm...> - 2010-01-27 23:14:17
|
Hi All, Does XMPPPY have support for BOSH? Thanks, Anand |
From: Jippen <che...@gm...> - 2010-01-25 23:05:27
|
You might want to look into things to help seed /dev/random Things like this: http://www.chrissearle.org/blog/technical/increase_entropy_26_kernel_linux_box On Sun, Jan 24, 2010 at 5:06 PM, Patrick Nagel <ma...@pa...> wrote: > Hi Norman, > > On 2010-01-25 02:41, Norman Rasmussen wrote: >> This feature is brought to you by pythondns, see: >> >> http://www.mail-archive.com/dns...@ho.../msg00003.html >> http://howl.play-bow.org/pipermail/dnspython-users/2009-September/000112.html > > Thanks for the pointer, now I know who to bother ;) > > Patrick. > > -- > Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc > Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > |
From: Patrick N. <ma...@pa...> - 2010-01-25 01:06:56
|
Hi Norman, On 2010-01-25 02:41, Norman Rasmussen wrote: > This feature is brought to you by pythondns, see: > > http://www.mail-archive.com/dns...@ho.../msg00003.html > http://howl.play-bow.org/pipermail/dnspython-users/2009-September/000112.html Thanks for the pointer, now I know who to bother ;) Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |
From: Norman R. <no...@ra...> - 2010-01-24 18:41:58
|
This feature is brought to you by pythondns, see: http://www.mail-archive.com/dns...@ho.../msg00003.html http://howl.play-bow.org/pipermail/dnspython-users/2009-September/000112.html On Sun, Jan 24, 2010 at 7:00 AM, Patrick Nagel <ma...@pa...>wrote: > Hi, > > I just discovered xmpppy (which is great, thanks!), and I am a Python > newbie. > > When I try using xmpppy with the example script, it often (but not always) > hangs when I call the script. strace tells me, that it's waiting for data > from > /dev/random. This happens during the 'import xmpp' call. Now, this probably > doesn't happen on busy systems, where /dev/random always has numbers, but > on > my quiet home server, it's definitely annoying. > > Since I'm a Python newbie, I don't know how things are done there, but from > my > experience just doing 'import <library>' shouldn't do complex things that > can > go wrong or take a long time, such as getting a random number from > /dev/random. Wouldn't be the xmpp.Client constructor (or however that is > called in Python land) be a better place for that? > > Thanks, > Patrick. > > -- > Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc > Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Patrick N. <ma...@pa...> - 2010-01-24 07:00:26
|
Hi, I just discovered xmpppy (which is great, thanks!), and I am a Python newbie. When I try using xmpppy with the example script, it often (but not always) hangs when I call the script. strace tells me, that it's waiting for data from /dev/random. This happens during the 'import xmpp' call. Now, this probably doesn't happen on busy systems, where /dev/random always has numbers, but on my quiet home server, it's definitely annoying. Since I'm a Python newbie, I don't know how things are done there, but from my experience just doing 'import <library>' shouldn't do complex things that can go wrong or take a long time, such as getting a random number from /dev/random. Wouldn't be the xmpp.Client constructor (or however that is called in Python land) be a better place for that? Thanks, Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |
From: Norman R. <no...@ra...> - 2010-01-20 17:18:29
|
On Mon, Jan 18, 2010 at 5:13 PM, Caio Brentano <cai...@gm...>wrote: > Resolved! > > cnx = xmpp.Client('my_server') > > ... > > p = xmpp.protocol.Presence('my_room@my_server/my_Nick') > p.setTag('x', namespace=xmpp.protocol.NS_MUC).*setTagData*('password', > 'my_password') > cnx.send(p) > > yep, that's it. > > On Mon, Jan 18, 2010 at 10:52 AM, Caio Brentano <cai...@gm...>wrote: > >> >> >> On Sat, Jan 16, 2010 at 9:38 PM, Norman Rasmussen <no...@ra... >> > wrote: >> >>> On Fri, Jan 15, 2010 at 7:18 PM, Caio Brentano <cai...@gm...>wrote: >>> >>>> Hi all >>>> >>>> I developed a little client just to send messages. It's ok to send >>>> messages directly to users. But I need to send messages to Conferences Room >>>> too. Any idea how can I do this? >>>> >>> >>> You need to send presence to the room to enter it before sending it a >>> message. Generally you send directed presence to room@server/Nick >>> (where Nick is the name of your client in the room). The room will then >>> send you presence and message history. As soon as you see yourself in the >>> room you can send it a message. so cl.sendPresence('room@server/Nick') >>> should work >>> >>> The conference rooms in my company xmpp server requires Authentication. I >>>> didn't find anything about auth to rooms. >>>> >>> >>> You will need to create a Presence stanza, set the password, and send it >>> separately, something like this should work: >>> p = Presence('room@server/Nick) >>> p.setTag('x', namespace=NS_MUC).setTag('password', pass) >>> cl.send(p) >>> >>> >> I did this: >> >> p = xmpp.protocol.Presence('my_room@my_server/my_Nick') >> p.setTag('x', namespace=xmpp.protocol.NS_MUC).setTag('password', >> 'my_password') >> cnx.send(p) >> >> And got this errors: >> >> Traceback (most recent call last): >> File "./teste.py", line 14, in ? >> p.setTag('x', namespace=xmpp.protocol.NS_MUC).setTag('password', >> 'my_password') >> File "/home/semon/testePY/xmpp/simplexml.py", line 282, in setTag >> else: return self.addChild(name, attrs, namespace=namespace) >> File "/home/semon/testePY/xmpp/simplexml.py", line 164, in addChild >> else: newnode=Node(tag=name, parent=self, attrs=attrs, >> payload=payload) >> File "/home/semon/testePY/xmpp/simplexml.py", line 78, in __init__ >> for attr,val in attrs.items(): >> AttributeError: 'str' object has no attribute 'items' >> >> It seems that it doesn't know the attribute 'password'... >> >> Thanks... >> >> Thanks in advance! >>>> -- >>>> Caio Brentano >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Throughout its 18-year history, RSA Conference consistently attracts the >>>> world's best and brightest in the field, creating opportunities for >>>> Conference >>>> attendees to learn about information security's most important issues >>>> through >>>> interactions with peers, luminaries and emerging and established >>>> companies. >>>> http://p.sf.net/sfu/rsaconf-dev2dev >>>> _______________________________________________ >>>> Xmpppy-devel mailing list >>>> Xmp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >>>> >>>> >>> >>> >>> -- >>> - Norman Rasmussen >>> - Email: no...@ra... >>> - Home page: http://norman.rasmussen.co.za/ >>> >>> >>> ------------------------------------------------------------------------------ >>> Throughout its 18-year history, RSA Conference consistently attracts the >>> world's best and brightest in the field, creating opportunities for >>> Conference >>> attendees to learn about information security's most important issues >>> through >>> interactions with peers, luminaries and emerging and established >>> companies. >>> http://p.sf.net/sfu/rsaconf-dev2dev >>> _______________________________________________ >>> Xmpppy-devel mailing list >>> Xmp...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >>> >>> >> >> >> -- >> Caio Brentano >> > > > > -- > Caio Brentano > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Xmpppy-devel mailing list > Xmp...@li... > https://lists.sourceforge.net/lists/listinfo/xmpppy-devel > > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |
From: Caio B. <cai...@gm...> - 2010-01-18 17:13:47
|
Resolved! cnx = xmpp.Client('my_server') ... p = xmpp.protocol.Presence('my_room@my_server/my_Nick') p.setTag('x', namespace=xmpp.protocol.NS_MUC).*setTagData*('password', 'my_password') cnx.send(p) On Mon, Jan 18, 2010 at 10:52 AM, Caio Brentano <cai...@gm...>wrote: > > > On Sat, Jan 16, 2010 at 9:38 PM, Norman Rasmussen <no...@ra...>wrote: > >> On Fri, Jan 15, 2010 at 7:18 PM, Caio Brentano <cai...@gm...>wrote: >> >>> Hi all >>> >>> I developed a little client just to send messages. It's ok to send >>> messages directly to users. But I need to send messages to Conferences Room >>> too. Any idea how can I do this? >>> >> >> You need to send presence to the room to enter it before sending it a >> message. Generally you send directed presence to room@server/Nick (where >> Nick is the name of your client in the room). The room will then send you >> presence and message history. As soon as you see yourself in the room you >> can send it a message. so cl.sendPresence('room@server/Nick') should >> work >> >> The conference rooms in my company xmpp server requires Authentication. I >>> didn't find anything about auth to rooms. >>> >> >> You will need to create a Presence stanza, set the password, and send it >> separately, something like this should work: >> p = Presence('room@server/Nick) >> p.setTag('x', namespace=NS_MUC).setTag('password', pass) >> cl.send(p) >> >> > I did this: > > p = xmpp.protocol.Presence('my_room@my_server/my_Nick') > p.setTag('x', namespace=xmpp.protocol.NS_MUC).setTag('password', > 'my_password') > cnx.send(p) > > And got this errors: > > Traceback (most recent call last): > File "./teste.py", line 14, in ? > p.setTag('x', namespace=xmpp.protocol.NS_MUC).setTag('password', > 'my_password') > File "/home/semon/testePY/xmpp/simplexml.py", line 282, in setTag > else: return self.addChild(name, attrs, namespace=namespace) > File "/home/semon/testePY/xmpp/simplexml.py", line 164, in addChild > else: newnode=Node(tag=name, parent=self, attrs=attrs, payload=payload) > File "/home/semon/testePY/xmpp/simplexml.py", line 78, in __init__ > for attr,val in attrs.items(): > AttributeError: 'str' object has no attribute 'items' > > It seems that it doesn't know the attribute 'password'... > > Thanks... > > Thanks in advance! >>> -- >>> Caio Brentano >>> >>> >>> ------------------------------------------------------------------------------ >>> Throughout its 18-year history, RSA Conference consistently attracts the >>> world's best and brightest in the field, creating opportunities for >>> Conference >>> attendees to learn about information security's most important issues >>> through >>> interactions with peers, luminaries and emerging and established >>> companies. >>> http://p.sf.net/sfu/rsaconf-dev2dev >>> _______________________________________________ >>> Xmpppy-devel mailing list >>> Xmp...@li... >>> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >>> >>> >> >> >> -- >> - Norman Rasmussen >> - Email: no...@ra... >> - Home page: http://norman.rasmussen.co.za/ >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> >> > > > -- > Caio Brentano > -- Caio Brentano |