New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curve is not compatible with thrift 0.10.0 #88

Open
max32002 opened this Issue Jan 18, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@max32002

max32002 commented Jan 18, 2017

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

This comment has been minimized.

Show comment
Hide comment
@teeou123

teeou123 Feb 9, 2017

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 commented Feb 9, 2017

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
@anoaghost

This comment has been minimized.

Show comment
Hide comment
@anoaghost

anoaghost Jun 12, 2017

again like this -_-
again

anoaghost commented Jun 12, 2017

again like this -_-
again

@anysz

This comment has been minimized.

Show comment
Hide comment
@anysz

anysz Jun 20, 2017

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

anysz commented Jun 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment