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

No module named 'huggingface_hub #34

Closed
cryptax opened this issue Aug 29, 2024 · 2 comments
Closed

No module named 'huggingface_hub #34

cryptax opened this issue Aug 29, 2024 · 2 comments

Comments

@cryptax
Copy link
Contributor

cryptax commented Aug 29, 2024

The doc says that we can run r2ai as a plugin: r2 -i main.py binary.
So, I tried that: r2 -i /home/axelle/.local/share/radare2/r2pm/git/r2ai/main.py ./libapp.so

ERROR: Cannot determine entrypoint, using 0x00170000
WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time
Traceback (most recent call last):
  File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/main.py", line 24, in <module>
    main()
  File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/main.py", line 19, in main
    import r2ai.main
  File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/r2ai/main.py", line 8, in <module>
    from r2ai.repl import r2ai_singleton
  File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/r2ai/repl.py", line 2, in <module>
    from .models import set_default_model, models, mainmodels
  File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/r2ai/models.py", line 2, in <module>
    from huggingface_hub import hf_hub_download, login
ModuleNotFoundError: No module named 'huggingface_hub'
 -- Noot noot
[0x00170000]> q

In case I need to be in main.py directory, I tried the other way round, with r2 -i ./main.py ~/git/research/flutter/w0rdle-unzipped/lib/arm64-v8a/libapp.so but it's the same error.

@cryptax
Copy link
Contributor Author

cryptax commented Aug 29, 2024

Fixed the issue myself: you need to create a virtual environment and do pip install -r requirements.txt for r2ai.

@cryptax cryptax closed this as completed Aug 29, 2024
@trufae
Copy link
Contributor

trufae commented Aug 29, 2024

that's what the makefile does

@github-staff github-staff deleted a comment from rodeok Oct 23, 2024
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

2 participants