Hi Dave,

Maybe a python search path problem?  You may have to add the directory
containing your modules to the PYTHONPATH env variable or modify
sys.path from right in the Inline Python.   You could play with
something like

----
use strict;
use warnings;
use Inline Python => <<END;
import sys
print sys.path
END
---

to see the search path you're already getting from Inline and if maybe
the code you want is somewhere in there?  Or if you've "installed" the
fastCif stuff, is PYTHONHOME set to get the python environment where
you installed the package?

If your paths look good, maybe check to see if you can successfully
use a class in the standard library?

---
use strict;
use warnings;
use Inline Python => "from argparse import ArgumentParser";
my $argparse = new ArgumentParser;
$argparse->add_argument('--outdir');
my $args = $argparse->parse_args(['--outdir', 'foo']);
print "Argument outdir is $args->{outdir}\n";
---

-Jean

Reply via email to