Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install contract #1

Closed
snowsky opened this issue Aug 30, 2017 · 7 comments
Closed

Failed to install contract #1

snowsky opened this issue Aug 30, 2017 · 7 comments

Comments

@snowsky
Copy link

snowsky commented Aug 30, 2017

Hi there,

I run into the issue when I tried to install contract. It seems the server side changed.


client software: EthereumJS TestRPC/v1.1.2/ethereum-js
block: 0
address: 0xa67b13f5a6a84ab459edb373716f8d0069f777aa

compiling contract...
Traceback (most recent call last):
File "installContract.py", line 113, in
main()
File "installContract.py", line 68, in main
compiled = rpc.eth_compileSolidity(CONTRACT_CODE)
File "/usr/local/lib/python2.7/dist-packages/ethjsonrpc/client.py", line 483, in eth_compileSolidity
return self._call('eth_compileSolidity', [code])
File "/usr/local/lib/python2.7/dist-packages/ethjsonrpc/client.py", line 65, in _call
raise BadResponseError(response)
ethjsonrpc.exceptions.BadResponseError: {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Error: Method eth_compileSolidity not supported.\n at GethApiDouble.handleRequest (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:82422:16)\n at next (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:52153:18)\n at VmSubprovider.handleRequest (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:59291:12)\n at next (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:52153:18)\n at GethDefaults.handleRequest (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:82339:12)\n at next (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:52153:18)\n at FilterSubprovider.handleRequest (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:58850:7)\n at next (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:52153:18)\n at DelayedBlockFilter.handleRequest (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:82167:3)\n at next (/usr/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:52153:18)', u'code': -32000}}

@ckl8964
Copy link

ckl8964 commented Oct 24, 2017

I got same error ... any idea on that ?

@ckl8964
Copy link

ckl8964 commented Oct 24, 2017

Got the answer

ethereum/EIPs#209

@samir1977
Copy link

@ckl8964 - How you resolved this issue, is it by using @deprecated comment. Please guide me here.

@why1988seu
Copy link

I meet the same error. How to resolve the error?

@thoschm
Copy link
Owner

thoschm commented Nov 29, 2017

Hi, the eth package has been updated in the meantime and support for in-code contract compilation was dropped, I guess I'll rewrite to use the solc compiler, let me check

@thoschm
Copy link
Owner

thoschm commented Nov 30, 2017

So, now it's fixed. Hopefully they will not change the rpc interface again soon.
Please git pull again, especially installContract.py, then it should work.
Also, in case you followed the setup instructions, please do:
sudo npm install -g ethereumjs-testrpc solc
sudo pip install -U keras==2.0.0

We're now using the external solc compiler, and its called from the python script.

  • git pull
  • sudo npm install -g ethereumjs-testrpc solc
  • sudo pip install -U keras==2.0.0
  • that's it

let me know if it doesn't work :-)

@thoschm thoschm closed this as completed Nov 30, 2017
@ravishankar2000
Copy link

ravishankar2000 commented Nov 30, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants