error after update

374 views
Skip to first unread message

miso k

unread,
Nov 13, 2021, 1:17:15 PM11/13/21
to weewx-user
Hello together,
I have installed latest OS to my raspberry - Bullseye.
during the WeeWX start I get this message:

Nov 13 19:14:46 WeeWX weewx[2941] INFO user.interceptor: shutting down server thread
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__: Caught unrecoverable exception:
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****  No module named 'paho'
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****  Traceback (most recent call last):
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 151, in main
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****      self.loadServices(config_dict)
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****      mod = __import__(module)
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****    File "/usr/share/weewx/user/MQTTSubscribe.py", line 300, in <module>
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****      import paho.mqtt.client as mqtt
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****  ModuleNotFoundError: No module named 'paho'
Nov 13 19:14:47 WeeWX weewx[2941] CRITICAL __main__:     ****  Exiting.

what is wrong? do I need to change something?

thanks
Michal

miso k

unread,
Nov 13, 2021, 1:24:51 PM11/13/21
to weewx-user


then I have installed everything in here: https://github.com/matthewwall/weewx-mqtt, now it shows:

Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) Version is 2.0.0-rc03
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) Log level: 0
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) Log debug setting: 0
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) Log console: False
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) Log file: None
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) message_callback_provider_name is user.MQTTSubscribe.MessageCallbackProvider
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) clientid is MQTTSubscribe-4074
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) client_session is True
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) host is localhost
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) port is 1883
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) keepalive is 60
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) username is None
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) password is not set
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.MQTTSubscribe: (Service) Archive topic is None
Nov 13 19:22:06 WeeWX weewx[3188] ERROR user.MQTTSubscribe: (Service) Failed to connect to localhost at 1883. '[Errno 97] Address family not supported by protocol'
Nov 13 19:22:06 WeeWX weewx[3188] INFO user.interceptor: shutting down server thread
Nov 13 19:22:07 WeeWX weewx[3188] CRITICAL __main__: Caught WeeWxIOError: [Errno 97] Address family not supported by protocol
Nov 13 19:22:07 WeeWX weewx[3188] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...

in weewx.conf i have all the settings for mqtt:

    [[MQTT]]
        server_url = mqtt://pi:mypas...@jastrabie.webpage:8883/
        topic = weather
        unit_system = METRIC
        binding = archive, loop
        aggregation = aggregate
        log_success = False
        log_failure = True
        [[[tls]]]
            tls_version = tlsv12
            ca_certs = /etc/ssl/certs/ca-certificates.crt

Dátum: sobota 13. novembra 2021, čas: 19:17:15 UTC+1, odosielateľ: miso k

Stephen Hocking

unread,
Nov 13, 2021, 4:42:45 PM11/13/21
to weewx...@googlegroups.com
You're missing a paho package for python, and need to install it. if you installation is using python3, "sudo apt-get install python3-paho-mqtt" should do the trick.

--
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/29ced556-10b5-431a-a3b5-37641afb9a6cn%40googlegroups.com.


--
  "I and the public know
  what all schoolchildren learn
  Those to whom evil is done
  Do evil in return"		W.H. Auden, "September 1, 1939"

Reply all
Reply to author
Forward
Message has been deleted
0 new messages