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

Please make it explicit that 32bits are not supported #15

Open
marcin-chwedczuk opened this issue Jan 9, 2021 · 3 comments
Open

Please make it explicit that 32bits are not supported #15

marcin-chwedczuk opened this issue Jan 9, 2021 · 3 comments

Comments

@marcin-chwedczuk
Copy link

marcin-chwedczuk commented Jan 9, 2021

How I wasted 2h of my life:

I started tutorial by going to the page: https://github.com/Gallopsled/pwntools-tutorial/blob/master/installing.md
I had a VM with 32-bit Ubuntu 16 LTS, I used it to solve challenges from OverTheWire (they are mostly 32 bit).

I started with:

pip install --upgrade git+https://github.com/Gallopsled/pwntools.git

and it failed, looks like I need some other libraries, ok no problem:

sudo apt install libffi-dev
sudo apt install libssl-dev

But then pip cannot install cryptography module, it was failing with strange compile time errors.

OK probably old OpenSSL version (and BTW installing Python packages is getting more terrible than compiling C code). I compiled a new version from the sources: https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ Yay!

Finally managed to compile the rest:

sudo apt install libsodium-dev # one more cr**p to install

pip install --global-option=build_ext --global-option="-L/usr/local/ssl/lib" --upgrade git+https://github.com/Gallopsled/pwntools.git

And of course one more thing was missing:

pip install python-dateutil

And what I get for all this effort:

$ python -c 'from pwn import *'
[!] Pwntools does not support 32-bit Python.  Use a 64-bit release.

So please, please add a big huge bolded text saying that 32-bits are not supported....

@zachriggle
Copy link
Member

zachriggle commented Jan 12, 2021

We tried to put it as bold as we could! It's even got a big red exclamation mark! 🤣

On a serious note, we can probably move the warning into setup.py so that it's shown when attempting to install Pwntools rather than after it's installed (which, in hindsight, seems obvious).

Marked "help wanted" in case any new-to-Pwntools developers want to submit a fix.

@marcin-chwedczuk
Copy link
Author

I think too that putting it in setup.py is a great idea!

@zachriggle
Copy link
Member

@marcin-chwedczuk You should submit a Pull Request ;)

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

Successfully merging a pull request may close this issue.

2 participants