Closed shapeshed closed 6 years ago
I get something similar running against ganache-cli
v7. It shows no transactions in its log.
python deployment.py
Traceback (most recent call last):
File "deployment.py", line 1, in <module>
from plasma.root_chain.deployer import Deployer
ImportError: No module named plasma.root_chain.deployer
make: *** [root-chain] Error 1
Which version of Python are you using? Have you done python setup.py install
before running make?
@shapeshed Yeah this is an artifact of the recent Web3.py update from v3 to v4
I followed the directions in the README, but I fail at step 2 make root-chain
python deployment.py
Traceback (most recent call last):
File "deployment.py", line 1, in <module>
from plasma.root_chain.deployer import Deployer
File "/Users/nick/Code/ethereum/plasma-mvp/plasma/root_chain/deployer.py", line 31
'sources': {**{path.split('/')[-1]: {'urls': [path]}}, **contracts}}, # Noqa E999
^
SyntaxError: invalid syntax
make: *** [root-chain] Error 1
ethereumjs-testrpc@6.0.3 Python 2.7.10
Any help is appreciated.
Hi, could you try running on py3 and seeing if that changes anything? We should probably be backwards compatible with py2, but I'm not sure that we currently are.
@kfichter Yep, it seems that py3 is required. I also needed to install solc
(different from solcjs
) and downgrade the compiler from 0.4.21
to 0.4.18
with
brew unlink solidity
brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/2aea171d7d6901b97d5f1f71bd07dd88ed5dfb42/solidity.rb
Fixed in #26
TestRPC log is