slither
slither copied to clipboard
[Bug-Candidate]: pip installation fails
Describe the issue:
Installing via pip doesn't work.
Fails with error:
...
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slither_analyzer-0.9.6-py3.11.egg/slither/__init__.py", line 4, in <module>
from .slither import Slither
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slither_analyzer-0.9.6-py3.11.egg/slither/slither.py", line 4, in <module>
from crytic_compile import CryticCompile, InvalidCompilation
ModuleNotFoundError: No module named 'crytic_compile'
after running python -m pip install slither-analyzer
and slither .
in a compiling foundry repo.
Code example to reproduce the issue:
python -m pip install slither && slither .
Version:
That command doesn't even work, because of the above failed installation.
Relevant log output:
No response
Hi, thanks for the report! Could you please post the full pip installation output? crytic-compile is a direct dependency of slither-analyzer, so it should have been installed automatically as well.
Did you fix it?