Oh, and

rob@pi4:~ $ python3
Python 3.13.1 (main, Dec 12 2024, 15:48:42) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>> import PIL
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    import PIL
ModuleNotFoundError: No module named 'PIL'
>>> import Cheetah
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    import Cheetah
ModuleNotFoundError: No module named 'Cheetah'
 

On Wednesday, October 15, 2025 at 9:46:10 AM UTC-7 Rob Cranfill wrote:

> All,
>
> I'm reading the docs and trying the various debugging guides, and just got 
> some good/different results by running weewxd in the foreground. A new 
> error has popped up, perhaps a clue to what-all is going on.
>
> One line of data collection shown, then two Python errors: importing 
> Cheetah and PIL. Should I try installing these by hand? (I'll ignore the 
> question of why they weren't already installed, either from my 5.0.2 weewx, 
> or by the new installer.) 
>
> ...
> 93530461563, rain: 0.0, rainAlarm: 0.0, rainRate: 0.0, rxCheckPercent: 
> 37.58333333333333, soilLeafAlarm1: 0.0, soilLeafAlarm2: 0.0, 
> soilLeafAlarm3: 0.0, soilLeafAlarm4: 0.0, stormRain: 0.0, sunrise: 
> 1760538540.0, sunset: 1760577600.0, txBatteryStatus: 0, usUnits: 1, 
> wind_samples: 44.0, windchill: 46.1, windDir: None, windGust: 1.0, 
> windGustDir: 0.0, windrun: 0.0, windSpeed: 0.0, windSpeed10: 0.0, yearET: 
> 0.0, yearRain: 17.96
>
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewx/reportengine.py", line 231, in run
>     obj = weeutil.weeutil.get_object(generator)(
>           ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
>   File "/usr/share/weewx/weeutil/weeutil.py", line 1404, in get_object
>     module = importlib.import_module(module_name)
>   File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in 
> import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 1331, in 
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
>   File "<frozen importlib._bootstrap>", line 488, in 
> _call_with_frames_removed
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 67, in <module>
>     import Cheetah.Filters
> ModuleNotFoundError: No module named 'Cheetah'
>
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewx/reportengine.py", line 231, in run
>     obj = weeutil.weeutil.get_object(generator)(
>           ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
>   File "/usr/share/weewx/weeutil/weeutil.py", line 1404, in get_object
>     module = importlib.import_module(module_name)
>   File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in 
> import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 1331, in 
> _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
>   File "<frozen importlib._bootstrap>", line 488, in 
> _call_with_frames_removed
>   File "/usr/share/weewx/weewx/imagegenerator.py", line 14, in <module>
>     import weeplot.genplot
>   File "/usr/share/weewx/weeplot/genplot.py", line 13, in <module>
>     from PIL import Image, ImageDraw, ImageFont
> ModuleNotFoundError: No module named 'PIL'
>
> Followed by the same Cheetah error again.
>
> Suggestions?
>
>

-- 
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].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/65b03e13-1f40-4ac6-bc59-5140940a2a68n%40googlegroups.com.

Reply via email to