aboul3la / Sublist3r

Fast subdomains enumeration tool for penetration testers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to install argparse

lowrisk75 opened this issue · comments

Host : Raspberry Pi 4
Linux raspberrypi 5.4.83-v7l+
Raspbian GNU/Linux 10 (buster)

Python 3.7.3
pip 20.3.3 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

When I try to instal argparse, I'm having this error.

python3-requests is already the newest version (2.21.0-1).
python3-requests set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-argparse : Depends: python2.6 but it is not installable
E: Unable to correct problems, you have held broken packages.

I tried to update python a few time , remove, install again

sudo apt install libpython3.6
sudo apt-get purge python3.6
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install python3.6*
apt-get install python-argparse python3-dns python3-requests

Host : Raspberry Pi 4
Linux raspberrypi 5.4.83-v7l+
Raspbian GNU/Linux 10 (buster)

Python 3.7.3
pip 20.3.3 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

When I try to instal argparse, I'm having this error.

python3-requests is already the newest version (2.21.0-1).
python3-requests set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-argparse : Depends: python2.6 but it is not installable
E: Unable to correct problems, you have held broken packages.

I tried to update python a few time , remove, install again

sudo apt install libpython3.6
sudo apt-get purge python3.6
sudo apt-get autoremove && sudo apt-get autoclean
sudo apt-get install python3.6*
apt-get install python-argparse python3-dns python3-requests

In order to avoid breaking your system-wide python installation when installing tools with different module dependency versions, always create a separate python virtual environment for each separate tool. In that way, any module you install inside the virtual environment will not affect your system-wide python installation.
So firstly i suggest you create the sublist3 virtual environment as follows:

$ python3 -m venv ~/environments/sublist3r                 //create sublist3r python environment
$ source ~/environments/sublist3r/bin/activate             // activate environment
$ python -m pip install --upgrade pip                          // upgrade pip to latest version inside environment
$ python -m pip install argparse pythondns requests // install module dependencies inside environment

you should be able to run your tool now. deactivate the environment once you finish running sublist3r as follows:
``` $ deactivate // deactivate python virtual environment ```
Note that you will need to activate/deactivate the environment before/after each time you run the tool.

The above should solve ur problem. let me know