Login  Register

Python script can't find __future__ module

Posted by Alex-2 on Jul 09, 2018; 2:29pm
URL: http://imagej.273.s1.nabble.com/Python-script-can-t-find-future-module-tp5020940.html

I'm trying to import with_statement from __future__ but get the following error:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named __future__

Currently using ImageJ 1.52e.
Is this expected?  Examples here (https://imagej.net/Jython_Scripting) show the import from __future__
ThanksAlex




--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html