slither icon indicating copy to clipboard operation
slither copied to clipboard

slither-simil doesn't work with pipx

Open iirekm opened this issue 11 months ago • 1 comments

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 avatar Jan 05 '25 08:01 iirekm

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?

elopez avatar Jan 06 '25 08:01 elopez