We're Hiring!

Figure and PDF export

General user discussion about using the OMERO platform to its fullest. 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

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Re: Figure and PDF export

Postby phm » Wed Aug 10, 2016 9:46 am

wmoore wrote:Hi Philippe,

Are you sure you're still seeing this error:

Code: Select all
packages/PIL/TiffImagePlugin.py", line 608, in save
    if len(data) <= 4:
TypeError: object of type 'int' has no len()


If so, then it seems that you're somehow still running Pillow 3.0 since Pillow 2.9 doesn't have that code at line 608: https://github.com/python-pillow/Pillow ... in.py#L608


Hi Will,

In fact I have 2 different versions of Pillow installed
3.0.0 in
/opt/rh/python27/root/usr/lib64/python2.7/site-packages/Pillow-3.0.0-py2.7.egg-info
2.9.0 in
/usr/local/lib/python2.7/site-packages/Pillow-2.9.0-py2.7.egg-info

If I try to remove Pillow from root it remove the 2.9.0.
And if I do again :
Code: Select all
Cannot uninstall requirement Pillow, not installed


If I do the same thing as omero user it try to remove the 3.0.0 but
Code: Select all
Exception:
Traceback (most recent call last):
  File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip/commands/uninstall.py", line 76, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 336, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 742, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/opt/rh/python27/root/usr/lib64/python2.7/shutil.py", line 302, in move
    os.unlink(src)
OSError: [Errno 13] Permission non accordée: '/opt/rh/python27/root/usr/bin/createfontdatachunk.py'


Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Figure and PDF export

Postby atarkowska » Wed Aug 10, 2016 10:04 am

did you try as root?

Code: Select all
[root@omero omero]# source /opt/rh/python27/enable
[root@omero omero]# pip install --upgrade "Pillow<3.0"


Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Figure and PDF export

Postby phm » Wed Aug 10, 2016 10:10 am

atarkowska wrote:did you try as root?

Code: Select all
[root@omero omero]# source /opt/rh/python27/enable
[root@omero omero]# pip install --upgrade "Pillow<3.0"


Ola


Hi Ola
It's working now after your advice :D .
Thanks a lot
Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Previous

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest