Hello All,
My apologies if this post turns up twice.
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.
I recently installed GRASS 6.4.3, from the Fedora repository (grass-6.4.3-5.fc20.x86_64).
Starting Cartographic Composer (ps.map), I get the message "Python Imaging
Library is not available. 'Preview' functionality won't work".
Fedora supplies python-pillow, and I have python-pillow-2.2.1-3.fc20.x86_64 installed.
I have found that the PIL is installed at /usr/lib64/python2.7/site-packages/PIL, and have put that in my path to no avail.
Is there another or different python imaging library required?
If not, is this some other known issue?
Anyone have any advice how best to fix this?
Cheers,
--
Regards,
Terry Duell
Copy of my reply to Anna.
On Mon, 31 Mar 2014 13:41:15 +1100, Terry Duell <tduell@iinet.net.au> wrote:
Hello Anna,
On Mon, 31 Mar 2014 12:32:14 +1100, Anna Petrášová <kratochanna@gmail.com> wrote:
[snip]
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:
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:
If you need some more help let us know.
Thanks for your very quick and helpful response.
I made the above change to 'utils.py' and it now appears to be working nicely.
Many thanks.
Cheers,
--
Regards,
Terry Duell