We're Hiring!

Split Channel View generates Error

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Split Channel View generates Error

Postby rpoehlmann » Tue Oct 24, 2017 12:11 pm

Dear OMERO Team,

our users report back to us that "split channel" view is no longer working.
The WebGUI shows an empty "loading ..." page without image.

The OMEROweb.log file as well as diagnostic output from omero.web.debug shows:

Code: Select all
Request Method:    GET
Request URL:    https://omerodev.biozentrum.unibas.ch/webclient/render_split_channel/335097/0/0/?c=1%7C0:3012$FF0013,2%7C0:7632$00A0FF&m=c&p=split&ia=0&q=0.9&maps=[%7B%22reverse%22:%7B%22enabled%22:false%7D%7D,%7B%22reverse%22:%7B%22enabled%22:false%7D%7D]
Django Version:    1.8.18
Exception Type:    IOError
Exception Value:    

cannot write mode RGBA as JPEG

Exception Location:    /home/omeronas/omeroweb/lib/python2.7/site-packages/PIL/JpegImagePlugin.py in _save, line 607
Python Executable:    /home/omeronas/omeroweb/bin/python2
Python Version:    2.7.5
Python Path:    

['/home/omeronas/OMERO.server-5.3.4-ice36-b69/lib/python/omeroweb',
'/home/omeronas/omeroweb/bin',
'/home/omeronas/OMERO.server/lib/python',
'/home/omeronas/OMERO.server/var/lib',
'/home/omeronas/OMERO.server/lib/fallback',
'/home/omeronas/omeroweb/lib64/python27.zip',
'/home/omeronas/omeroweb/lib64/python2.7',
'/home/omeronas/omeroweb/lib64/python2.7/plat-linux2',
'/home/omeronas/omeroweb/lib64/python2.7/lib-tk',
'/home/omeronas/omeroweb/lib64/python2.7/lib-old',
'/home/omeronas/omeroweb/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7',
'/usr/lib/python2.7',
'/home/omeronas/omeroweb/lib/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages',
'/home/omeronas/OMERO.server/lib/python/omeroweb']

Server time:    Tue, 24 Oct 2017 10:56:42 +0100


Unfortunately, our users also claime that it had been working before and started to fail out of the blue. I can confirm this since I can detect those
Code: Select all
raise IOError("cannot write mode %s as JPEG" % im.mode)

starting after a certain date.

Unfortunately, nothing was changed from our side on the system, which is OMERO.server-5.3.4-ice36-b69, Pillow (4.2.1). Upgrade to Pilliow 4.3.0 also did not change anything.

Is this the https://github.com/python-pillow/Pillow/issues/2609 kind of problem? Why did it work before?

To be honest, I am kind of lost. Any supportive input would be greatly appreciated.

Thanks & best regards,
-Rainer
User avatar
rpoehlmann
 
Posts: 42
Joined: Thu Feb 09, 2012 2:04 pm

Re: Split Channel View generates Error

Postby wmoore » Wed Oct 25, 2017 1:37 pm

Hi,

It looks like you need to use a different version of Pillow since this error is from 4.2.0
https://github.com/python-pillow/Pillow/issues/2609

Our requirement for OMERO.web is for <3.4, see
https://github.com/openmicroscopy/openm ... 27-all.txt

So Pillow 3.3.0 should work fine.

Our install process should have used this requirements.txt to install the correct version.
Is this what you did or has something changed since.
Any suggestions for docs fixes / improvements are always welcome.

Regards,

Will.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: Split Channel View generates Error

Postby rpoehlmann » Wed Oct 25, 2017 2:56 pm

Hi Will,

thanks a lot for the quick response. Downgrade to Pillow 3.3.3 did solve the issue, perfect!

Obviously my fault, I somehow overlooked this tiny little detail although written in the documentation albeit slightly hidden as a footnote. Most likely I also paid more attention towards "requirements-py27.txt" and kind of missed "requirements-py27-all.txt".

Regards,
Rainer
User avatar
rpoehlmann
 
Posts: 42
Joined: Thu Feb 09, 2012 2:04 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron