Hello,
I am trying the first contract in the tutorial listed here:
https://github.com/ethereum/wiki/wiki/SerpentAfter I follow the steps listed to compile mul2.se, I get the following error:
Error (file "mul2.se", line 1, char 12): Not a function or opcode: def
terminate called after throwing an instance of 'std::string'
Does anyone know what the cause of the issue is?
Thank you!
Comments
>>> c = s.abi_contract('mul2.se')
Error (file "mul2.se", line 1, char 12): Not a function or opcode: def
Traceback (most recent call last):
File "", line 1, in
File "/home/user1/ethereum/pyEthTestEnv/local/lib/python2.7/site-packages/ethereum-1.0.5-py2.7.egg/ethereum/tester.py", line 164, in abi_contract
evm = language.compile(code, **cn_args)
File "build/bdist.linux-x86_64/egg/serpent.py", line 79, in
Exception: Error (file "mul2.se", line 1, char 12): Not a function or opcode: def
Installed pyethereum and serpent from git, and 'pip list' shows:
ethereum (1.0.5)
ethereum-serpent (1.6.7)
...
Any ideas?
Thanks!
Duplicate here: https://forum.ethereum.org/discussion/3422/error-with-pyethereum-abi-contract-importing-serpent-not-a-function-or-opcode-def
git checkout develop
make
make install