Ubuntu 14.04, 64-bit
Python 2.7.6
Using pyethereum and serpent cloned from github on 2014-05-28 at 21:12Z
pythereum commit f25fbebc19a320f7cd1057e6b00ee1f04acf0d6e
serpent commit 8776b2d0ba08d7a99e8f6bd166e37116e9e8b2b5
The example is taken straight from
http://blog.ethereum.org/2014/04/10/pyethereum-and-serpent-programming-guide-2/$ serpent compile namecoin.se
Traceback (most recent call last):
File "/usr/local/bin/serpent", line 10, in
execfile(__file__)
File "/home/me/Ethereum/serpent/scripts/serpent", line 42, in
main()
File "/home/me/Ethereum/serpent/scripts/serpent", line 34, in main
o = getattr(serpent, cmd)(*args)
File "/home/me/Ethereum/serpent/serpent/compiler.py", line 494, in compile
return assemble(compile_to_assembly(parse(source)))
File "/home/me/Ethereum/serpent/serpent/compiler.py", line 388, in compile_to_assembly
c3 = compile_expr(c2, varhash)
File "/home/me/Ethereum/serpent/serpent/compiler.py", line 317, in compile_expr
varhash)
File "/home/me/Ethereum/serpent/serpent/compiler.py", line 294, in compile_expr
o.extend(compile_expr(arg, varhash))
File "/home/me/Ethereum/serpent/serpent/compiler.py", line 282, in compile_expr
raise Exception("Cannot set value of " + str(ast.args[0].value))
Exception: Cannot set value of None
Comments
["if", ["!", ["access", "contract.storage", ["access", "msg.data", "0"]]], ["seq", ["set", ["access", "contract.storage", ["access", "msg.data", "0"]], ["access", "msg.data", "1"]], ["return", "1"]], ["return", "0"]]
and the source (renamed so as to be uploadable) is attached.
47011b4624ec6d61a398038244ac0256a3082fa0
at this point), the examples are used for testing aswel now.