curve is not compatible with thrift 0.10.0 #88

Open
max32002 opened this Issue Jan 18, 2017 · 1 comment

Projects

None yet

2 participants

@max32002

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

@teeou123
teeou123 commented Feb 9, 2017 edited

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment