Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while executed list-targets on macOS updated idb-companion and fb-idb #813

Closed
geekmister opened this issue Jan 4, 2023 · 4 comments

Comments

@geekmister
Copy link

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.5
  • fb-idb version: 1.1.7
  • macOS version: macOS big sur 11.7
  • xcode version: 13.2.1
  • mobile system version: 15.6.1
@therealkh
Copy link

+1

@psalkowski
Copy link

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

@answer-huang
Copy link

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

Same problem and resolved by this way.

@geekmister
Copy link
Author

The problems like update error and enviroment variable, then it's soloved with way your provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants