i connect to the internet using a proxy(direct connection is not
possible) so in cmd i "set proxy='myproxy.com:8080'"
After this also i got the same error, so i tried to ping
talk.google.com and i realised that my dns server wasnt returning the
address properly...
so i opened xmlstream.py and there i replaced talk.google.com with the
IP address that i got from a web based DNS server... i.e.
209.85.137.125
After this i tried again, and now the error changed to:-
File "confbot.py", line 1077, in <module>
connect()
File "confbot.py", line 976, in connect
con.connect()
File "C:\Documents and Settings\Administrator\Desktop\confbot-
v1_32\bot\jabber
.py", line 358, in connect
raise IOError(e)
IOError: (10061, 'Connection refused')
I browsed through the code and thought that mayb the port number is
not correct so i added "print self._port" just before it errors out...
that printed 5223, which is the correct port for accessing Gtalk
through jabber based clients, so now i am totally stuck and have no
idea what else to do...
just getting the connection refused error..
any help possible???
On 6/25/07, MountCleverest <sanjay.gi...@gmail.com> wrote:
>
> ~}Hi,
> --~~--~~---------~~--~~----~~------------~~-------~~--~~----~~
> ~{DzJU5=4KPEO"JGSISZDz6)TDAK~} Google ~{B[L3~}"confbot"~{B[L3!#~}
> ~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~5=~} con...@googlegroups.com
> ~{R*MK6)4KB[L3#,Gk7"SJ<~VA~} confbot-u...@googlegroups.com
> ~{8|6`Q!On#,GkM(9}~} http://groups.google.com/group/confbot?hl=zh-CN ~{7CNJ8CB[L3~}
> -~~----------~~----~~----~~----~~------~~----~~------~~--~~---
>
>
--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
~}For now, I know that the confbot doesn't support proxy.
On 6/25/07, MountCleverest <sanjay.gi...@gmail.com> wrote:
>
> ~~}Hi,
> --~~~~--~~~~---------~~~~--~~~~----~~~~------------~~~~-------~~~~--~~~~----~~~~
> ~~{DzJU5=4KPEO"JGSISZDz6)TDAK~~} Google ~~{B[L3~~}"confbot"~~{B[L3!#~~}
> ~~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~~5=~~} con...@googlegroups.com
> ~~{R*MK6)4KB[L3#,Gk7"SJ<~~VA~~} confbot-u...@googlegroups.com
> ~~{8|6`Q!On#,GkM(9}~~} http://groups.google.com/group/confbot?hl=zh-CN ~~{7CNJ8CB[L3~~}
> -~~~~----------~~~~----~~~~----~~~~----~~~~------~~~~----~~~~------~~~~--~~~~---
>
>
--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
--~~--~~---------~~--~~----~~------------~~-------~~--~~----~~
~{DzJU5=4KPEO"JGSISZDz6)TDAK~} Google ~{B[L3~}"confbot"~{B[L3!#~}
~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~5=~} con...@googlegroups.com
~{R*MK6)4KB[L3#,Gk7"SJ<~VA~} confbot-u...@googlegroups.com
~{8|6`Q!On#,GkM(9}~} http://groups.google.com/group/confbot?hl=zh-CN ~{7CNJ8CB[L3~}
-~~----------~~----~~----~~----~~------~~----~~------~~--~~---
Because jabber.py doesn't support proxy.
> i think this is because confbot uses the socket library using
> socket.socket.connect() which is a low level netwrking library...
> i am not aware if this library allows usage of proxy to connect...
> i am a newbie in python so if any1 here knows, please tell me
>
> other way wud b to use the high level web access library of urllib or
> urllib2 both of whch support proxy, but i believe making this change would
> require extensive changes in the code..am i correct? or is there some
> command which can be used to just replace the socket.connect in line 358 of
> xmlstream.py?
Yeah, urllib could support proxy very well, and I don't know how to
make jabber.py support proxy, it's beyond my skill. I'm sorry. I don't
know if the simple replacement will do the work, and you can try it
yourself.
>
> any python wizards on this group that can help me?
>
--
--~~--~~---------~~--~~----~~------------~~-------~~--~~----~~
~{DzJU5=4KPEO"JGSISZDz6)TDAK~} Google ~{B[L3~}"confbot"~{B[L3!#~}
~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~5=~} con...@googlegroups.com
~{R*MK6)4KB[L3#,Gk7"SJ<~VA~} confbot-u...@googlegroups.com
~{8|6`Q!On#,GkM(9}~} http://groups.google.com/group/confbot?hl=zh-CN ~{7CNJ8CB[L3~}
-~~----------~~----~~----~~----~~------~~----~~------~~--~~---