<div dir="ltr"><font class="Apple-style-span" color="#ff0000">Hi,</font><div><br></div><div><br><div class="gmail_quote">On Tue, Oct 11, 2011 at 20:00, Josh Moore <span dir="ltr"><<a href="mailto:josh@glencoesoftware.com">josh@glencoesoftware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Oct 11, 2011, at 6:43 AM, Leon Kolchinsky wrote:<br>
<br>
> Hello,<br>
><br>
> 1. How do I run auto "cleanse" job via cron (so it won't ask me for username<br>
> and password)?<br>
><br>
> "$ /srv/omeroserver/bin/omero -s localhost admin cleanse /srv/omerodata" -<br>
> asks for username/pass<br>
> "$ /srv/omeroserver/bin/omero -s root@localhost admin cleanse<br>
> /srv/omerodata" - asks for pass<br>
<br>
</div>There's currently no way to login passwordlessly, but I've added <a href="https://trac.openmicroscopy.org.uk/ome/ticket/6957" target="_blank">https://trac.openmicroscopy.org.uk/ome/ticket/6957</a> in order to examine adding support for that. Until then, you'll need to follow the recipes on the backup-and-restore page:<br>


<br>
    <a href="https://www.openmicroscopy.org/site/support/omero4/server/backup-and-restore" target="_blank">https://www.openmicroscopy.org/site/support/omero4/server/backup-and-restore</a></blockquote><div><br></div><div>

<font class="Apple-style-span" color="#cc0000">Thanks, I'll try that. </font></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<div class="im"><br>
> 2. Is it possible to include this patch into Omero releases (from Chris<br>
> Allan):<br>
> <a href="http://users.openmicroscopy.org.uk/~cxallan/pil_image_import_inline.patch" target="_blank">http://users.openmicroscopy.org.uk/~cxallan/pil_image_import_inline.patch</a><br>
><br>
> It solves some client issues for us (python 2.6).<br>
><br>
> This is how I patch OMERO web client:<br>
> [root@vera144 log]# cd /srv/OMERO.server-Beta-4.3.2/lib/python/<br>
> [root@vera144 python]# wget<br>
> <a href="http://users.openmicroscopy.org.uk/~cxallan/pil_image_import_inline.patch" target="_blank">http://users.openmicroscopy.org.uk/~cxallan/pil_image_import_inline.patch</a><br>
> [root@vera144 python]# cp omeroweb/webclient/webclient_gateway.py<br>
> omeroweb/webclient/webclient_gateway.py.orig<br>
> [root@vera144 python]# patch -p0 < pil_image_import_inline.patch<br>
> patching file omeroweb/webclient/webclient_gateway.py<br>
> [root@vera144 python]# chown omero.omero<br>
> omeroweb/webclient/webclient_gateway.pyl<br>
<br>
</div>Unfortunately, it's still unclear why this patch is only necessary for your installation, and therefore, it's likely that adding this would break other installations. The import block at the top of that file:<br>


<br>
try:<br>
    from PIL import Image, ImageDraw # see ticket:2597<br>
except ImportError:<br>
    try:<br>
        import Image, ImageDraw # see ticket:2597<br>
    except:<br>
        logger.error("You need to install the Python Imaging Library. Get it at <a href="http://www.pythonware.com/products/pil/" target="_blank">http://www.pythonware.com/products/pil/</a>")<br>
        logger.error(traceback.format_exc())<br>
<br>
should definitely have already imported "Image". If there are any generic fixes you can make to that block so that your installation works without Chris' patch, that would be something we could add to the main codebase.<br>

</blockquote><div><font class="Apple-style-span" color="#ff0000">Hmm, I'm not a python user myself so it's kinda Chinese for me.</font></div><div><font class="Apple-style-span" color="#ff0000">Sorry, I don't have any python skills (except of installing one and it's modules.....)</font></div>

<div><font class="Apple-style-span" color="#ff0000">Anyway AFAIK, additional "Import" shouldn't break anything in theory. </font></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<br>
Cheers,<br>
~Josh.<br>
<br>
<br>
> Thank you,<br>
> Leon Kolchinsky<br></blockquote><div><br></div><div><font class="Apple-style-span" color="#ff0000">Thanks,</font></div><div><font class="Apple-style-span" color="#ff0000">Leon </font></div></div><br></div></div>