abrasive / nxBender

Open source client for netExtender SSL VPNs
BSD 3-Clause "New" or "Revised" License
41 stars 20 forks source link

Ubuntu 18.10 error #6

Closed fixwa closed 5 years ago

fixwa commented 5 years ago

The Readme does not specify what python version should be used. I used what comes with Ubuntu 18

O.S.: Ubuntu 18.10 Python Version: Python 2.7.15+ Pip version: pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

I got this:

pablo@pablo-lenovo:~/temp/nxBender(master)$ sudo ./nxBender --server vpn.server.net -u myUsername -p myPassword -d myDomain
Traceback (most recent call last):
  File "./nxBender", line 9, in <module>
    import nxbender
  File "/home/pablo/temp/nxBender/nxbender/__init__.py", line 1, in <module>
    import nx
  File "/home/pablo/temp/nxBender/nxbender/nx.py", line 2, in <module>
    import requests
ImportError: No module named requests

Also, a big thanks for the effort you put on this; this seems to resolve DNS issues I am experiecing right now.

abrasive commented 5 years ago

Hi @fixwa, you need to install the dependencies, eg.

pip install -r requirements.txt

I would suggest doing this in a virtualenv or using --user, it's a shame there's not an easier way to do that.

fixwa commented 5 years ago

Thank you @abrasive , that's what I did initially. So, to fix my error I had to do the following:

sudo pip install requests
sudo pip install pyroute2
sudo pip install configargparse