<div dir="ltr">Hi,<div><br></div><div><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 30, 2014 at 8:54 PM, Terry Duell <span dir="ltr"><<a href="mailto:tduell@iinet.net.au" target="_blank">tduell@iinet.net.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello All,<br>
<br>
My apologies if this post turns up twice.<br>
After initially sending it and not seeing it turn up here on the mailing list, it occurred to me that I may have cancelled my subscription to the list some time ago (I have been away from GIS work for a while), so I re-subscribed, and tried again.<br>
<br>
I recently installed GRASS 6.4.3, from the Fedora repository (grass-6.4.3-5.fc20.x86_64).<br>
Starting Cartographic Composer (ps.map), I get the message "Python Imaging<br>
Library is not available. 'Preview' functionality won't work".<br>
Fedora supplies python-pillow, and I have python-pillow-2.2.1-3.fc20.<u></u>x86_64 installed.<br>
I have found that the PIL is installed at /usr/lib64/python2.7/site-<u></u>packages/PIL, and have put that in my path to no avail.<br>
Is there another or different python imaging library required?<br>
If not, is this some other known issue?<br></blockquote><div><br></div><div>There are 2 versions of PIL, the original one (development stopped) which is not available on Fedora any more I think, and the new one - pillow - which requires different form of import. So you can either install newer version of GRASS (probably 6.4.4 or 7, but you would have to probably compile it yourself) which has this issue solved or manually fix the line in the Python code in your grass installation:</div>
<div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Index: /grass/trunk/gui/wxpython/psmap/utils.py
===================================================================
--- /grass/trunk/gui/wxpython/psmap/utils.py (revision 57219)
+++ /grass/trunk/gui/wxpython/psmap/utils.py (revision 58940)
@@ -22,5 +22,5 @@
try:
- import Image as PILImage
+ from PIL import Image as PILImage
havePILImage = True
except ImportError:</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre>If you need some more help let us know.</div><div><br></div><div>Anna</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Anyone have any advice how best to fix this?<br>
<br>
Cheers,<span class=""><font color="#888888"><br>
-- <br>
Regards,<br>
Terry Duell<br>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</font></span></blockquote></div><br></div></div></div>