← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1897961] Re: python command detection fails

 

This bug was fixed in the package sshuttle - 0.76-1ubuntu1.2

---------------
sshuttle (0.76-1ubuntu1.2) xenial; urgency=medium

  * d/p/lp1897987-Backward-compatibility-with-Python-2.4-server.patch:
    - Fix compatibility with remote py3.4 (LP: #1897987)
  * d/p/lp1897961-Fix-shell-quoting.patch:
    - Add missing import needed by previous commit backport
      (LP: #1897961)

sshuttle (0.76-1ubuntu1.1) xenial; urgency=medium

  [ Dan Streetman ]
  * d/p/lp1896299/0001-Add-support-for-iproute2.patch,
    d/p/lp1896299/0002-Small-refactoring-of-netstat-iproute-parsing.patch,
    d/p/lp1896299/0003-Backward-compatibility-with-Python-2.4-server.patch:
    - allow connecting to remote without netstat (LP: #1896299)
  * d/p/lp1592853-Use-versions-of-python3-greater-than-3.5-when-availa.patch:
    - detect if remote python is 'python' or 'python3' (LP: #1592853)
  * d/p/lp1873368/0001-Don-t-crash-if-we-can-t-look-up-peername.patch,
    d/p/lp1873368/0002-allow-Mux-flush-fill-to-work-with-python-3.5.patch,
    d/p/lp1873368/0003-Fix-python2-server-compatibility.patch:
    - fix interoperability with remote py2 and/or py3
      (same bug as below)

  [ Felipe Reyes ]
  * d/p/0001-compatibility-with-python38.patch:
    Backport patch to make sshuttle compatible
    with python-3.8. (LP: #1873368). Closes: #953621.

 -- Dan Streetman <ddstreet@xxxxxxxxxxxxx>  Wed, 30 Sep 2020 20:34:45
-0400

** Changed in: sshuttle (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1897961

Title:
  python command detection fails

Status in sshuttle package in Ubuntu:
  Fix Released
Status in sshuttle source package in Xenial:
  Fix Released

Bug description:
  [impact]

  bug 1592853 patches python command detection but is an incomplete
  backport, resulting in failure to correctly detect the python command,
  which causes sshuttle to fail if --python is not provided.

  [test case]

  run sshuttle without --python to any remote system:

  root@lp1896299-x:~# sshuttle -r lp1896299-x.lxd 1.2.3.4/24
  Traceback (most recent call last):
    File "/usr/bin/sshuttle", line 9, in <module>
      load_entry_point('sshuttle==0.76', 'console_scripts', 'sshuttle')()
    File "/usr/lib/python3/dist-packages/sshuttle/cmdline.py", line 226, in main
      opt.daemon, opt.pidfile)
    File "/usr/lib/python3/dist-packages/sshuttle/client.py", line 701, in main
      seed_hosts, auto_nets, daemon)
    File "/usr/lib/python3/dist-packages/sshuttle/client.py", line 408, in _main
      options=dict(latency_control=latency_control))
    File "/usr/lib/python3/dist-packages/sshuttle/ssh.py", line 112, in connect
      "exec \"$P\" -c %s") % quote(pyscript)
  NameError: name 'quote' is not defined

  
  [regression potential]

  regressions would likely cause the initial connection to fail

  [scope]

  this is needed only for x

  the backport missed upstream commit 3541e4bd which was included first
  in v0.78.0 so this is fixed already in b and later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sshuttle/+bug/1897961/+subscriptions


References