-
Notifications
You must be signed in to change notification settings - Fork 714
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: unsupported operand type(s) for %: 'bytes' and 'tuple' #78
Comments
You are using Python 3.4.x which is not supported. Try with either 2.7 or 3.5. [1] I could fix that problem but likely there will be many others... On the client you have to be root anyway to run sshuttle, can you upgrade python? |
I see. Not sure it is safe to upgrade as it is distribution default version: possible damage is unpredictable, perhaps I can add some custom repository |
@cy6erGn0m Fedora? Do you have 2.7 and 3.4 or just 3.4? I guess that at least in the situation where there is 2.7 and some unsupported 3.x as default we should fallback to 2.7. I don't know if there is enough interest in making it work with 3.4 on the client. I did it for the server and I don't think it will ever get merged, which I kind of understand as it is painful to write code and test across all supported OSs and Python versions... |
In situations where 2.7 is available and some unsupported 3.x is the system's default we should probably fallback to 2.7 instead of the default (that might be e.g. 3.4). This might fix sshuttle#78.
It is possible #79 may not help here. It depends on if/how you are installing sshuttle (e.g. If you are installing it python 3.4 you may need to install it using python 2.7 instead) or if you are invoking it with the ./run command. |
@vieira opensuse. I have python 2.7 and 3.4 so fallback would help |
In fact I can install 3.5.1 from a "factory repo" but "factory" sounds like something may go wrong :) |
Could you test #79? |
This was marked as fixed in #79, however there are not enough details given as to how sshuttle was started or why it tried to use Python 3.4; so the problem may not be fixed. |
The issue still exists |
@CyberKiller40 It sounds like you installed sshuttle using the Python 3.4 version of pip; sshuttle does not work with Python 3.4. You will need to install sshuttle using the Python 2.7 version of pip. I don't have a OpenSUSE box to test, however guessing it might be called "pip2.7". |
sshuttle constantly crashes with
The text was updated successfully, but these errors were encountered: