Re: [weewx-user] 4.0.0b16 - No diagrams - No module named 'Image'

2020-03-22 Thread Thomas Keffer
You need to install either PIL or pillow.

*sudo apt install python3-pil*

-tk

On Sun, Mar 22, 2020 at 7:01 AM Michael  wrote:

> Hello,
>
> i'm trying to get a weewx 4.0.0b16 running in conjunction with python3
> installation.
>
> Unfortunately no diagrams are drawn in Skin Seasons.
>
> Enclosed is an extract from the log. I guess I made a mistake during the
> installation or forgot something. Only what...?
>
>
>
>
>
>
>
> Mar 22 14:46:24 raspi02 weewx[19089] DEBUG user.sdr: packet={'extraTemp1':
> 17.1, 'extraHumid1': 54.0, 'dateTime': 1584884781, 'usUnits': 16}
>
> Mar 22 14:46:25 raspi02 weewx[19089] INFO weewx.manager: Added record
> 2020-03-22 14:45:00 CET (1584884700) to database 'weewx_sdr2'
>
> Mar 22 14:46:25 raspi02 weewx[19089] INFO weewx.manager: Added record
> 2020-03-22 14:45:00 CET (1584884700) to daily summary in 'weewx_sdr2'
>
> Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.reportengine: Running
> reports for latest time in the database.
>
> Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.reportengine: Running
> report 'SeasonsReport'
>
> Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.reportengine: Found
> configuration file /home/weewx/skins/Seasons/skin.conf for report
> 'SeasonsReport'
>
> Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.cheetahgenerator: Using
> search list ['weewx.cheetahgenerator.Almanac',
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
> 'weewx.cheetahgenerator.Extras']
>
> Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.manager: Daily summary
> version is 2.0
>
> Mar 22 14:46:27 raspi02 weewx[19089] INFO weewx.cheetahgenerator:
> Generated 8 files for report SeasonsReport in 2.21 seconds
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: Unable to
> instantiate generator 'weewx.imagegenerator.ImageGenerator'
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   No module named 'Image'
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   Traceback (most recent call last):
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> File "/home/weewx/bin/weeplot/genplot.py", line 15, in 
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   from PIL import Image, ImageDraw
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line
> 69, inMar 22 14:46:27 raspi02 weewx[19089] ERROR
> weewx.reportengine:   from . import _imaging as core
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   ImportError: libopenjp2.so.7: Kann die Shared-Object-Datei nicht
> öffnen: Datei oder Verzeichnis nicht gefunden
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> 
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   During handling of the above exception, another exception occurred:
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> 
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   Traceback (most recent call last):
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> File "/home/weewx/bin/weewx/reportengine.py", line 180, in run
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   obj = weeutil.weeutil.get_object(generator)(
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in
> get_object
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   mod = __import__(module)
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> File "/home/weewx/bin/weewx/imagegenerator.py", line 19, in
> 
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   import weeplot.genplot
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
> File "/home/weewx/bin/weeplot/genplot.py", line 17, in 
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   import Image, ImageDraw
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   ModuleNotFoundError: No module named 'Image'
>
> Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:
>   Generator ignored
>
> Mar 22 14:46:27 raspi02 weewx[19089] INFO weewx.reportengine: Copied 0
> files to /var/www/html/weewx-sdr2
>
> Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report
> 'SmartphoneReport' not enabled. Skipping.
>
> Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report
> 'MobileReport' not enabled. Skipping.
>
> Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report
> 'StandardReport' not enabled. Skipping.
>
> Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report
> 'FTP' not enabled. Skipping.
>
> Mar 22 14:46:27 

[weewx-user] 4.0.0b16 - No diagrams - No module named 'Image'

2020-03-22 Thread Michael
 

Hello,

i'm trying to get a weewx 4.0.0b16 running in conjunction with python3 
installation.

Unfortunately no diagrams are drawn in Skin Seasons.

Enclosed is an extract from the log. I guess I made a mistake during the 
installation or forgot something. Only what...? 

 

 

 

Mar 22 14:46:24 raspi02 weewx[19089] DEBUG user.sdr: packet={'extraTemp1': 
17.1, 'extraHumid1': 54.0, 'dateTime': 1584884781, 'usUnits': 16}

Mar 22 14:46:25 raspi02 weewx[19089] INFO weewx.manager: Added record 
2020-03-22 14:45:00 CET (1584884700) to database 'weewx_sdr2'

Mar 22 14:46:25 raspi02 weewx[19089] INFO weewx.manager: Added record 
2020-03-22 14:45:00 CET (1584884700) to daily summary in 'weewx_sdr2'

Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.reportengine: Running 
reports for latest time in the database.

Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.reportengine: Running 
report 'SeasonsReport'

Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.reportengine: Found 
configuration file /home/weewx/skins/Seasons/skin.conf for report 
'SeasonsReport'

Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.cheetahgenerator: Using 
search list ['weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
'weewx.cheetahgenerator.Extras']

Mar 22 14:46:25 raspi02 weewx[19089] DEBUG weewx.manager: Daily summary 
version is 2.0

Mar 22 14:46:27 raspi02 weewx[19089] INFO weewx.cheetahgenerator: Generated 
8 files for report SeasonsReport in 2.21 seconds

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: Unable to 
instantiate generator 'weewx.imagegenerator.ImageGenerator'

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
No module named 'Image'

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
Traceback (most recent call last):

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeplot/genplot.py", line 15, in 

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:  
 
from PIL import Image, ImageDraw

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 
File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 69, in 
   Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
  
  from . import _imaging as core

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
ImportError: libopenjp2.so.7: Kann die Shared-Object-Datei nicht öffnen: 
Datei oder Verzeichnis nicht gefunden

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
During handling of the above exception, another exception occurred:

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
Traceback (most recent call last):

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 180, in run

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:  
 
obj = weeutil.weeutil.get_object(generator)(

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:  
 
mod = __import__(module)

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/imagegenerator.py", line 19, in 

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:  
 
import weeplot.genplot

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeplot/genplot.py", line 17, in 

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:  
 
import Image, ImageDraw

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
ModuleNotFoundError: No module named 'Image'

Mar 22 14:46:27 raspi02 weewx[19089] ERROR weewx.reportengine:   
Generator ignored

Mar 22 14:46:27 raspi02 weewx[19089] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx-sdr2

Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report 
'SmartphoneReport' not enabled. Skipping.

Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report 
'MobileReport' not enabled. Skipping.

Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report 
'StandardReport' not enabled. Skipping.

Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report 'FTP' 
not enabled. Skipping.

Mar 22 14:46:27 raspi02 weewx[19089] DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.

Mar 22 14:46:28 raspi02 weewx[19089] DEBUG