Open mr-m0nst3r opened 4 years ago
That's not how pythonhome configuration works, it shouldn't be pointing to the executable. You should read Pythyon documentation on what pythonhome means.
@karliss Hi, also tried export PYTHONHOME=/usr/local
, not working.
The console says: Setting PYTHONHOME = "/tmp/.mount_cutterKMtoV3/usr" for AppImage.
If you know how to set this, pls write it down. I'm no developper, I just want to use it, and want to use the plugin.
Or, you got busy, I'll wait for others. thanks
There is a command line argument for pythonhome, but setting python home to /usr/local will not work unless you have the same version of python as one inside Cutter appimage. That would also need some of the python packages that are inside Appimage. Most importantly the cutter python bindings and correct Qt bindings.
Here are two approaches that work for me:
Compiling cutter from source and linking against system Python. Assuming you can get all the dependencies from system package manager this is quite easy.
Using Appimage. Install matching python version using pyenv. Currently distributed Cutter contains 3.6. And then doing ~/.pyenv/versions/3.6.x/bin/python3 -m install --user package_name
. Where ~/.pyenv/versions/3.6.x
is the path pyenv installed requested python version.
@karliss thank you very much, karliss. I think it may be the angrcutter plugin's improper design. I'll update here after fixed.
Environment information
Operating System: ubuntu 19
Cutter version:
Obtained from:
File format: appimage
Describe the bug I installed angr angrdbg using python3, and put angrcutter folder under plugins/python. Cutter tried to load the plugin, but I guess it's using wrong version of python. By export PYTHONHOME to
which python3
, the appimage still use it's default python settings.And, I can't install dependencies under python2.
Here's the whole log:
To Reproduce
Steps to reproduce the behavior:
Expected behavior Should use user provided python