hi 
on fedora 19 i have to change the import Image, import ImageDraw and import 
ImageFont to

from PIL import Image
from PIL import ImageDraw
from PIL Import ImageFont



On Sunday, August 14, 2016 at 12:40:04 PM UTC-5, Allan H wrote:
>
> Den 08-08-2016 kl. 16:36 skrev gjr80: 
> > I have packaged up the windrose generator into a weewx extension. 
>
> I just installed it her on a Centos 7 sytem. 
> While it installs ok, it generates this error, when trying to create the 
> plot: 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****  No module named Image 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****  Traceback (most recent 
> call last): 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****    File 
> "/usr/share/weewx/weewx/reportengine.py", line 125, in run 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****      obj = 
> weeutil.weeutil._get_object(generator)(self.config_dict, 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****    File 
> "/usr/share/weewx/weeutil/weeutil.py", line 1015, in _get_object 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****      mod = 
> __import__(module) 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****    File 
> "/usr/share/weewx/user/imageStackedWindRose.py", line 56, in <module> 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****      import Image 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****  ImportError: No module 
> named Image 
> Aug 14 19:36:26 mail2 weewx[17660]:        ****  Generator ignored... 
>
> Do I need to install something, to find this 'Image' module (and maybe 
> potentially ImageDraw too ) ? 
>
>    Allan. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to