No module named 'paho'

153 views
Skip to first unread message

David Schmidt

unread,
May 4, 2020, 7:57:57 AM5/4/20
to weewx-user
Hi there,
I installed paho-mqtt et all as per this guide: https://github.com/weewx/weewx/wiki/mqtt
Now when I start the service I get this:

May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__: Caught unrecoverable exception:                               
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****  No module named 'paho'                              
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****  Traceback (most recent call last):                  
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main 
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)   
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 75, $
n __init__
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****      self.loadServices(config_dict)
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 138,
in loadServices
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self,confi$
_dict)
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1$
93, in get_object
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****      mod = __import__(module)
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****    File "/usr/share/weewx/user/mqtt.py", line 94, in<
module>
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****      import paho.mqtt.client as mqtt
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****  ModuleNotFoundError: No module named 'paho'
May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL __main__:     ****  Exiting.

What could I have missed here?

Thanks
David

G Hammer

unread,
May 4, 2020, 10:03:05 AM5/4/20
to weewx-user
Perhaps you installed the python2 version instead of the python3 version.

David Schmidt

unread,
May 4, 2020, 1:02:11 PM5/4/20
to weewx...@googlegroups.com
Hi there,

I followed the instructions from weewx. Installed all 2.7 python. 
Weird isn't it?

Any further idea to debug?



--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/cZNN3FBwqCs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/fe17e87b-3157-43fd-a998-8d5c377d0c36%40googlegroups.com.

G Hammer

unread,
May 4, 2020, 1:21:46 PM5/4/20
to weewx-user
All your posted errors say python3

May 04 13:53:28 raspberrypi python3[984]: weewx[984] CRITICAL



To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

David Schmidt

unread,
May 4, 2020, 1:27:35 PM5/4/20
to weewx...@googlegroups.com
Interesting, there might be a mess up there at this point!

Thanks for pointing that out.


To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2c19e416-5397-4e2f-aa08-5f8170251f4e%40googlegroups.com.

G Hammer

unread,
May 4, 2020, 1:35:03 PM5/4/20
to weewx...@googlegroups.com
If you are wanting python2 then run everything by using it explicitly.
There are examples in the setup.py guide


David Schmidt

unread,
May 4, 2020, 5:37:28 PM5/4/20
to weewx-user
All right, removed all of python3 and with python2 all runs fine now, thanks for the help!



On Monday, May 4, 2020 at 7:35:03 PM UTC+2, G Hammer wrote:
If you are wanting python2 then run everything by using it explicitly.
There are examples in the setup.py guide


--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/cZNN3FBwqCs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

G Hammer

unread,
May 4, 2020, 6:12:55 PM5/4/20
to weewx...@googlegroups.com
Glad to hear it. Enjoy.

To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/41df21e6-80f2-49e0-b644-18be1e8eb110%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages