Just installed Trixie on my Raspberry Pi 3. I created a virtual environment
and installed Python, required software, and WeeWX using PIP. The weather
hardware is from BC Robotics, which has worked beautifully for many years.
I wrote the driver many years ago.
My test app runs fine. I can also run WeeWX manually (i.e., activate my
weeve virtual environment and then run 'weewxd') and it operates just fine.
However, if I start weewx using the command 'sudo systemctl start weewx'
and check the system log it does not start properly. I'm very confused by
the following error in the log:
Oct 08 08:35:08 raspberrypi systemd[1]: Started weewx.service - WeeWX
weather system.
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Initializing
weewxd version 5.1.0
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Command line:
/home/dave/weeve/lib/python3.13/site-packages/weewxd.py
/home/dave/weewx-data/weewx.conf
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Using Python:
3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0]
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Located at:
/home/dave/weeve/bin/python3
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Platform:
Linux-6.12.47+rpt-rpi-v8-aarch64-with-glibc2.41
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Locale:
'en_CA.UTF-8'
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Entry path:
/home/dave/weeve/lib/python3.13/site-packages/weewxd.py
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: WEEWX_ROOT:
/home/dave/weewx-data
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Config file:
/home/dave/weewx-data/weewx.conf
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: User module:
/home/dave/weewx-data/bin/user
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Debug: 0
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: User: dave
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Group: dave
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO __main__: Groups: adm
dialout cdrom sudo audio video plugdev games users netdev lpadmin gpio i2c
spi render input dave
Oct 08 08:35:09 raspberrypi weewxd[4962]: INFO weewx.engine: Loading
station type BCRobotics (user.BCRobotics)
Oct 08 08:35:09 raspberrypi python3[4962]: 2025-10-08 08:35:09 xCreatePipe:
Can't set permissions (436) for //.lgd-nfy0, No such file or directory
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: Caught
OSError: [Errno 2] No such file or directory: '.lgd-nfy-3'
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
Traceback (most recent call last):
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/home/dave/weeve/lib/python3.13/site-packages/weewxd.py", line 121,
in main
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
engine = weewx.engine.StdEngine(config_dict)
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/home/dave/weeve/lib/python3.13/site-packages/weewx/engine.py", line
80, in __init__
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
self.setupStation(config_dict)
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/home/dave/weeve/lib/python3.13/site-packages/weewx/engine.py", line
104, in setupStation
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
__import__(driver)
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
~~~~~~~~~~^^^^^^^^
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/home/dave/weewx-data/bin/user/BCRobotics.py", line 29, in <module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
import board
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/home/dave/weeve/lib/python3.13/site-packages/board.py", line 51, in
<module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
from adafruit_blinka.board.raspberrypi.raspi_40pin import *
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File
"/home/dave/weeve/lib/python3.13/site-packages/adafruit_blinka/board/raspberrypi/raspi_40pin.py",
line 6, in <module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
from adafruit_blinka.microcontroller.bcm283x import pin
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File
"/home/dave/weeve/lib/python3.13/site-packages/adafruit_blinka/microcontroller/bcm283x/pin.py",
line 7, in <module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
from adafruit_blinka.microcontroller.generic_linux.rpi_gpio_pin import Pin
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File
"/home/dave/weeve/lib/python3.13/site-packages/adafruit_blinka/microcontroller/generic_linux/rpi_gpio_pin.py",
line 6, in <module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
from RPi import GPIO
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 14, in
<module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
import lgpio
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/usr/lib/python3/dist-packages/lgpio.py", line 562, in <module>
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
_notify_thread = _callback_thread()
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
File "/usr/lib/python3/dist-packages/lgpio.py", line 504, in __init__
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
self._file = open('.lgd-nfy{}'.format(self._notify), 'rb')
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
FileNotFoundError: [Errno 2] No such file or directory: '.lgd-nfy-3'
Oct 08 08:35:09 raspberrypi weewxd[4962]: CRITICAL __main__: ****
Waiting 10 seconds then retrying...
HELP!!
--
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/df68a173-9654-4843-80fb-5b450d76d1cfn%40googlegroups.com.