Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue #22

Open
behouba opened this issue Oct 4, 2022 · 3 comments
Open

Build issue #22

behouba opened this issue Oct 4, 2022 · 3 comments

Comments

@behouba
Copy link

behouba commented Oct 4, 2022

Hello,

I'm experimenting with unicorefuzz. This issue occurred while running setup.sh script:

....
[+] Building unicorn_mode
=================================================
UnicornAFL build script
=================================================

[*] Performing basic sanity checks...
[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools'.

I've already installed Python 2 and Python 3, as well as 'python-setuptools' via apt-get and pip install. What am I doing incorrectly?

@domenukk
Copy link
Member

domenukk commented Oct 4, 2022

Probably you need python3-setuptools, too

@behouba
Copy link
Author

behouba commented Oct 4, 2022

Thank you @domenukk for the quick reply. I just installed python3-setuptools and still getting the same error message.

@b1ack0wl
Copy link

b1ack0wl commented Jul 14, 2023

I've come across this issue as well and the root cause for me was the location of easy_install.py being within the python3 folder and not the python3.x folder. So, I changed the variable MYPYTHONPATH within AFLplusplus/unicorn_mode/build_unicorn_support.sh (line 114) to "/usr/lib/python3" and it worked!

$ find /usr/lib -name "easy_install.py"
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py
/usr/lib/python3/dist-packages/easy_install.py
/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py
/usr/lib/python2.7/dist-packages/easy_install.py
$ echo `python -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p}'`
/usr/lib/python3.8/

I'll try and see if I can modify the one-liner :)

Edit: Here's a cheap hack for build_unicorn_support.sh:114

MYPYTHONPATH=`python -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p}' | sed -r 's/\.[0-9]{1,2}//g'`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants