I can't get my PYTHONPATH to work.

Firstly,  this works properly:

rtl_433 -C si -M time:utc  -R 40 -R 113 -T 40

BUT this does not:

PYTHONPATH=/usr/share/weewx/  python /usr/share/weewx/weewx/sdr.py 
--cmd="rtl_433 -C si -M time:utc  -R 40 -R 113 -T 40 "

Response is 

Traceback (most recent call last):

  File "/usr/share/weewx/weewx/sdr.py", line 92, in <module>

    import weewx.units

  File "/usr/share/weewx/weewx/units.py", line 23, in <module>

    import weeutil.weeutil

  File "/usr/share/weewx/weeutil/weeutil.py", line 26, in <module>

    from weeutil.config import accumulateLeaves, search_up

  File "/usr/share/weewx/weeutil/config.py", line 11, in <module>

    import configobj

ImportError: No module named configobj


then, trying python3, I get a different error:

PYTHONPATH=/usr/share/weewx/  python3 /usr/share/weewx/weewx/sdr.py 
--cmd="rtl_433 -C si -M time:utc  -R 40 -R 113 -T 40 "

out:['']

err:b'rtl_433 version 20.11-99-g090f1169 branch master at 202103202118 
inputs file rtl_tcp RTL-SDR with TLS\n'

err:b'Use -h for usage help and see https://triq.org/ for documentation.\n'

err:b'Trying conf file at "rtl_433.conf"...\n'

err:b'Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...\n'

err:b'Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...\n'

err:b'Trying conf file at "/etc/rtl_433/rtl_433.conf"...\n'

err:b'Registered 2 out of 183 device decoding protocols [ 40 113 ]\n'

err:b'Opening file:  failed!\n'

I don't really know what's wrong.


Please 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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/b3dc4a7c-1183-4dfa-bc29-618e5f2036a7n%40googlegroups.com.

Reply via email to