Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Proper usage of Inline::Python

by OverlordQ (Hermit)
on Oct 12, 2014 at 09:59 UTC ( [id://1103537] : note . print w/replies, xml ) Need Help??

in reply to Re: Proper usage of Inline::Python
in thread Proper usage of Inline::Python

That's what I tried.

py_eval('import hyperdex.client'); my $client = Inline::Python::Object->new('hyperdex.client','Client');
Gives me:
exceptions.TypeError: __cinit__() takes exactly 2 positional arguments (0 given) at line 1060
Which makes it seem, oh, I'll just add the two parameters. However:
py_eval('import hyperdex.client'); my $client = Inline::Python::Object->new('hyperdex.client','Client','1 +',1982);
Gives me the
Can't bless non-reference value at /usr/local/lib/perl/5.14.2/Inline/ line 317.
error again.