I had the same error with sdr driver(weewx v5 )  running on debian 12 . The
problem solved by making udev rules ... maybe you are in the same situation
as i was.

Στις Τρί 6 Φεβ 2024, 11:29 ο χρήστης Mks Mk <[email protected]> έγραψε:

> The system was running weewx v5.0.0 with no issue then we did the upgrade
> to v5.0.1 (sudo apt update) and weewx failed to run.
> we downgraded weewx to v5.0.0 but it did not work this time, so we went
> back to v4.10.2 and it run just fine.
> did the upgrade again and got the same error.so we are back to v4.10.2
> we tested the sdr hardware using rtl_433 and it is working fine.
> we are not sure of what to do next!
>
> log:
> weewxd[2386]: INFO __main__: Starting up weewx version 5.0.1
> weewxd[2386]: INFO weewx.engine: Using binding 'wx_binding' to database
> 'weewx.sdb'
> weewxd[2386]: INFO weewx.manager: Starting backfill of daily summaries
> weewxd[2386]: INFO weewx.manager: Daily summaries up to date
> weewxd[2386]: INFO weewx.engine: Starting main packet loop.
> weewxd[2386]: ERROR user.sdr: rtl_433 version 23.11-41-g06b03b7a branch
> master at 202402051043 inputs file rtl_tcp RTL-SDR
> weewxd[2386]: ERROR user.sdr: Use "-F log" if you want any messages,
> warnings, and errors in the console.
> weewxd[2386]: ERROR user.sdr: usb_open error -3
> weewxd[2386]: ERROR user.sdr: Please fix the device permissions, e.g. by
> installing the udev rules file rtl-sdr.rules
> weewxd[2386]: INFO weewx.engine: Main loop exiting. Shutting engine down.
> weewxd[2386]: INFO user.sdr: shutdown process rtl_433 -f 433.7M -s 1024k
> -R 40
> weewxd[2386]: Exception in thread stdout-thread:
> weewxd[2386]: Traceback (most recent call last):
> weewxd[2386]:   File "/usr/lib/python3.9/threading.py", line 954, in
> _bootstrap_inner
> weewxd[2386]: Exception in thread stderr-thread:
> weewxd[2386]: Traceback (most recent call last):
> weewxd[2386]:   File "/usr/lib/python3.9/threading.py", line 954, in
> _bootstrap_inner
> weewxd[2386]:     self.run()
> weewxd[2386]:   File "/etc/weewx/bin/user/sdr.py", line 197, in run
> weewxd[2386]:     for line in iter(self._fd.readline, ''):
> weewxd[2386]: ValueError: PyMemoryView_FromBuffer(): info->buf must not be
> NULL
> weewxd[2386]:     self.run()
> weewxd[2386]:   File "/etc/weewx/bin/user/sdr.py", line 197, in run
> weewxd[2386]:     for line in iter(self._fd.readline, ''):
> weewxd[2386]: ValueError: PyMemoryView_FromBuffer(): info->buf must not be
> NULL
> weewxd[2386]: INFO user.sdr: shutdown complete
> weewxd[2386]: CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is
> not running
> weewxd[2386]: CRITICAL __main__:     ****  Waiting 60.0 seconds then
> retrying...
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/weewx-user/4c62d6c3-d690-49e8-8151-8b9af8dd5b43n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/4c62d6c3-d690-49e8-8151-8b9af8dd5b43n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAERekb9xjoLYZAFcRMLwVCEHPHqaqMvEmGUFCY2EyheB2FdugA%40mail.gmail.com.

Reply via email to