question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues when installing mythril via requirements.txt: py-ecc, rlp, blake2b, syntax warning

See original GitHub issue

Description

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 to requirements.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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gsalzercommented, Oct 25, 2021

Thx. After

$ . venv/bin/activate
$ pip install py-evm==0.3.0a13

all requirements are satisfied now.

0reactions
norhhcommented, Nov 20, 2021

py-evm requirement should be fixed now

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found