[GRASS-user] ps.map can't find python imaging library
Anna Petrášová
kratochanna at gmail.com
Sun Mar 30 18:32:14 PDT 2014
Hi,
On Sun, Mar 30, 2014 at 8:54 PM, Terry Duell <tduell at iinet.net.au> wrote:
> 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?
>
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.
Anna
> Anyone have any advice how best to fix this?
>
> Cheers,
> --
> Regards,
> Terry Duell
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140330/2ed00208/attachment.html>
More information about the grass-user
mailing list