Open Zherlo opened 3 years ago
I've same problem because it causes many errors in python2, please update it to python3
Just install the python futurize package - apt install python3-future Futurize: py2 to py3 conversion link Then run the below command against your python2 code inside the directory: *python3-futurize -a -0 -w -v /python2-dir/.py** you can now execute code using python3 "your-python2-code.py"
@deep1ne9 you are a god <3 Thanks
Just install the python futurize package - apt install python3-future Futurize: py2 to py3 conversion link Then run the below command against your python2 code inside the directory: *python3-futurize -a -0 -w -v /python2-dir/.py** you can now execute code using python3 "your-python2-code.py"
Thanks
mine is still not working still giving same error
RefactoringTool: Can't open /python2-dir/.py: [Errno 2] No such file or directory: '/python2-dir/.py' RefactoringTool: No files need to be modified. RefactoringTool: There was 1 error: RefactoringTool: Can't open /python2-dir/.py: [Errno 2] No such file or directory: '/python2-dir/.py'
I found a python 3 version of xerosploit here https://github.com/lzskyline/xerosploit3 how to download and install git clone https://github.com/lzskyline/xerosploit3.git cd xerosploit3 python3 -m pip install -r requirements.txt sudo python3 install.py python3 xerosploit.py
this worked for me if it doesn't then try this http://www.mediafire.com/file/rgtsnu9zshzqur4/xerosploit.tar.gz/file here's the tutorial https://youtu.be/rrn2Qt5R5PM and if this doesn't work either https://github.com/LionSec/xerosploit/issues/260 100% fix (man check all the issues section before submitting one)
tried it but not working
xerosploit3 worked for me and i also edited /usr/bin/xerosploit and added the 3 to the end of python so now i can launch it everywhere Thanks Kali Linux rolling
Install 2to3 via pip on the project directory then run sudo 2to3 fileName
And it will convert it to python3 ( you will see fileName.bak )
Install 2to3 via pip on the project directory then run sudo 2to3 fileName
And it will convert it to python3 ( you will see fileName.bak )
Thanks
Python2 is end, Please provide a way to be able to install xerosploit in python3.. Thanks