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.
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'
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’
dish@a68:~> sudo zypper info sysconfig-netconfig
Loading repository data...
Reading installed packages...
Information for package sysconfig-netconfig:
--------------------------------------------
Repository : Main Repository
Name : sysconfig-netconfig
Version : 0.85.2-lp151.1.1
Arch : x86_64
Vendor : openSUSE
Support Level : unsupported
Installed Size : 169.1 KiB
Installed : Yes (automatically)
Status : up-to-date
Source package : sysconfig-0.85.2-lp151.1.1.src
Summary : Script to apply network provided settings
Description :
This package provides the netconfig scripts to apply network
provided settings like DNS or NIS into system files.
Your traceback needs to be read entirely to understand your problem, it’s truncated so you know it’s a problem in line 6 of some file but can’t know the name of the file. Somehow it’s also claiming to be missing a package named “pkg-resources” which I doubt exists(at least doesn’t exist on my system). And what is this “Reinstall python3-setuptools is not help” - Is that your addition and not part of the actual entry? If so, that’s bad to add your own comment to an entry, that’s confusing… Always add your comments in a separate paragraph and outside the code block so it’s clear it’s not part of the error.
In any case, sshuttle installs without error on my own 15.1,
So you might try force re-installing sshuttle by running the following command