Paul, take a look at Issue #917
<https://github.com/weewx/weewx/issues/917#issuecomment-1895917342> and see
if that solves your problem.

Short answer: check the contents of /etc/default/weewx and make sure it
points to Python 3.6 or greater.

-tk

On Tue, Jan 30, 2024 at 7:03 AM Paul Shepherd <pshepher...@gmail.com> wrote:

> Hi
>
> I have seen reports of usb permissions / errno 13 on installs of weewx 5.0
>
> After a fresh install of weewx 5.0 via apt-get on Mint 21.3 xfce I got
> this error in syslog:
>
> Jan 29 19:38:35 antec300 systemd[1]: Started WeeWX.
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Initializing weewxd
> version 5.0.0
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Command line:
> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Using Python 3.10.12
> (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Located at
> /usr/bin/python3
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Platform
> Linux-5.15.0-91-generic-x86_64-with-glibc2.35
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Locale: 'en_GB.UTF-8'
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Entry path:
> /usr/share/weewx/weewxd.py
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: WEEWX_ROOT:
> /etc/weewx
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Configuration file:
> /etc/weewx/weewx.conf
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: User module:
> /etc/weewx/bin/user
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO __main__: Debug: 0
> Jan 29 19:38:35 antec300 weewxd[2917]: INFO weewx.engine: Loading station
> type Vantage (weewx.drivers.vantage)
> Jan 29 19:38:35 antec300 weewxd[2917]: ERROR weewx.engine: Import of
> driver failed: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13]
> Permission denied: '/dev/ttyUSB0' (<class
> 'serial.serialutil.SerialException'>)
> Jan 29 19:38:35 antec300 weewxd[2917]: CRITICAL weewx.engine:     ****
>  Traceback (most recent call last):
> ...
>
> I solved this by adding a udev rule:
>
> # make Vantage accessible to weewx user
> SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea61",
> GROUP="dialout", MODE="0666"
>
> Hope this might help someone else.
>
> Thanks for a great program and excellent documentation.
>
> paul
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/7294c7e9-95bb-43d4-91b0-ca5fa511a421n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/7294c7e9-95bb-43d4-91b0-ca5fa511a421n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDzeUxAQ2eBo-VgOY9TZYbqTnWVg%3D1MJHuEq9uoK434kg%40mail.gmail.com.

Reply via email to