Consensys / mythx-cli

A command line interface for the MythX smart contract security analysis API
https://mythx-cli.readthedocs.io/
MIT License
84 stars 29 forks source link

MythX cannot be executed after installed. #268

Open santai-wang-7senses opened 2 years ago

santai-wang-7senses commented 2 years ago

Description

I followed mythx-cli documentation to install mythx-cli. No matter what command typed in, mythx-cli only shows the Traceback message.

What I Did

~:pip3 install mythx-cli
~:mythx analyze --help

Traceback (most recent call last):
  File "/opt/homebrew/bin/mythx", line 5, in <module>
    from mythx_cli.cli import cli
  File "/opt/homebrew/lib/python3.9/site-packages/mythx_cli/cli.py", line 21, in <module>
    from mythx_cli.render.command import render
  File "/opt/homebrew/lib/python3.9/site-packages/mythx_cli/render/command.py", line 7, in <module>
    import jinja2
  File "/opt/homebrew/lib/python3.9/site-packages/jinja2/__init__.py", line 12, in <module>
    from .environment import Environment
  File "/opt/homebrew/lib/python3.9/site-packages/jinja2/environment.py", line 25, in <module>
    from .defaults import BLOCK_END_STRING
  File "/opt/homebrew/lib/python3.9/site-packages/jinja2/defaults.py", line 3, in <module>
    from .filters import FILTERS as DEFAULT_FILTERS  # noqa: F401
  File "/opt/homebrew/lib/python3.9/site-packages/jinja2/filters.py", line 13, in <module>
    from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/opt/homebrew/lib/python3.9/site-packages/markupsafe/__init__.py)
crichmond1989 commented 2 years ago

I have this issue as well.

santai-wang-7senses commented 2 years ago

Updated: The version of package "markupsafe" has been upgraded to 2.1.1 and it's not compatible to mythx-cli

This command will fix the problem:

pip3 install markupsafe==2.0.1
chahakshahcs5 commented 2 years ago

Still getting the error @santai-wang-7senses image