python-erlang-interface icon indicating copy to clipboard operation
python-erlang-interface copied to clipboard

Segmentation fault printing eterm

Open Jorilx opened this issue 12 years ago • 0 comments

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

Jorilx avatar Aug 15 '12 19:08 Jorilx