Open
Description
I can not import pwntools and then use my python program with pyinstaller.
Update Pwntools First
I even tried with pwntools from source.
Debug Output
$ virtualenv -p python3 myenv ;
$ source myenv/bin/activate
$ pyinstaller ./script.py -y --onefile
$ ./script
File "pwnlib/shellcraft/__init__.py", line 37, in __init__
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEICaCgkD/pwnlib/shellcraft/templates/__doc__'
[547041] Failed to execute script 'main' due to unhandled exception!```
When doing:
`from pwn import *`
and then pyinstaller ./script.py -y --onefile
I got errors with at the end:
```File "pwnlib/shellcraft/__init__.py", line 171, in <module>
File "pwnlib/shellcraft/__init__.py", line 37, in __init__
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEICaCgkD/pwnlib/shellcraft/templates/__doc__'
[547041] Failed to execute script 'main' due to unhandled exception!```
After investigation, I think the setup.py somewhere store the doc in the /tmp folder. This may raise issue for pyinstaller.