I try to include the omero.gateway module into a python script. When I load the module with
- Code: Select all
from omero.gateway import BlitzGateway
I get the error:
- Code: Select all
from omero.gateway import BlitzGateway
File "omero/gateway/__init__.py", line 37, in <module>
import omero.scripts as scripts
File "omero/scripts.py", line 28, in <module>
import omero.util.temp_files
File "omero/util/temp_files.py", line 343, in <module>
manager = TempFileManager()
File "omero/util/temp_files.py", line 52, in __init__
self.userdir = self.tmpdir() / ("%s_%s" %
File "omero/util/temp_files.py", line 153, in tmpdir
targets.append(path(tempfile.gettempdir()) / "omero" / "tmp")
NameError: global name 'path' is not defined
Any help is appreciated.
Thanks
Alex