MichaelGrafnetter / DSInternals

Directory Services Internals (DSInternals) PowerShell Module and Framework
https://www.dsinternals.com
MIT License
1.62k stars 250 forks source link

ERROR: Package 'dsinternals' requires a different Python: 2.7.18 not in '>=3.4' #158

Closed CustosClarus closed 1 year ago

CustosClarus commented 1 year ago

I'm trying to setup impacket using python2 in virtual env using these steps

cd /opt
sudo git clone https://github.com/SecureAuthCorp/impacket.git
sudo chmod 777 /opt/impacket -R
sudo apt install virtualenv
cd /opt/impacket
sudo virtualenv impacket-venv -p $(which python2)
source impacket-venv/bin/activate
cd /tmp                                                                                                                                               
wget  https://bootstrap.pypa.io/pip/2.7/get-pip.py -O /tmp/get-pip.py --no-check-certificate
sudo python2 get-pip.py

cd /opt/impacket
pip install -r requirements.txt

OUTPUT

ng cached ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
Collecting ldapdomaindump>=0.9.0
  Using cached ldapdomaindump-0.9.4-py2-none-any.whl (18 kB)
Collecting flask>=1.0
  Using cached Flask-1.1.4-py2.py3-none-any.whl (94 kB)
Collecting dsinternals
  Using cached dsinternals-1.2.4.tar.gz (174 kB)
ERROR: Package 'dsinternals' requires a different Python: 2.7.18 not in '>=3.4'

Steps tried so far

pip install --no-cache-dir --upgrade 'dsinternals<3.4'

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.                             
Collecting dsinternals<3.4
^[[A  Downloading dsinternals-1.2.4.tar.gz (174 kB)
     |████████████████████████████████| 174 kB 1.2 MB/s 
ERROR: Package 'dsinternals' requires a different Python: 2.7.18 not in '>=3.4'
MichaelGrafnetter commented 1 year ago

Hello @asadzz , I would try using Python 3 if I were you. If you have any other issues, please see the Python port repo, as it is maintained by a different person.