WeeWX ver 4.0.0b12 and weewx-sdr --- No module named configobj

53 views
Skip to first unread message

rich T

unread,
Feb 23, 2020, 10:15:57 AM2/23/20
to weewx-user
Performed a fresh install of WeeWX ver 4.0.0b12.  Weewx (python3) ran fine for over 12hrs in the simulator mode. Installed the latest Weewx-SDR driver and I get the following error:

pi@raspberrypi:/home/weewx $ sudo PYTHONPATH=bin python bin/user/sdr.py --cmd="rtl_433 -M utc -F json"
Traceback (most recent call last):
  File "bin/user/sdr.py", line 92, in <module>
    import weewx.units
  File "/home/weewx/bin/weewx/units.py", line 23, in <module>
    import weeutil.weeutil
  File "/home/weewx/bin/weeutil/weeutil.py", line 26, in <module>
    from weeutil.config import accumulateLeaves, search_up
  File "/home/weewx/bin/weeutil/config.py", line 11, in <module>
    import configobj
ImportError: No module named configobj

Thanks
Rich

Thomas Keffer

unread,
Feb 23, 2020, 10:39:09 AM2/23/20
to weewx-user
Your system command "python" probably resolves to Python 2. You may not have the Python 2 version of configobj installed. Try running again, this time explicitly specifying python3:

sudo PYTHONPATH=bin python3 bin/user/sdr.py --cmd="rtl_433 -M utc -F json"

-tk

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/01af1a22-bb8a-43ba-bf58-8e9ec155dcb7%40googlegroups.com.

rich T

unread,
Feb 23, 2020, 10:57:59 AM2/23/20
to weewx-user
Thanks that resolved the issue.

Rich


On Sunday, February 23, 2020 at 10:39:09 AM UTC-5, Thomas Keffer wrote:
Your system command "python" probably resolves to Python 2. You may not have the Python 2 version of configobj installed. Try running again, this time explicitly specifying python3:

sudo PYTHONPATH=bin python3 bin/user/sdr.py --cmd="rtl_433 -M utc -F json"

-tk

On Sun, Feb 23, 2020 at 7:15 AM rich T <storm...@gmail.com> wrote:
Performed a fresh install of WeeWX ver 4.0.0b12.  Weewx (python3) ran fine for over 12hrs in the simulator mode. Installed the latest Weewx-SDR driver and I get the following error:

p...@raspberrypi:/home/weewx $ sudo PYTHONPATH=bin python bin/user/sdr.py --cmd="rtl_433 -M utc -F json"

Traceback (most recent call last):
  File "bin/user/sdr.py", line 92, in <module>
    import weewx.units
  File "/home/weewx/bin/weewx/units.py", line 23, in <module>
    import weeutil.weeutil
  File "/home/weewx/bin/weeutil/weeutil.py", line 26, in <module>
    from weeutil.config import accumulateLeaves, search_up
  File "/home/weewx/bin/weeutil/config.py", line 11, in <module>
    import configobj
ImportError: No module named configobj

Thanks
Rich

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages