python-erlang-interface
python-erlang-interface copied to clipboard
Segmentation fault printing eterm
I'm trying out pyerl to do a simple RPC call (mnesia:info() ), but when I try to print the result, I get a segfault... Am I doing something wrong? Here's my code:
import pyerl
host = "myhostname"
name = "ejabberd"
node = name + "@" + host
cookie = "RCLLDOAYEPKKJDKAPGVB"
pyerl.connect_xinit(host, name, node, "127.0.0.1", cookie, 1)
sock = pyerl.xconnect("127.0.0.1", name)
args = pyerl.mk_empty_list()
eterm = pyerl.rpc(sock, "mnesia", "info", args)
pyerl.close_connection(sock)
print eterm
I'm using Python 2.7.3 on Ubuntu 12.04