-
Notifications
You must be signed in to change notification settings - Fork 59
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
TypeError: Odd-length string #27
Comments
Same Issue |
same here, i'm fedora 30 and run the docker:latest. during update got same error: it seems "servers.dat" file did not generate in the normal way so serverlist did not get updated and timeout issue occurs, i used windows based server_list.dat and had no luck (format is different) i'm going to use android version and check whether that file is ok with linux or not! Edit:
so i've edited this part with this code and the output file is structural the same with the original file but cannot be read (i'm so noob in python)
|
OK issue fixed and output file is working, it seems the main file needs some maintenance since the project is written in 2017 and today's server_list file does not matches. so I've updated the file and output is OK now please test if this is working. |
File is ok, the issue is main script should be written from scratch!! i get |
I think it is splitting the file in the wrong point. Some of the string that are used to split the file actually didn't exist in the actual file, and that cause the error, I guess. |
also, For the future users - This project won't work anymore due to different file format. Main core of Psiphon has been wrote in Go, Which is compilable in Linux. So If you need to use Psiphon in Linux, Complie it by yourself. |
If someone is interested at writing the new Psiphon client from scratch, let me know. as I get some free time, I will open a new repository and start developing one. |
@KokoseiJ I am interested to help out in writing a new psiphon client. I know we have stopped activity and development around the python client but this used to work atleast when @thispc and me modified it 2 years back. Lemme know where you are getting started. |
Oh, My god. OK. but since I am doing another project and I don't have much time to spend at programming(I can write codes in weekend only), It's quite hard to start a new project right now. I will contact you when I've got some free time. My project will probably be done at november. and, sorry for my bad english If it's hard to read. English is not my main language. |
I would be happy to help if my low knowledge helps xD |
@tanmaytat11 @thispc @Erixcode I made a PR. Edit: plus, I am planning to completely remake the pyclient from scratch with Python3 as this code is running on Python 2 and containing some unnecessary parts because it's from 2012. |
@KokoseiJ I think Binary Build issue is because mismatch in openssl version with current one already installed on the system. I tried docker to avoid this issue but still got error as i mentioned before! which i think the code needs to be rewritten from scratch. |
@Erixcode Well That's above my ability. using it with SSH relay is the current solution I guess. |
Oh god Oh fuck It won't work without handshaking |
I am running Fedora 30.
I tried to update the list, but it just gives me "TypeError: Odd-length string".
Full traceback is here:
Traceback (most recent call last):
File "psi_client.py", line 440, in
update()
File "psi_client.py", line 311, in update
js = i[loc:].decode('hex')
File "/usr/lib64/python2.7/encodings/hex_codec.py", line 42, in hex_decode
output = binascii.a2b_hex(input)
TypeError: Odd-length string
Any fix, or having a same issue?
The text was updated successfully, but these errors were encountered: