On 8/20/14, 8:04 AM, Werner wrote:>
On 8/20/2014 16:22, Sibylle Koczian wrote:
Reportlab is installed, it doesn't need pil as long as I don't try to
include images in my report. But trying to install pil doesn't work,
because Gentoo by default installs the fork, pillow, into both Python
versions. I suppose it's quite possible to change that, but it would
be much simpler to do without. There are no images in my reports -
just as reportlab itself can be installed without pil, can't Dabo use
it without pil?

I agree that Dabo shouldn't be demanding PIL (or Pillow) if it won't be needed.

It might be easier to just allow for both PIL and Pillow.

Following is untested:

So line 17 in reportWriter.py:
for lib in ("reportlab", "Image"):

would be:
for lib in ("reportlab", "PIL"):

and change the actual import of it from:
import Image

to:
from PIL import Image

Not following exactly what this would accomplish, but if the former doesn't allow for Pillow and the latter does, I'm for it.

However, I think we need to delay the original import of PIL until it is actually going to be used, so that Sibylle's case (report with no images) works without needing PIL.

On a side note, *every* time I write PIL I think of Public Image Ltd. (http://en.wikipedia.org/wiki/Public_Image_Ltd) :)

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to