popacai / pytool Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pytool
Automatically exported from code.google.com/p/pytool
我觉得你写的这个程序太好了,完全开源,完全好用!比那��
�闭源的强一万倍!!!
非常感谢你的工作!!!祝你天天开心!!!
Original issue reported on code.google.com by [email protected]
on 2 Jun 2010 at 3:08
1. PyFetion2010/Win7/Python2.5
2. 在命令行里面打开fetion.py登陆
3. 报错如下
-->Traceback (most recent call last):
File "C:\Users\eggfly\Desktop\PyFetion\fetion.py", line 450, in <module>
sys.exit(main())
File "C:\Users\eggfly\Desktop\PyFetion\fetion.py", line 406, in main
ret = phone.login(FetionOnline)
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 820, in login
response = self.__register(self._ssic,self._domain)
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 1269, in __register
self.get("REG",step,response)
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 222, in get
response = self.__RSA_Encrypt(plain,len(plain),a2b_hex(key[:-6]),a2b_hex(key
[-6:]))
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 608, in __RSA_Encryp
t
crypto_handler = ctypes.cdll.LoadLibrary("RSA_Encrypt.dll")
File "C:\Python25\lib\ctypes\__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "C:\Python25\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126]
并且找不到那个dll如图
(我确定吧rsa加密dll放在了相同目录)
我去http://www.dll-files.com/pop.php?dll=libeay32下载了这个dll放在syste
m32
然后还是报错 但是不太一样..如下
------->Traceback (most recent call last):
File "C:\Users\eggfly\Desktop\PyFetion\fetion.py", line 450, in <module>
sys.exit(main())
File "C:\Users\eggfly\Desktop\PyFetion\fetion.py", line 406, in main
ret = phone.login(FetionOnline)
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 820, in login
response = self.__register(self._ssic,self._domain)
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 1269, in __register
self.get("REG",step,response)
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 222, in get
response = self.__RSA_Encrypt(plain,len(plain),a2b_hex(key[:-6]),a2b_hex(key
[-6:]))
File "C:\Users\eggfly\Desktop\PyFetion\PyFetion.py", line 622, in __RSA_Encryp
t
ret = RSA_Encrypt(plain,length,n,e)
WindowsError: exception: access violation reading 0x00000004
是什么问题楼主?
Original issue reported on code.google.com by [email protected]
on 23 Sep 2010 at 5:27
Attachments:
用svn下的代码不能登录,log如下:
Line:628 Fun:http_send
url:https://uid.fetion.com.cn/ssiportal/SSIAppSignInV4.aspx?mobileno=13?????????
&domains=fetion.com.cn%3bm161.com.cn%3bwww.ikuwa.cn&v4digest-type=1&v4digest=???
???????????????????????????????????
Line:1348 Fun:__get_uri {'status': '101', 'body': '<?xml version="1.0"
encoding="utf-8" ?><results status-code="200"><user
uri="sip:[email protected];p=3997" mobile-no="????????????"
user-status="101" user-id="249854282"><credentials><credential
domain="fetion.com.cn"
c="ChIOAAA1h8VVPWb6rJINEJMg3UVCzEH6M/UQ4CtJ7zQ1Qej2HQCeh3vTRoK1TLk8nbGCBsG3qizgV
mtgSTY7ZCb5gkRgaO2HVb9CoyVvmvRzvgg4iGD4wQwahlQX3gTpnHSU1J0AAA==" /><credential
domain="m161.com.cn"
c="CBAOAACTnMc6kAPrKgwYZGLTj8emMsJG7M5qxrNmUzhrK1C87L1yJzCgXRmyP+ZR8GIPvVuJtVXCR
d+QM5JriD2gbweW7oCA9g4V40q0vK7FSZXV7Q==" /><credential domain="www.ikuwa.cn"
c="ChAOAADilCsA1HgVybRrIAEi4ShprC/vcx8l3EGWX1r2LTjABFOQ9u7YxojD6XO4jJSYAH8Ubl1oP
heWv6k2clhYBuZ03fvp+4xq1ra7+uU5eY1xCg==" /></credentials></user></results>',
'domain': 'fetion.com.cn', 'user_id': '249854282', 'ssic':
'DRIOAABxpN4ySVdRCXBUE73CecDrq/YgeDPaVzV5ETKEvuRYPe4nY4F668qs6r0TFz0013QVizX/UC6
xcCrG18VKFaXr4Imn0uc2PMwS4bVEh4IoQzkBoMzAuTMfEqQYQfJLKV4AAA==', 'url':
'https://uid.fetion.com.cn/ssiportal/SSIAppSignInV4.aspx?mobileno=???????????&do
mains=fetion.com.cn%3bm161.com.cn%3bwww.ikuwa.cn&v4digest-type=1&v4digest=??????
??????????????????????????', 'self': <PyFetion.PyFetion instance at 0x28cd7e8>,
'uri': 'sip:[email protected];p=3997', 'ret': <addinfourl at 42812768
whose fp = <socket._fileobject object at 0x28d50d0>>, 'header': 'Connection:
close\r\nDate: Sun, 17 Oct 2010 02:27:38 GMT\r\nServer:
Microsoft-IIS/6.0\r\nX-Powered-By: ASP.NET\r\nX-AspNet-Version:
2.0.50727\r\nSet-Cookie:
ssic=DRIOAABxpN4ySVdRCXBUE73CecDrq/YgeDPaVzV5ETKEvuRYPe4nY4F668qs6r0TFz0013QVizX
/UC6xcCrG18VKFaXr4Imn0uc2PMwS4bVEh4IoQzkBoMzAuTMfEqQYQfJLKV4AAA==;
path=/\r\nCache-Control: private\r\nContent-Type: text/html;
charset=utf-8\r\nContent-Length: 714\r\n', 'sid': '?????????'}
Line:392 Fun:send content:R fetion.com.cn SIP-C/4.0
F: ????????
I: 1
Q: 1 R
CN: 491c23644b7769ede1af078cb14901e2
CL: type="pc",version="4.1.1160"
Line:220 Fun:get {'p2': '64187a0f912cac3???????????????ef1bb5', 'nonce':
'6CFDDB17?????????????????BB00', 'p1':
'd5dc9238991??????????????????5591a283bb754ef', 'extra': ('SIP-C/4.0 401
Unauthoried\r\nF: ?????????\r\nI: 1\r\nQ: 1 R\r\nW: Digest
algorithm="SHA1-sess-v4",nonce="6CFDDB171?????????????
?806D44BB00",key="CB5786305210F2F686555FFEAFC???????????????????????????DC8693
80FBC913603084CCE9AFAE9164759785C7EBDDA6ADAC18035B4C0D23BC62643003E057886D6EC3BA
BBBCAE21021804EDE55FD4A3947F7B432B070BF33F0EE27E8FFE0FAB523C08DF2CC0945D6E899988
3D2902CFF34A338A27E34191C2E42E9A9010001",signature="38E5292?????????????????????
?0279ED2A9AC442619784D577BA651E296550247FCBA5E6B626130D224271637D7CF86EFC3209D1C
378AAF342DE56F984DE8909011A9859839E0F6D5AD75429DF8AED9EA4CEF6A355902A3032446F265
E6DFC82CE32485????????????????F9B67B4019488F92CE61DA"\r\n\r\n',), 'plain':
'6CFDDB17????????????????6D44BB00d\x18z\x0f\x91,\xac1\xc1\x17"\xd7\xac\xced|\x1c
\xef\x1b\xb5\xe1F\xa9\xe3\x1e\xfbA\xf2\xd7\xabX\xba|\xcd\x1f)X\xec\x94J\\\xff\xd
cQHs\x98i#\xc6Eg', 'self': <PyFetion.PyFetion instance at 0x28cd7e8>, 'cmd':
'REG', 'body': '<args><device accept-language="default"
machine-code="00000000000000000000000000000000" /><caps value="1FFF" /><events
value="7F" /><user-info mobile-no="??????????" user-id="249854282"><personal
version="0" attributes="v4default;alv2-version;alv2-warn;dynamic-version"
/><custom-config version="0"/><contact-list version="0"
buddy-attributes="v4default" /></user-info><credentials
domains="fetion.com.cn;m161.com.cn;www.ikuwa.cn;games.fetion.com.cn;turn.fetion.
com.cn;pos.fetion.com.cn;ent.fetion.com.cn;mms.fetion.com.cn"/><presence><basic
value="400" desc="" /><extendeds /></presence></args>\n', 'key':
'CB5786305210F2F686555FFEAFCF7A75BCE1755C1400096D57AA5AF19DC869380FBC913603084CC
E9???????????????????DA6ADAC18035B4C0D23BC62643003E057886D6EC3BABBBCAE21021804ED
E55FD4A3947F7B432B070BF33F0EE27E8FFE0FAB523C08DF2CC0945D6E8999883D2902CFF34A338A
27E34191C2E42E9A9010001', 'arg': 2, 'response':
'6b233e0e34b9753a572b67223c8a00e7a9c68aff03483477d5b380cf45b6c95381715a608dce1ac
ca65606ed83585f8c7782???????????????2fb0c905932eda1349821806d27eb3125af2ab4e429d
e6065b5f0c7cbda7a0d4d5b1575eff1d0c10145f6283d761ceb220589bdc693f0ceb8588'}
Line:392 Fun:send content:R fetion.com.cn SIP-C/4.0
F: ??????????
I: 1
Q: 1 R
A: Digest
algorithm="SHA1-sess-v4",response="6b233e0e34b9753a572b67223c8a00e7a9c68aff03483
477d5b380cf45b6c95381715a608dce1acca65606ed83585f8c77820386ca2016fc630cc0c8a4db7
9eb02c49357ec24??????????????????????5b5f0c7cbda7a0d4d5b1575eff1d0c10145f6283d76
1ceb220589bdc693f0ceb8588"
L: 597
<args><device accept-language="default"
machine-code="00000000000000000000000000000000" /><caps value="1FFF" /><events
value="7F" /><user-info mobile-no="?????????" user-id="249854282"><personal
version="0" attributes="v4default;alv2-version;alv2-warn;dynamic-version"
/><custom-config version="0"/><contact-list version="0"
buddy-attributes="v4default" /></user-info><credentials
domains="fetion.com.cn;m161.com.cn;www.ikuwa.cn;games.fetion.com.cn;turn.fetion.
com.cn;pos.fetion.com.cn;ent.fetion.com.cn;mms.fetion.com.cn"/><presence><basic
value="400" desc="" /><extendeds /></presence></args>
Line:839 Fun:login Register Failed!
看不懂,似乎是401错误。
但用旧的pyfetion0.3却能正常登录。
Original issue reported on code.google.com by [email protected]
on 17 Oct 2010 at 3:05
1.
phone = PyFetion("13619861986","123456","TCP")
phone.login()
phone.send_msg("cocobear.info","782079728")
##always failed, the debug info show sent successfully, but the phone
can not receive any message
phone.send_sms("new info","1111222")
##always successful, the debug info show sent successfully, and the
phone can get the message
the latest version in subversion
Original issue reported on code.google.com by [email protected]
on 3 Aug 2009 at 7:52
不知道是不是11月20日飞信升级后出现的问题,密码应该没问�
��,openfetion就不会,libfetion也是每次要输入,看了几天也没��
�出什么问题,看哪位大侠能帮忙看看。
Original issue reported on code.google.com by [email protected]
on 24 Nov 2010 at 9:04
Added a method 'delete' for PyFetion to delete buddy.
Original issue reported on code.google.com by [email protected]
on 6 Aug 2009 at 4:07
Attachments:
PyFetion:l
0 短信 曾文胜
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "./fetion.py", line 90, in run
self.cmd(raw_input(self.hint))
File "./fetion.py", line 229, in cmd
printl("%-4d%-8s%-20s" % (i,status[buddys[buddys.keys()[i]][2]],buddys[buddys.keys()[i]][0],))
KeyError: '499'
Original issue reported on code.google.com by [email protected]
on 18 Dec 2010 at 2:28
1。Window 在PIL 调用图片查看的时候,
在你的PyFeion 里 有句 show(fname),会报异常,没捕捉到。
是因为PIL库内部错误。
还是加个异常处理吧。
try:
show(fname)
except Exception,e:
print e
def show(image, title=None, **options):
for viewer in _viewers:
if viewer.show(image, title=title, **options):
return 1
return 0
这个函数会报错。我是Window7,或者Fedora,Python 2.5.4
2.R91 版本中遗漏了这句话。
from uuid import uuid1
3.老大是高手,我看到过老大关于Python验证码识别的理论,能
否把pic_code 自动识别,体现老大水平的地方。
pic_code = raw_input("\t输入验证码".decode('utf-8').encode((os.name ==
'posix' and 'utf-8' or 'cp936')))
换成一个自动识别的函数。
pic_code = recognize('fetion_verify.bmp')
4.HTTP模式下 R91 版本不能运行。
5.Java版的Fetion,http://code.google.com/p/maplefetion/ 异常捕捉和心�
��还是做得不错的,就是也是需要人工输入图片验证码?老大
有兴趣超越哇。
Original issue reported on code.google.com by [email protected]
on 24 Nov 2010 at 6:44
好长时间了,无论哪个版本,我是使用的archlinux AUR
上的脚本编译安装的
http://aur.archlinux.org/packages.php?ID=32640
命令行登录日志:
myname@arch $ clifetion
手机号:1380******4
口 令:******
===>=======Traceback (most recent call last):
File "/usr/bin/clifetion", line 436, in <module>
sys.exit(main())
File "/usr/bin/clifetion", line 392, in main
ret = phone.login(FetionOnline)
File "/usr/lib/python2.7/site-packages/PyFetion.py", line 809, in login
response = self.__register(self._ssic,self._domain)
File "/usr/lib/python2.7/site-packages/PyFetion.py", line 1266, in __register
self.get("REG",2,response)
File "/usr/lib/python2.7/site-packages/PyFetion.py", line 216, in get
response = self.__RSA_Encrypt(plain,len(plain),key[:-6],key[-6:])
File "/usr/lib/python2.7/site-packages/PyFetion.py", line 590, in __RSA_Encrypt
import rsa
ImportError: No module named rsa
Original issue reported on code.google.com by [email protected]
on 28 Nov 2010 at 3:47
What steps will reproduce the problem?
--------------------------
from PyFetion import *
File "/base/data/home/apps/xxxx/1.339107/PyFetion.py", line 23, in <module>
from select import select
<type 'exceptions.ImportError'>: cannot import name select
------------------------------
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 12 Jan 2010 at 5:56
现在只能用手机号登陆,但是我不是移动用户只是用email注册
的飞信号。比如MapleFetion是可以的,不知道可不可以修改一下
。。。。
Original issue reported on code.google.com by [email protected]
on 2 Dec 2010 at 4:17
GAE上运行python有些限制
这个版本是要调用RSA_Encrypt.so库,GAE不能调用so库,怎么替换�
��?
我觉得调用RSA_Encrypt.so库,反而增加了使用的繁琐,如Win7也��
�些问题,给个纯python的实现不是到处通用了吗?
往各位牛人专家能突破这个小问题!
另外
import urllib2
from threading import RLock
from threading import Thread
GAE上也是不可行的吧?
求怎么修改,使得这个版本能移植到GAE上去。
Original issue reported on code.google.com by [email protected]
on 25 Oct 2010 at 4:11
What steps will reproduce the problem?
1. 登录
2. f 21
3. 出现异常
What is the expected output? What do you see instead?
应该显示不存在 现在出现traceback
What version of the product are you using? On what operating system?
用的是0.2版Pyfetion, Ubuntu 8.04 amd64
Please provide any additional information below.
printl("编号超出好友范围")之后要 加 return
Original issue reported on code.google.com by [email protected]
on 16 Dec 2009 at 8:42
看着大家用不了PyFetion了,也深有感触,特将自己在PyFetion基�
��上修改而来的版本上传上来,供大家使用,不敢独享。暂定
版本为PyFetion v0.3吧,希望大家喜欢!
本版本在原有版本基础上,
修改内容:
1.
修改飞信SSI登录的密码传输方式。原来使用明文传输,修改��
�sha1二次加密后传输;
2. 增加了对通过飞信号登录的支持
3. 增加了对通过命令行传参方式登录的支持
Python fetion.py 13888888888 1234567
Original issue reported on code.google.com by [email protected]
on 2 Aug 2010 at 11:04
Attachments:
请问如何解决?
PyFetion:Exception in thread Thread-5:
Traceback (most recent call last):
File "C:\Python26\lib\threading.py", line 532, in __bootstrap_inner
self.run()
File "C:\Documents and Settings\gongqf\桌面\PyFetion\PyFetion.py", line 722, i
n run
SIPC.__init__(self,self.args)
File "C:\Documents and Settings\gongqf\桌面\PyFetion\PyFetion.py", line 129, i
n __init__
self._ssic, self._sipc_proxy, self.presence, self._lock] = args
ValueError: need more than 8 values to unpack
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Python26\lib\threading.py", line 532, in __bootstrap_inner
self.run()
File "C:\Documents and Settings\gongqf\桌面\PyFetion\fetion.py", line 90, in r
un
self.cmd(raw_input(self.hint))
File "C:\Documents and Settings\gongqf\桌面\PyFetion\fetion.py", line 115, in
cmd
self.phone.session[self.to]._send_msg(toUTF8(arg))
File "C:\Documents and Settings\gongqf\桌面\PyFetion\PyFetion.py", line 767, i
n _send_msg
self.get("SendMsg",'',msg)
File "C:\Documents and Settings\gongqf\桌面\PyFetion\PyFetion.py", line 235, i
n get
self.init('M')
File "C:\Documents and Settings\gongqf\桌面\PyFetion\PyFetion.py", line 148, i
n init
self._content = '%s %s %s\r\n' % (type,self._domain,self.ver)
AttributeError: 'on_cmd_I' object has no attribute '_domain'
Original issue reported on code.google.com by [email protected]
on 19 Oct 2010 at 7:23
移动已经禁止直接用手机号码发送给其他手机了。
只支持sip方式发送。
Original issue reported on code.google.com by [email protected]
on 11 Dec 2009 at 6:14
http://feixin.10086.cn/bulletin/2493/1
飞信停用低版本PC客户端公告(2010.7.25)
发布时间:2010-07-19
尊敬的用户:
为了提升飞信系统安全性,于2010年7月25日起,飞信平台将停�
��对3.3及以下的低版本PC客户端提供支持,您将无法使用3.3及�
��下的低版本PC客户端登录飞信。您可以访问飞信官网下载频�
��http://feixin.10086.cn/download/下载并安装最新版本PC客户端后再��
�尝试登录。
对此给您带来的不便我们深表歉意,期待您一如既往的关注��
�信!
飞信官方网站
2010-07-19
Original issue reported on code.google.com by [email protected]
on 25 Jul 2010 at 6:18
PyFetion.py
127 行:
if args:
[self.userid,self.sid, self._domain,self.login_type, self._http_tunnel,\
self._ssic, self._sipc_proxy, self.presence, self._lock] = args
和876行
args =
[self._user_id,self.sid,self._domain,self.login_type,self._http_tunnel,self._ssi
c,sipc_proxy,self.presence,None]
前面多了一个 self.userid, list的长度不一样
Original issue reported on code.google.com by [email protected]
on 21 Nov 2010 at 3:39
有人试过吗?
验证码怎么输入,还是无需输入验证码了?
Original issue reported on code.google.com by [email protected]
on 30 Nov 2010 at 8:54
下面是log:
Line:1139 Fun:send_msg Send sms OK!
Line:402 Fun:send content:R fetion.com.cn SIP-C/4.0^M
F: 57???????^M
I: 1^M
Q: 1 R^M
X: 0^M
^M
Line:575 Fun:__split data:
Line:575 Fun:__split data:
Line:575 Fun:__split data:
Line:1206 Fun:receive logout
Line:575 Fun:__split data:
Line:575 Fun:__split data:
Line:575 Fun:__split data:
行号可能有点不一样,我改了一点。
后面就全是Line:575了,exit也不行,只能kill掉了。
看来似乎是发完一条信息,收到280后,又回复了一个Line:402那
段,就进入:
while True and data:
if not re.search("L: (\d+)",data) and not data[-4:] == '\r\n\r\n':
data = self.__sock.recv(bs)
total_data.append(data)
elif not re.search("L: (\d+)",data) and data[-4:] == '\r\n\r\n':
return total_data
else:
break
可能是这个循环出不去,我试过一次,但不是每次都这样。
Original issue reported on code.google.com by [email protected]
on 25 Nov 2010 at 2:03
I download the python scripts , when it is excuted , it reports that :
File "./fetion.py" , line 418
finally:
^
SyntaxError:invalid syntax
The line 418 is: finally:
how to deal with it ?
Thank you !
郁闷~!原来可以写中文啊....
就是运行的时候报错:
File "./fetion.py" , line 418
finally:
^
SyntaxError:invalid syntax
也不知道怎么搞了....这种语言不太熟悉。
谢谢!
Original issue reported on code.google.com by [email protected]
on 16 Nov 2010 at 10:55
手机号:138********
口 令:**************
---->Traceback (most recent call last):
File "./fetion.py", line 450, in <module>
sys.exit(main())
File "./fetion.py", line 406, in main
ret = phone.login(FetionOnline)
File "/home/redhacker/pyfetion/PyFetion.py", line 820, in login
response = self.__register(self._ssic,self._domain)
File "/home/redhacker/pyfetion/PyFetion.py", line 1269, in __register
self.get("REG",step,response)
File "/home/redhacker/pyfetion/PyFetion.py", line 222, in get
response = self.__RSA_Encrypt(plain,len(plain),a2b_hex(key[:-6]),a2b_hex(key[-6:]))
File "/home/redhacker/pyfetion/PyFetion.py", line 608, in __RSA_Encrypt
crypto_handler = ctypes.cdll.LoadLibrary(lib)
File "/usr/lib/python2.6/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libcrypto.so.6: cannot open shared object file: No such file or
directory
Original issue reported on code.google.com by [email protected]
on 20 Nov 2010 at 6:32
Log如下
Line:399 Fun:send content:S fetion.com.cn SIP-C/4.0
F: 751702807
I: 1
Q: 1 S
N: GetOfflineMessages
SIPP
Line:639 Fun:http_send url:http://221.176.31.45/ht/sd.aspx?t=s&i=17
Line:639 Fun:http_send url:http://221.176.31.45/ht/sd.aspx?t=s&i=18
Line:460 Fun:__sendSIPP response:SIP-C/4.0 400 Bad Request
I: 1
Q: 1 S
看起来是电信改了协议?
Original issue reported on code.google.com by [email protected]
on 23 Nov 2010 at 6:06
我放在Google App
Engine上了,login成功,在线状态也显示出来了,然后fetion.send_sms(
'Hello',to,True)
为什么to(手机号)缺收不到信息呢?
Original issue reported on code.google.com by gaoning87
on 11 Mar 2010 at 3:36
1.使用HTTP方式登录失败
2.使用openFetion发送的信息用pyFetion则收不到。(如果双方都使
用pyFetion则可以互相发信息)
3.在pyFeion.py的1271行args少了一个self._user_id参数(不知是否是这�
��)
args =
[self._user_id,self.sid,self._domain,self.login_type,self._http_tunnel,self._ssi
c,self._sipc_proxy,self.presence,None]
在
http登录失败信息如下:
liuke@liuke-laptop2:~/pytool-read-only/PyFetion$ ./fetion.py
=>=========Traceback (most recent call last):
File "./fetion.py", line 455, in <module>
sys.exit(main())
File "./fetion.py", line 411, in main
ret = phone.login(FetionOnline)
File "/home/liuke/pytool-read-only/PyFetion/PyFetion.py", line 843, in login
response = self.__register(self._ssic,self._domain)
File "/home/liuke/pytool-read-only/PyFetion/PyFetion.py", line 1289, in __register
SIPC.__init__(self)
File "/home/liuke/pytool-read-only/PyFetion/PyFetion.py", line 131, in __init__
guid = str(uuid1())
NameError: global name 'uuid1' is not defined
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 2:16
我下载了后总是提示
$ python fetion.py 136******44 text
手机号:136******44
口 令:*********
----->登录失败
然后,看PyFetion.log文件发现是"飞信发现您本次变更了登录地�
��。为保证您的帐号安全,需要您输入验证码,这可以防止恶
意程序的自动登录。"
Original issue reported on code.google.com by [email protected]
on 23 Sep 2010 at 9:00
今天头脑风暴了下,想找个pyfetion的东东,今天找到了已经是
2010年7月25日,淫动官方网既然说从7月25日起低版本的fetion
pc端不可用!测试了下pyfetion,log说https://uid.fetion.com.cn/ssiporta
l/SSIAppSignIn.aspx?mobileno没找到,晕阿!
大力支持项主继续推出pyfetion支持2010客户端!
Original issue reported on code.google.com by [email protected]
on 25 Jul 2010 at 12:55
我今天安装了SVN
r76,其他都正常,就是收不到别人发来的信息,不过 log
和~/.pyfetion/chat_history.dat 文件中可以看到有别人发来的信息。
Original issue reported on code.google.com by [email protected]
on 5 Mar 2010 at 7:45
登录之后用ls显示好友的列表,之后使用sms或msg发送消息时,
显示的好友名称不是
好友列表里对应的名称。
Original issue reported on code.google.com by [email protected]
on 15 Dec 2009 at 12:52
用的r43版。
把get_offline_msg里面的response返回。
我这么写的:
phone = PyFetion(fetion_id, fetion_pwd, 'HTTP', False)
phone.login()
msg=phone.get_offline_msg()
print msg
但是离线消息有时能收到,丢的很多啊。有什么问题吗?
Original issue reported on code.google.com by [email protected]
on 20 Sep 2009 at 2:54
PyFetion.py中第423行的while在某些情况下会死循环
while response is '':
try:
ret = self.__tcp_recv()
except socket.error,e:
raise PyFetionSocketError(e)
for rs in ret:
code = self.get_code(rs)
try:
int(code)
response = rs
except exceptions.ValueError:
self.queue.put(rs)
continue
当你由于要求输入验证码的时候,而没正常登陆,这时候response
一直为空
所以造成死循环,python.exe
占用CPU100%运行,而如果只时候,你又恰好开启log的话,回不停的�
��文件到log中,直到占满硬盘为止.
有while的情况,代码应该尽量避免可能的死循环.
Original issue reported on code.google.com by [email protected]
on 2 Oct 2010 at 2:20
LZ,你获取隐身信息的方法就是跟pidgin飞信插件中右键好友头
像选择“新建会话”一样的对吧?貌似这个方法被移动封了��
�那个插件上不管用,你用python代码start_chat()调用也不管用了�
��
不过我正好初学python,研究研究LZ大作:)
Original issue reported on code.google.com by [email protected]
on 13 Nov 2010 at 5:27
What steps will reproduce the problem?
1.正确的手机号
2.正确的密码
3.登陆
What is the expected output? What do you see instead?
WindowsError: exception: access violation reading 0x00000004
What version of the product are you using? On what operating system?
xp系统 2010版本
Please provide any additional information below.
-->Traceback (most recent call last):
File "C:\Documents and Settings\gongzhe\桌面\fetion\PyFetion\fetion.py", line
451, in <module>
sys.exit(main())
File "C:\Documents and Settings\gongzhe\桌面\fetion\PyFetion\fetion.py", line
407, in main
ret = phone.login(FetionOnline)
File "C:\Documents and Settings\gongzhe\桌面\fetion\PyFetion\PyFetion.py", lin
e 820, in login
response = self.__register(self._ssic,self._domain)
File "C:\Documents and Settings\gongzhe\桌面\fetion\PyFetion\PyFetion.py", lin
e 1269, in __register
self.get("REG",step,response)
File "C:\Documents and Settings\gongzhe\桌面\fetion\PyFetion\PyFetion.py", lin
e 222, in get
response = self.__RSA_Encrypt(plain,len(plain),a2b_hex(key[:-6]),a2b_hex(key
[-6:]))
File "C:\Documents and Settings\gongzhe\桌面\fetion\PyFetion\PyFetion.py", lin
e 622, in __RSA_Encrypt
ret = RSA_Encrypt(plain,length,n,e)
WindowsError: exception: access violation reading 0x00000004
Original issue reported on code.google.com by [email protected]
on 10 Jan 2011 at 6:25
正常登录,使用手机号。
应该维登录成功,而且没有错误。但是虽然登录成功,但接��
�线程内有错误发生。
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner
self.run()
File "./fetion.py", line 30, in run
for e in self.phone.receive():
File "/home/dong/下载/PyFetion/PyFetion.py", line 1218, in receive
if type == "ServiceResult":
UnboundLocalError: local variable 'type' referenced before assignment
我用的是Version:0.2 OS:Fedora11 Python:2.6
我看了一下,可能是刚开始的第一条response只包含
<events></events>,用
re.findall('<event type="(.+?)"',response)之后,返回空列表的问题。
我将
type = re.findall('<event type="(.+?)"',response)[0]
这一句改成
type = re.findall('<event type="(.+?)"',response)
type = type[0]
之后,就正常了。不知道是不是Python自己的问题。
Original issue reported on code.google.com by [email protected]
on 21 Apr 2010 at 8:37
我是不久前用邮箱注册了一个飞信号,我在windows下用官方的f
etion2010可以登录,
但用pyfetion就无法登录,还有那个libfetion-gui也不行。真诚期��
�你们能够解决这
个问题,谢谢。
Original issue reported on code.google.com by [email protected]
on 5 Mar 2010 at 11:49
keep alive 返回的结果一直是501
加上 self._header.append(('N','ALIVE'))
和一个从openfetion抄来的body以后变成400
Original issue reported on code.google.com by [email protected]
on 20 Nov 2010 at 5:04
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 Jan 2011 at 4:52
您好,老大,貌似 R95 版本。
1.TCP和HTTP方式都不能实现心跳。
2.Window和Linux都不能实现心跳。
发现Alive的回来的HTTP的CODE 401。
Python的版本是2.5.1 或者2.5.4,系统是Win7或者CentOS 5.
老大看看啥情况。
Original issue reported on code.google.com by [email protected]
on 10 Dec 2010 at 12:47
使用ls后,用“m
序列号”的方式发送信息,部分序列号有误;已经删除关闭��
�信服务的好友了
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 6:59
请问如何实现加两行代码就可以实现从手机发命令关机等功��
�。
Original issue reported on code.google.com by [email protected]
on 30 Dec 2009 at 2:59
已经完全无法登录了
Original issue reported on code.google.com by ayanamist
on 9 Sep 2010 at 12:53
为什么我的运行后就自动退出了呢?
./fetion.py
手机号:1365024xxxx
口 令:************
------------>登录成功
停止接收消息
停止发送心跳
飞信退出
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 2:07
quit命令可能有点小问题。
这个命令应该是从会话session中退出,但是在处理这个命令的�
��数中的
self.prompt=self.prompt.split()[0]+">"
有点问题。
如果在刚刚登录进去的那个会话中使用quit的话,会导致每一�
��使用quit
后,nickname后面的'>'号就会多一个。
原因是self.prompt刚开始是一整个字符串'nickname>',使用上面那�
��代码后,就变
成了'nickname>>'。
当然在sms和msg会话中正常,因为在这种情况下nickname和后面的
是有空格分隔
的,self.prompt.split()[0]可以正常分离出nickname。
所以我觉得可以在构建prompt的时候,在nickname后面加上一个空
格就可以了。当然
也可以在'>'前面加上空格。
Original issue reported on code.google.com by [email protected]
on 23 Apr 2010 at 3:51
怎么样才能把手机号密码保存起来呢,每次输入很麻烦
Original issue reported on code.google.com by [email protected]
on 5 Feb 2011 at 12:45
2010-11-20 11:35:38,601 ERROR Inform Can't start with Fetion error
2010-11-20 11:35:38,602 ERROR Inform (404, '<?xml version="1.0"
encoding="utf-8" ?><results status-code="404" />')
2010-11-20 11:35:38,608 ERROR Inform Login Session is down,or login other place
2010-11-20 11:35:38,608 ERROR Inform PyFetion instance has no attribute
'_SIPC__seq'
昨天还可以的。但是今天开始,Lib无法使用,老大是否有兴��
�再改进改进
Original issue reported on code.google.com by [email protected]
on 20 Nov 2010 at 3:36
无法登入,提示登入失败。
Original issue reported on code.google.com by [email protected]
on 16 Nov 2010 at 3:32
What steps will reproduce the problem?
1. send_msg("foo<bar")
What is the expected output? What do you see instead?
应该把foo<bar都发出去,但是只发出了foo。小于号之后的没有�
��出。
是不是飞信里<是特殊字符,要转义?
Original issue reported on code.google.com by [email protected]
on 6 Nov 2009 at 3:02
首先是so报错,后来重新编译了一个so,不再报错了,但是另�
��一个问题又出现了。
查看日志PyFetion.log,里面全是:
Line:565 Fun:__split data:
(注:使用命令行)
自己不会python,麻烦方便的朋友帮忙看看,谢谢!
Original issue reported on code.google.com by [email protected]
on 28 Sep 2010 at 10:24
有特殊帐号的
sip:[email protected];p=11901;t=robot
FetionOnline = "400"
FetionBusy = "600"
FetionAway = "100"
FetionHidden = "0"
FetionOffline = "365"
FetionRobot = "499"
FetionRobot:"机器"
Original issue reported on code.google.com by [email protected]
on 13 Jan 2011 at 4:24
我用于nagios报警的,最忌几次故障都没发出来,我看了一下��
�志才发现是提示手机号未开通飞信,我修改了一下代码,在e
xcept PyFetionSupportError,e:后面加了一个print
e使他打印错误提示,结果是一个404,看图
Original issue reported on code.google.com by [email protected]
on 23 Dec 2010 at 7:35
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.