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

slither-simil doesn't work with pipx #2621

Open
iirekm opened this issue Jan 5, 2025 · 1 comment
Open

slither-simil doesn't work with pipx #2621

iirekm opened this issue Jan 5, 2025 · 1 comment
Labels
bug-candidate Bugs reports that are not yet confirmed

Comments

@iirekm
Copy link

iirekm commented Jan 5, 2025

Describe the issue:

pipx install slither-analyzer
pipx inject slither-analyzer git+https://github.com/facebookresearch/fastText#0.2.0
slither-simil

Then it complains about missing fasttext, although it's installed correctly (I can see it in the venv created by pipx).

Works only when I use pip3 --user --break-system-packages, but this is a bad practice since may mess with other packages.

Code example to reproduce the issue:

Version:

Relevant log output:

No response

@iirekm iirekm added the bug-candidate Bugs reports that are not yet confirmed label Jan 5, 2025
@elopez
Copy link
Member

elopez commented Jan 6, 2025

Hi! Thanks for the report. The error is thrown when the import fails: https://github.com/crytic/slither/blob/master/slither/tools/similarity/model.py

I'm not sure why that wouldn't work with pipx in particular; can you get a shell on the environment and try to import it manually to see what happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-candidate Bugs reports that are not yet confirmed
Projects
None yet
Development

No branches or pull requests

2 participants