Issues when installing mythril via requirements.txt: py-ecc, rlp, blake2b, syntax warning
See original GitHub issueDescription
When installing mythril
via requirements.txt
, two version mismatches and a missing dependency occur, as well as a syntax warning when starting mythril
the first time.
Suggestion:
- Add
blake2b-py
torequirements.txt
Question: How serious are the version mismatches
py-evm 0.5.0a1 has requirement py-ecc<5.0.0,>=1.4.7, but you'll have py-ecc 5.2.0
py-evm 0.5.0a1 has requirement rlp<3,>=2, but you'll have rlp 1.2.0
How to Reproduce
$ git clone https://github.com/ConsenSys/mythril.git
$ cd mythril
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
[...]
ERROR: py-evm 0.5.0a1 has requirement py-ecc<5.0.0,>=1.4.7, but you'll have py-ecc 5.2.0 which is incompatible.
ERROR: py-evm 0.5.0a1 has requirement rlp<3,>=2, but you'll have rlp 1.2.0 which is incompatible.
[...]
$ ./myth
[...]
ModuleNotFoundError: No module named 'blake2b'
$ pip install blake2b-py
$ ./myth
[...] mythril/mythril/laser/ethereum/instructions.py:2394: SyntaxWarning: "is not" with a literal. Did you mean "!="?
with_value = function_name is not "staticcall"
[ myth displays usage, no error except warning above]
The warning appears only the first time myth
is called, apparently during compilation.
Environment
- Mythril version: commit
82d2fa81964cebe7a97991dd5e1a6a2d9bba83ff
- Python version: 3.8.10
- OS and Version: Ubuntu 20.04.3 LTS
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unable to install dependencies from requirements.txt as part ...
Current Behavior In my environment.yml I install some of the dependencies from a requirements.txt using pip. This part of the dependencies ...
Read more >python pip trouble installing from requirements.txt
UPDATE: This command upgrades all packages that have been explicitly listed in your requirements.txt file. Your requirements.txt file is just a list of...
Read more >Errors while running pip install -r requirements.txt - MongoDB
I am getting these kinds of error while running pip install -r requirements.txt in virtualenv. Preparing wheel metadata … error ERROR: ...
Read more >pipreqs - PyPI
Pip requirements.txt generator based on imports in project. ... pip freeze only saves the packages that are installed with pip install in your...
Read more >How to install Python packages with pip and requirements.txt
If you are managing Python packages (libraries) with pip, you can use the configuration file requirements.txt to install the specified ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thx. After
all requirements are satisfied now.
py-evm requirement should be fixed now