carpedm20 / LINE

May the LINE be with you...
http://carpedm20.github.io/line/
Other
823 stars 192 forks source link

Unicode buffer #98

Closed ii64 closed 2 years ago

ii64 commented 7 years ago

It works propertly until api.py want to connect to the server

Anyone had solution?

max32002 commented 7 years ago

https://github.com/carpedm20/LINE/issues/88

ii64 commented 7 years ago

So I need downgrade my Apache thrift from 10.0 to 9.x ?

theawangatang commented 7 years ago

pip uninstall thrift pip install thrift==0.9.3

ii64 commented 7 years ago

downgrade thrift from 10 to 9.3 Thanks

brendhadhea commented 7 years ago

how to install thrift 0.9.3 in raspberry pi??

ii64 commented 7 years ago

I just copying all lib on python that already had thrift.

Nilpo commented 7 years ago

Downgrading from Thrift 10.0 to 9.3 does not resolve this issue for me. I have verified that 9.3 is running with thrift -version.

Nilpo commented 7 years ago

@brendhadhea You can use wget http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz to download the archived version and then follow the general instructions found here and here. I have used this installation method in Raspbian Jessie. Just a heads up, this takes quite a bit of time to build because of the RPi's limited hardware.

Nilpo commented 7 years ago

I got it sorted. Pip was installing Thrift 0.10.0 behind the scenes!

# following the normal install procedure...
git clone https://github.com/carpedm20/LINE.git
cd LINE
python config.py
python setup.py install
pip uninstall thrift      # version 0.10.0 (or higher) will have been forcefully installed by the last command and will be the default
pip install thrift==0.9.3

Alternatively, you can use easy_install instead of pip.

anythingg commented 7 years ago

i did "pip uninstall thrift" but while uninstalling i got stuck in the console so i closed mingw32 and opened it then did "pip install thrift==0.9.3" that installed it but now I get this error

user4@WIN-RA9GLN48TOF ~ $ python test.py Traceback (most recent call last): File "test.py", line 2, in client = LineClient("id", "password") File "C:\MinGW\msys\1.0\home\user4\line\client.py", line 88, in init self.login() File "C:\MinGW\msys\1.0\home\user4\line\api.py", line 130, in login self.com_name, self.provider, self.certificate) File "c:\Python27\lib\site-packages\curve\CurveThrift.py", line 344, in loginWithIdentityCredentialForCertificate return self.recv_loginWithIdentityCredentialForCertificate() File "c:\Python27\lib\site-packages\curve\CurveThrift.py", line 375, in recv_loginWithIdentityCredentialForCertificate raise result.e curve.ttypes.TalkException: TalkException(parameterMap=None, reason='Account ID and password does not match', code=18)

i think thrift didnt unistall and I did put the correct id and password. can someone help me? every time i do "pip uninstall thrift" it looks like its uninstalling but i just get stuck in the console after like it didnt finish uninstalling.

Nilpo commented 7 years ago

You should try running this in Vagrant or another virtual machine so you can install the dependencies on a clean system and bit have to worry about conflicts with anything on your system.

ii64 commented 7 years ago

@anythingg delete manually ??!?

anythingg commented 7 years ago

ok. i just created a new vm and started over. the newest version of thrift (0.10.0) was not installed this time so i installed 0.9.3 successfully. the error i was getting meant that i was putting in the wrong email or password. i thought it meant i had to enter my id and password. i entered my email and password into python console (c:\python27\python.exe) and it appears to be working. thanks.

anoaghost commented 7 years ago

again who have solution ?

Nilpo commented 7 years ago

@anoaghost You have an error in your Python just as it says. Please read the error message and check the indentation in your code.

Nilpo commented 7 years ago

@anythingg Glad to see you got it working!

RichoDS commented 7 years ago

untitled

help

ii64 commented 7 years ago

Patch the api.py :D @RichoDS

Nilpo commented 7 years ago

Or use a newer fork.

ii64 commented 2 years ago

It was fun guys, Thanks. Issue fixed.