Hello,
Having trouble running a .py batch processing script https://github.com/bramalingam/Omero-Imagej-Scripts/blob/master/omero_batch_analysis.py from the FIJI script interface. Error message below.
Any ideas?
THANKS!
FYI nothing works in the .py script interface, e.g., print("hello"), which makes me suspect the Jy/Python environment is not setup properly. The OMERO and FIJI environments are setup as instructed in Balaji's video. FIJI:OMERO connection is working properly.
Environment:
OMERO 5.3.5-ice36-b73
OSX 10.12.4
FIJI v2.0.0-rc-65/1.51a
Python 2.7 (Anaconda build)
MATLAB R2015a
Error message:
SyntaxError: ("no viable alternative at input 'import'", ('<string>', 1, 0, 'import os\n'))
at org.python.core.ParserFacade.fixParseError(ParserFacade.java:95)
at org.python.core.ParserFacade.parse(ParserFacade.java:205)
at org.python.core.CompileFunction.compile(__builtin__.java:1672)
at org.python.core.CompileFunction.compile(__builtin__.java:1648)
at org.python.core.CompileFunction.compile(__builtin__.java:1640)
at org.python.core.__builtin__.eval(__builtin__.java:492)
at org.python.core.__builtin__.eval(__builtin__.java:501)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:251)
at org.scijava.plugins.scripting.jython.JythonScriptEngine.eval(JythonScriptEngine.java:64)
at org.scijava.script.ScriptModule.run(ScriptModule.java:160)
at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66)
at org.scijava.thread.DefaultThreadService$3.call(DefaultThreadService.java:238)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)