Open voxspox opened 3 years ago
i ran into this issue today and the fix for me was to add the python lib to my PATH
export PATH="$PATH:/Users/[username]/Library/Python/3.8/bin"
in my .zshrc fixed for me
I ran sudo pip3 install fb-idb
but I had to pip3 uninstall fb-idb
before I tried to install it again.
Installing with sudo (root privileges) is a way to avoid this error, but it's probably not how one would want to handle this. After all, when doing so pip prints "WARNING: Running pip as root will break packages and permissions." That's a reasonable warning!
The reporter's suggestion that setup.py should be changed to avoid writing to /usr/local
is most likely correct, as it seems that os.path.dirname(__file__)
is returning /usr/local
even when the file is located in another (user-writable) location. Possibly this can be resolved by wrapping in os.path.realpath
to compensate for any symlinks?
@jackkinsella I'm glad that's working for you, but the original reporter shows that they were using pip3, so I expect that may not be a general solution.
This happens for me every install, for every supported version of Python. Running pip install fb-idb
a second time produces no error, but also fails to install idb
.
still occurs in macOS Big Sur v11.6.4 with brew installed python3.10
Using the --user
option as recommended solved this issue for me.
Don't use sudo, because it is not recommended. This works:
pip install --user fb-idb
If you get "idb: command not found" after successful installation, idb is installed in the directory that is not in the PATH.
find / -name "idb"
Then you know where it is and either add that directory to the PATH or move idb to some place which is in the path.
Description
I want to install idb on a maxOs Catalania 10.15.6
Solution
Maybe the setup.py must be fixed to not access /usr/local for temporary files??
Additional Information
none