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

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

Details

Description:
sshuttle invoked with:
sshuttle -vv --ssh-cmd "$SSH_CMD" --dns -r myuser@myhostname.com:2222 172.42.0.0.0/16

gives:
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 ('127.0.0.1', 12300).
TCP redirector listening with <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 12300)>.
Binding DNS: 12300 12299
DNS listening on ('127.0.0.1', 12299).
DNS listening with <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 12299)>.
Starting client with Python version 3.8.3
c : connecting to server...
c : executing: ['ssh', '-o', 'IdentitiesOnly=yes', '-i', './foo.pem', '-p', '2222', 'myuser@myhostname.com', '--', '/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(sys.stdin.read(1279), "assembler.py", "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 "assembler.py", 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): https://github.com/sshuttle/sshuttle/issues/481
Comment by gfdsa (gfdsa) - Tuesday, 25 August 2020, 17:01 GMT
Upstream bug: https://github.com/sshuttle/sshuttle/issues/469
No workaround for older remotes, downgrade to 0.7.x either with venv and pip it or https://aur.archlinux.org/packages/downgrade/
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: https://github.com/sshuttle/sshuttle/commit/5d6b14673f2043c3511f221201f0255171ae474a#diff-ac0b595db2a1f11bb5eae88c749b89bb

Loading...