LINE icon indicating copy to clipboard operation
LINE copied to clipboard

curve is not compatible with thrift 0.10.0

Open max32002 opened this issue 9 years ago • 3 comments

Error message:

File "/line/client.py", line 88, in init self.login() File "/line/api.py", line 132, in login self.com_name, self.provider, self.certificate) File "/Library/Python/2.7/site-packages/curve/CurveThrift.py", line 343, in loginWithIdentityCredentialForCertificate self.send_loginWithIdentityCredentialForCertificate(identifier, password, keyname, crypto, keepLoggedIn, accessLocation, systemName, identityProvider, certificate) File "/Library/Python/2.7/site-packages/curve/CurveThrift.py", line 358, in send_loginWithIdentityCredentialForCertificate args.write(self._oprot) File "/Library/Python/2.7/site-packages/curve/CurveThrift.py", line 2416, in write oprot.writeString(self.keyname) File "/Library/Python/2.7/site-packages/thrift/protocol/TProtocol.py", line 121, in writeString self.writeBinary(str_to_binary(str_val)) File "/Library/Python/2.7/site-packages/thrift/protocol/TCompactProtocol.py", line 42, in nested return func(self, *args, **kwargs) File "/Library/Python/2.7/site-packages/thrift/protocol/TCompactProtocol.py", line 272, in __writeBinary self.trans.write(s) File "/Library/Python/2.7/site-packages/thrift/transport/THttpClient.py", line 134, in write self.__wbuf.write(buf) TypeError: 'unicode' does not have the buffer interface

work around: pip install thrift==0.9.3

max32002 avatar Jan 18 '17 08:01 max32002

me too Error message.


  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\line\client.py", line 88, in __init__
    self.login()
  File "C:\Python27\lib\site-packages\line\api.py", line 130, in login
    self.com_name, self.provider, self.certificate)
  File "C:\Python27\lib\site-packages\curve\CurveThrift.py", line 343, in loginW
ithIdentityCredentialForCertificate
    self.send_loginWithIdentityCredentialForCertificate(identifier, password, ke
yname, crypto, keepLoggedIn, accessLocation, systemName, identityProvider, certi
ficate)
  File "C:\Python27\lib\site-packages\curve\CurveThrift.py", line 358, in send_l
oginWithIdentityCredentialForCertificate
    args.write(self._oprot)
  File "C:\Python27\lib\site-packages\curve\CurveThrift.py", line 2416, in write

    oprot.writeString(self.keyname)
  File "C:\Python27\lib\site-packages\thrift\protocol\TProtocol.py", line 121, i
n writeString
    self.writeBinary(str_to_binary(str_val))
  File "C:\Python27\lib\site-packages\thrift\protocol\TCompactProtocol.py", line
 42, in nested
    return func(self, *args, **kwargs)
  File "C:\Python27\lib\site-packages\thrift\protocol\TCompactProtocol.py", line
 272, in __writeBinary
    self.trans.write(s)
  File "C:\Python27\lib\site-packages\thrift\transport\THttpClient.py", line 134
, in write
    self.__wbuf.write(buf)
TypeError: 'unicode' does not have the buffer interface

teeou123 avatar Feb 09 '17 06:02 teeou123

again like this -_- again

anoaghost avatar Jun 12 '17 04:06 anoaghost

its looks like u edited the api.py and do a mistake while editing

ii64 avatar Jun 20 '17 11:06 ii64