On Thursday, December 9, 2021 at 1:52:46 AM UTC-5 [email protected] wrote:

> *I'm having problems following your directions for installing the latest 
> version of weewx-sdr.*
>
> *4) run the driver directly to identify the packets you want to capture cd 
> /home/weewx sudo PYTHONPATH=bin python bin/user/sdr.py --cmd="rtl_433 -M 
> utc -F json"*
>
> *my path is different, as far as I understand. When I change the command 
> to where I've found my sdr.py, I get this response: *
>
> sudo PYTHONPATH=bin python ./weewx-sdr/bin/user/sdr.py --cmd="rtl_433 -M 
> utc -F json"
> Traceback (most recent call last):
>   File "./weewx-sdr/bin/user/sdr.py", line 91, in <module>
>     import weewx.drivers
> ImportError: No module named weewx.drivers
>

the PYTHONPATH should terminate at the weewx BIN_ROOT directory (where the 
weewx executables are located).  if you installed using rpm or deb package, 
that would be:

PYTHONPATH=/usr/share/weewx

if you installed using setup.py to the /home/weewx directory, that would be:

PYTHONPATH=/home/weewx/bin

you can use either absolute or relative path

-- 
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/91dbca2f-0a28-4643-acc9-9f07e4caa044n%40googlegroups.com.

Reply via email to