Error while executed list-targets on macOS updated idb-companion and fb-idb
geekmister opened this issue · 4 comments
Description
Error while executed list-targets on macOS updated idb-companion and fb-idb.
As follows:
Traceback (most recent call last):
File "/Users/geekchief/Desktop/Work/Workspace/pyenv/3.7.10/bin/idb", line 5, in <module>
from idb.cli.main import main
File "/Users/geekchief/Desktop/Work/Workspace/pyenv/3.7.10/lib/python3.7/site-packages/idb/cli/__init__.py", line 29, in <module>
from idb.grpc.client import Client as GrpcClient
File "/Users/geekchief/Desktop/Work/Workspace/pyenv/3.7.10/lib/python3.7/site-packages/idb/grpc/client.py", line 83, in <module>
from idb.grpc.crash import (
File "/Users/geekchief/Desktop/Work/Workspace/pyenv/3.7.10/lib/python3.7/site-packages/idb/grpc/crash.py", line 10, in <module>
from idb.grpc.idb_pb2 import (
File "/Users/geekchief/Desktop/Work/Workspace/pyenv/3.7.10/lib/python3.7/site-packages/idb/grpc/idb_pb2.py", line 20, in <module>
_SETTING = DESCRIPTOR.enum_types_by_name['Setting']
AttributeError: 'NoneType' object has no attribute 'enum_types_by_name'
Reproduction
None
Solution
None
Additional Information
idb-companion
version: 1.1.5fb-idb
version: 1.1.7macOS
version: macOS big sur 11.7xcode
version: 13.2.1mobile system
version: 15.6.1
+1
I had the same issue and what help me is - reinstall idb
, grpcio
, grcpio-tools
and grpclib
.
You can achieve that by calling:
pip3.11 uninstall fb-idb
pip3.11 uninstall grpcio
pip3.11 uninstall grpclib
pip3.11 uninstall grpcio-tools
And then install it again:
pip3.11 install fb-idb
pip3.11 install grpcio
pip3.11 install grpclib
pip3.11 install grpcio-tools
Don't know why, but it helps me on MacOS Sonoma. Then check if it works by calling /opt/homebrew/bin/idb list-targets
I had the same issue and what help me is - reinstall
idb
,grpcio
,grcpio-tools
andgrpclib
.You can achieve that by calling:
pip3.11 uninstall fb-idb pip3.11 uninstall grpcio pip3.11 uninstall grpclib pip3.11 uninstall grpcio-tools
And then install it again:
pip3.11 install fb-idb pip3.11 install grpcio pip3.11 install grpclib pip3.11 install grpcio-tools
Don't know why, but it helps me on MacOS Sonoma. Then check if it works by calling
/opt/homebrew/bin/idb list-targets
Same problem and resolved by this way.
The problems like update error and enviroment variable, then it's soloved with way your provide.