If you did a package installation of weewx, as you did, the executables are
in /usr/bin so your "this was working" makes sense. It's finding
wee_extension because your shell's $PATH includes that directory by
default. Don't overthink things. It works !!
On Tuesday, November 15, 2022 at
this was not working...
*# /usr/share/weewx/wee_extension
--install=/usr/local/bin/WeeWX-MQTTSubscribe/v2.2.2.tar.gz Traceback (most
recent call last): File "/usr/share/weewx/wee_extension", line 13, in
import weecfg.extension File
"/usr/share/weewx/weecfg/__init__.py", line 23,
What fixed it for me:
sudo pip3 install configobj
-Troy
On Mon, Nov 14, 2022, 12:22 PM George Michalopoulos
wrote:
> i have the same exact problem...
>
>
>
>
>
>
>
> *# /usr/share/weewx/wee_extension
> --install=/usr/local/bin/WeeWX-MQTTSubscribe/v2.2.2.tar.gz Traceback (most
> recent call
i have the same exact problem...
*# /usr/share/weewx/wee_extension
--install=/usr/local/bin/WeeWX-MQTTSubscribe/v2.2.2.tar.gz Traceback (most
recent call last): File "/usr/share/weewx/wee_extension", line 13, in
import weecfg.extension File
"/usr/share/weewx/weecfg/__init__.py",
Weewx was originally installed using python3 (running on rpi 4 with buster)
Running "ps axu | grep wee"
root 15080 15.8 3.3 122252 64084 ?Sl Nov04 388:36 python3
/usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid
/etc/weewx/weewx.conf
pi 31454 0.0 0.0 7244
Guessing you installed weewx using python2 originally.
Lets see what you're actually running.
Try "ps axu | grep wee" and it should show us which python version you're
running.
An example will look something like the following for a python3 packaged
install on debian 11:
root 394