Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: dish@a68:~>sshuttle

  1. #1

    Default dish@a68:~>sshuttle

    Code:
    dish@a68:~>sshuttle
    Code:
    Output is

    Code:
    Traceback (most recent call last):   File "/usr/bin/sshuttle", line 6, in      from pkg_resources import load_entry_point ImportError: No module named pkg_resources   Reinstall python3-setuptools is not help.
    Thank you for your help!
    Last edited by joraxexi; 01-Sep-2019 at 04:07. Reason: shuanopohuetu

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,952

    Default AW: dish@a68:~>sshuttle

    shuttle requires python2?
    Code:
    rpm -ql sshuttle

  3. #3

    Default Re: AW: dish@a68:~>sshuttle

    Quote Originally Posted by Sauerland View Post
    shuttle requires python2?
    Code:
    rpm -ql sshuttle
    Code:
    rpm -ql sshuttle
    /usr/bin/sshuttle
    /usr/lib/python2.7/site-packages/sshuttle
    /usr/lib/python2.7/site-packages/sshuttle-0.78.1-py2.7.egg-info
    /usr/lib/python2.7/site-packages/sshuttle-0.78.1-py2.7.egg-info/PKG-INFO
    /usr/lib/python2.7/site-packages/sshuttle-0.78.1-py2.7.egg-info/SOURCES.txt
    /usr/lib/python2.7/site-packages/sshuttle-0.78.1-py2.7.egg-info/dependency_links.txt
    /usr/lib/python2.7/site-packages/sshuttle-0.78.1-py2.7.egg-info/entry_points.txt
    /usr/lib/python2.7/site-packages/sshuttle-0.78.1-py2.7.egg-info/top_level.txt
    /usr/lib/python2.7/site-packages/sshuttle/__init__.py
    /usr/lib/python2.7/site-packages/sshuttle/__init__.pyc
    /usr/lib/python2.7/site-packages/sshuttle/__main__.py
    /usr/lib/python2.7/site-packages/sshuttle/__main__.pyc
    /usr/lib/python2.7/site-packages/sshuttle/assembler.py
    /usr/lib/python2.7/site-packages/sshuttle/assembler.pyc
    /usr/lib/python2.7/site-packages/sshuttle/client.py
    /usr/lib/python2.7/site-packages/sshuttle/client.pyc
    /usr/lib/python2.7/site-packages/sshuttle/cmdline.py
    /usr/lib/python2.7/site-packages/sshuttle/cmdline.pyc
    /usr/lib/python2.7/site-packages/sshuttle/firewall.py
    /usr/lib/python2.7/site-packages/sshuttle/firewall.pyc
    /usr/lib/python2.7/site-packages/sshuttle/helpers.py
    /usr/lib/python2.7/site-packages/sshuttle/helpers.pyc
    /usr/lib/python2.7/site-packages/sshuttle/hostwatch.py
    /usr/lib/python2.7/site-packages/sshuttle/hostwatch.pyc
    /usr/lib/python2.7/site-packages/sshuttle/linux.py
    /usr/lib/python2.7/site-packages/sshuttle/linux.pyc
    /usr/lib/python2.7/site-packages/sshuttle/methods
    /usr/lib/python2.7/site-packages/sshuttle/methods/__init__.py
    /usr/lib/python2.7/site-packages/sshuttle/methods/__init__.pyc
    /usr/lib/python2.7/site-packages/sshuttle/methods/nat.py
    /usr/lib/python2.7/site-packages/sshuttle/methods/nat.pyc
    /usr/lib/python2.7/site-packages/sshuttle/methods/pf.py
    /usr/lib/python2.7/site-packages/sshuttle/methods/pf.pyc
    /usr/lib/python2.7/site-packages/sshuttle/methods/tproxy.py
    /usr/lib/python2.7/site-packages/sshuttle/methods/tproxy.pyc
    /usr/lib/python2.7/site-packages/sshuttle/options.py
    /usr/lib/python2.7/site-packages/sshuttle/options.pyc
    /usr/lib/python2.7/site-packages/sshuttle/server.py
    /usr/lib/python2.7/site-packages/sshuttle/server.pyc
    /usr/lib/python2.7/site-packages/sshuttle/ssh.py
    /usr/lib/python2.7/site-packages/sshuttle/ssh.pyc
    /usr/lib/python2.7/site-packages/sshuttle/ssnet.py
    /usr/lib/python2.7/site-packages/sshuttle/ssnet.pyc
    /usr/lib/python2.7/site-packages/sshuttle/ssyslog.py
    /usr/lib/python2.7/site-packages/sshuttle/ssyslog.pyc
    /usr/lib/python2.7/site-packages/sshuttle/stresstest.py
    /usr/lib/python2.7/site-packages/sshuttle/stresstest.pyc
    /usr/lib/python2.7/site-packages/sshuttle/version.py
    /usr/lib/python2.7/site-packages/sshuttle/version.pyc
    /usr/share/man/man1/sshuttle.1.gz

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,952

    Default AW: dish@a68:~>sshuttle

    Reinstall python3-setuptools is not help.
    Maybe python2-setuptools?

  5. #5
    Join Date
    Apr 2016
    Location
    North America
    Posts
    532

    Default Re: dish@a68:~>sshuttle

    I wonder why the openSUSE package uses python2.

    You could try

    Code:
    su -
    zypper rm sshuttle
    pip3 install sshuttle
    exit

  6. #6

    Default Re: dish@a68:~>sshuttle

    Quote Originally Posted by ravas View Post
    I wonder why the openSUSE package uses python2. You could try
    Code:
    su - zypper rm sshuttle pip3 install sshuttle exit
    If the pip3 install is the way, why the sshuttle package is being contained in the default respository?

  7. #7
    Join Date
    Apr 2016
    Location
    North America
    Posts
    532

    Default Re: dish@a68:~>sshuttle

    pip3 is the platform independent python package manager associated with https://pypi.org

    It's not "the way", but "a way" -- a choice, which in this case uses python3 instead of python2.
    Maybe it will work for you.

  8. #8

    Default Re: dish@a68:~>sshuttle

    Quote Originally Posted by ravas View Post
    pip3 is the platform independent python package manager associated with https://pypi.org

    It's not "the way", but "a way" -- a choice, which in this case uses python3 instead of python2.
    Maybe it will work for you.
    Code:
    dish@a68:~> sshuttle -r root@5.2.3.2 0/0 --dns -x 5.2.3.2 --python '/usr/bin/python2.7'
    
    After entering local password, errors:
    
    Traceback (most recent call last):
      File "/usr/bin/sshuttle", line 11, in <module>
        load_entry_point('sshuttle==0.78.1', 'console_scripts', 'sshuttle')()
      File "/usr/lib/python2.7/site-packages/sshuttle/cmdline.py", line 74, in main
        opt.daemon, opt.pidfile)
      File "/usr/lib/python2.7/site-packages/sshuttle/client.py", line 533, in main
        nslist += resolvconf_nameservers()
      File "/usr/lib/python2.7/site-packages/sshuttle/helpers.py", line 60, in resolvconf_nameservers
        for line in open('/etc/resolv.conf'):
    IOError: [Errno 2] No such file or directory: '/etc/resolv.conf'

  9. #9

    Default Re: AW: dish@a68:~>sshuttle

    Quote Originally Posted by Sauerland View Post
    Maybe python2-setuptools?
    I'v installed python2-setuptools and try again.

    dish@a68:~> sshuttle -r root@5.2.3.2 0/0 --dns -x 5.2.3.2 --python '/usr/bin/python2.7'

    After entering local password, errors:

    Traceback (most recent call last):
    File "/usr/bin/sshuttle", line 11, in <module>
    load_entry_point('sshuttle==0.78.1', 'console_scripts', 'sshuttle')()
    File "/usr/lib/python2.7/site-packages/sshuttle/cmdline.py", line 74, in main
    opt.daemon, opt.pidfile)
    File "/usr/lib/python2.7/site-packages/sshuttle/client.py", line 533, in main
    nslist += resolvconf_nameservers()
    File "/usr/lib/python2.7/site-packages/sshuttle/helpers.py", line 60, in resolvconf_nameservers
    for line in open('/etc/resolv.conf'):
    IOError: [Errno 2] No such file or directory: '/etc/resolv.conf'

  10. #10
    Join Date
    Apr 2016
    Location
    North America
    Posts
    532

    Default Re: dish@a68:~>sshuttle

    Is "sysconfig-netconfig" installed? That's what provides "/etc/resolv.conf"

    Code:
    zypper info sysconfig-netconfig
    Tumbleweed, Xfce, Firefox, uBlock Origin

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •