Message6455

Author hheimbuerger
Recipients hheimbuerger, pjenvey
Date 2011-03-24.15:36:26
SpamBayes Score 3.2180258e-10
Marked as misclassified No
Message-id <1300980986.44.0.118264769873.issue1722@psf.upfronthosting.co.za>
In-reply-to
Content
I guess that's also the reason why 'import collections' does not work, then?

Here's the code I use to integrate the Jython class into Java:

    private MetaModel prepareMetaModel() throws IOException {
        PySystemState engineSys = new PySystemState();
        Py.setSystemState(engineSys);
        PythonInterpreter interpreter = new PythonInterpreter();
        InputStream resourceAsStream = Plugin.getResource("/src-py/MetaModel.py");
        interpreter.execfile(resourceAsStream);

        interpreter.exec("x = MetaModelImpl()");
        Object x = interpreter.get("x").__tojava__(MetaModel.class);
        MetaModel metaModel = (MetaModel) x;

        return metaModel;
    }

I guess the problem could be the empty PySystemState? Strangely, other packages like time seem to work just fine as it is.
History
Date User Action Args
2011-03-24 15:36:26hheimbuergersetmessageid: <1300980986.44.0.118264769873.issue1722@psf.upfronthosting.co.za>
2011-03-24 15:36:26hheimbuergersetrecipients: + hheimbuerger, pjenvey
2011-03-24 15:36:26hheimbuergerlinkissue1722 messages
2011-03-24 15:36:26hheimbuergercreate