i have only just become interested in mqtt (to make my custom weewx gauges near realtime). the link to the MQTT weewx extension mentioned below lists two prerequisites: paho-mqtt, python-cjson. paho-mqtt installed fine. python-cjson fails. i haven't found anything in the forum relating to this failure, has someone seen it?
macos 10.13.6 with macports pebble:weewx $ sudo python3.7 -m pip install python-cjson ... Collecting python-cjson Downloading python-cjson-1.2.2.tar.gz (12 kB) Installing collected packages: python-cjson Running setup.py install for python-cjson ... error ERROR: Command errored out with exit status 1: ... cjson.c:1206:9: error: non-void function 'initcjson' should return a value [-Wreturn-type] return; ^ 69 warnings and 13 errors generated. error: command '/usr/bin/clang' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-pnhk7sf4/python-cjson/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-pnhk7sf4/python-cjson/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-8ccz83fi/install-record.txt --single-version-externally-managed --compile --install-headers /opt/local/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/python-cjson Check the logs for full command output. > On 4 May 2020, at 5:28 am, Tom Keffer <tkef...@gmail.com> wrote: > > Colin, yes, your version of mqtt.py needs to be updated. You can the link on > the MQTT wiki page <https://github.com/weewx/weewx/wiki/mqtt>. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CC1D3848-292E-469F-A26C-A8489FD708BD%40gmail.com.