I should have mentioned I have been installing/upgrading via the "install 
via apt" method - not a .deb file.
 /r

On Tuesday, October 14, 2025 at 5:36:43 PM UTC-7 Rob Cranfill wrote:

> Trying to go from 5.0.2 (I think) to 5.2, I get the following in my log 
> (see below). Suggestions?
>
> System: 
>   rob@pi4:/etc/weewx $ lsb_release -a
>   No LSB modules are available.
>   Distributor ID: Debian
>   Description:    Debian GNU/Linux 12 (bookworm)
>   Release:        12
>   Codename:       bookworm
>
> Been working fine for over a year with 5.0.2. :-]
>
>
>
> Oct 14 17:08:55 pi4 systemd[1]: Started weewx.service - WeeWX.
> Oct 14 17:08:55 pi4 weewxd[3538]: INFO __main__: Initializing weewxd 
> version 5.2.0
> Oct 14 17:08:55 pi4 weewxd[3538]: INFO __main__: Command line: 
> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> Oct 14 17:08:55 pi4 weewxd[3538]: INFO __main__: Using Python: 3.13.1 
> (main, Dec 12 2024, 15:48:42) [GCC 12.2.0]
> Oct 14 17:08:55 pi4 weewxd[3538]: INFO __main__: Located at:   
> /usr/local/bin/python3
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Platform:     
> Linux-6.12.34+rpt-rpi-v8-aarch64-with-glibc2.36
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Locale:       
> 'en_US.UTF-8'
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Entry path:   
> /usr/share/weewx/weewxd.py
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: WEEWX_ROOT:   /etc/weewx
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Config file: 
>  /etc/weewx/weewx.conf
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: User module: 
>  /etc/weewx/bin/user
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Debug:        0
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: User:         weewx
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Group:        weewx
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO __main__: Groups:       dialout 
> www-data weewx
> Oct 14 17:08:56 pi4 weewxd[3538]: INFO weewx.engine: Loading station type 
> Vantage (weewx.drivers.vantage)
> Oct 14 17:08:56 pi4 weewxd[3538]: ERROR weewx.engine: Import of driver 
> failed: No module named 'serial' (<class 'ModuleNotFoundError'>)
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     **** 
>  Traceback (most recent call last):
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  self.console = loader_function(config_dict, self)
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****         
>             ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****    File 
> "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  return VantageService(engine, config_dict)
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****    File 
> "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****    File 
> "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  self.port.openPort()
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  ~~~~~~~~~~~~~~~~~~^^
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****    File 
> "/usr/share/weewx/weewx/drivers/vantage.py", line 317, in openPort
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     ****     
>  import serial
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL weewx.engine:     **** 
>  ModuleNotFoundError: No module named 'serial'
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL __main__: Unable to load 
> driver: No module named 'serial'
> Oct 14 17:08:56 pi4 weewxd[3538]: CRITICAL __main__:     ****  Exiting...
> Oct 14 17:08:56 pi4 systemd[1]: weewx.service: Main process exited, 
> code=exited, status=4/NOPERMISSION
> Oct 14 17:08:56 pi4 systemd[1]: weewx.service: Failed with result 
> 'exit-code'.
>
>
> Seems like the error is 
>
> Oct 14 17:08:56 pi4 weewxd[3538]: ERROR weewx.engine: Import of driver 
> failed: No module named 'serial' (<class 'ModuleNotFoundError'>)
>
> But I do think pyserial is installed:
>
> rob@pi4:/etc/weewx $ pip install pyserial
> Defaulting to user installation because normal site-packages is not 
> writeable
> Looking in indexes: https://pypi.org/simple, 
> https://www.piwheels.org/simple
> Requirement already satisfied: pyserial in 
> /home/rob/.local/lib/python3.13/site-packages (3.5)
>
>

-- 
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/17eb45e4-e922-410f-9137-b2250149a344n%40googlegroups.com.

Reply via email to