Closed thibmaek closed 4 years ago
+1, for me this happens with python3.8
Pip is trying to install this package to a system folder that the current user doesn't have access to. Try below steps to fix this -
pip3.7 uninstall fb-idb
pip3.7 install --user fb-idb
This should give you
Successfully installed fb-idb-1.0.12
'idb' will be available in /Users/<user>/Library/Python/3.7/bin
, just add this to your PATH variable.
then idb list-targets
, should list down all the devices connected.
@ezhiljohnson7 I know but why? The whole reason I use Python + pip via brew is to avoid having permission issues. No other pip package has any issues with permissions
Furthermore, installing with the --user
flag results in Flipper not recognising the idb
binary: Current setting: /Users/<user>/Library/Python/3.7/bin/idb isn't a valid IDB installation.
Trying to invoke the binary at the path throws a Python (and protobuf related) error:
Upgrading protobuf via pip seems to solve this issue but will introduce issues for other packages…
@thibmaek, I did go through some trouble when I faced the same issue, closest to solving the problem at its root was discussed here -
https://github.com/pypa/pip/issues/7440 see if this helps you.
So far, I haven't faced any issues except for this compromise of having the 'idb' installed in my user account - '<>/Python/3.x/bin' instead of the '<>/site-packages'.
But, have set the idb path explicitly on my Flipper, here's a snapshot
--- Please use this template, and delete everything above this line before submitting your issue ---
Description
Tried to install fb-idb via pip3 from Python 3.7 all installed with homebrew and correctly linked for all other pip installed packages. Seems like an issue with protobuf compiler.
Reproduction