Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#67210 - [sshuttle] TypeError: module.__init__() argument 1 must be string, not unicode in

Attached to Project: Community Packages
Opened by Leif Warner (pdxleif) - Monday, 06 July 2020, 22:19 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 03 May 2023, 03:26 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


sshuttle invoked with:
sshuttle -vv --ssh-cmd "$SSH_CMD" --dns -r

Starting sshuttle proxy.
firewall manager: Starting firewall with Python version 3.8.3
firewall manager: ready method name nat.
IPv6 enabled: None
UDP enabled: False
DNS enabled: True
User enabled: False
Binding redirector: 12300
TCP redirector listening on ('', 12300).
TCP redirector listening with <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('', 12300)>.
Binding DNS: 12300 12299
DNS listening on ('', 12299).
DNS listening with <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('', 12299)>.
Starting client with Python version 3.8.3
c : connecting to server...
c : executing: ['ssh', '-o', 'IdentitiesOnly=yes', '-i', './foo.pem', '-p', '2222', '', '--', '/bin/sh -c \'P=python3; $P -V 2>/dev/null || P=python; exec "$P" -c \'"\'"\'import sys, os; verbosity=2; sys.stdin = os.fdopen(0, "rb"); exec(compile(, "", "exec"))\'"\'"\'\'']
c : > channel=0 cmd=PING len=7 (fullness=0)
load pubkey "./foo.pem": invalid format
server: assembling u'sshuttle' (88 bytes)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "", line 18, in <module>
TypeError: module.__init__() argument 1 must be string, not unicode
c : fatal: server died with error code 1

Additional info:
sshuttle 1.0.2-1
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 03 May 2023, 03:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  python2 is long gone so assuming this is no longer an issue.
Comment by Adrián López (adrianlzt) - Thursday, 09 July 2020, 12:03 GMT
Sshuttle from 1.0 version is not compatible with python2 (in the jump server):
Comment by gfdsa (gfdsa) - Tuesday, 25 August 2020, 17:01 GMT
Upstream bug:
No workaround for older remotes, downgrade to 0.7.x either with venv and pip it or
Comment by gfdsa (gfdsa) - Sunday, 30 August 2020, 11:16 GMT Comment by Troy Engel (TE) - Wednesday, 07 October 2020, 19:12 GMT
I'm going to tag onto this issue as it's only relevant for the _next_ release (1.0.5?) which is hopefully going to fix this python2 issue -- the developers have added a new dependency on `python-psutil` in a PR from about a month ago: