The config_obj python version must match the python version that WeeWX is 
being run under. This may or may not be python3 and may be different to the 
python version run when the command ‘python’ is executed. If you don’t know 
what version of python you installed WeeWX under you can check by looking 
at the WeeWX log or by looking at the first line of any of the installed 
WeeWX utilities, eg wee_database, wee_config etc (which will be found in 
/usr/share/weewx).

Gary

On Saturday, 11 December 2021 at 03:12:39 UTC+10 [email protected] wrote:

> I have set up 2 instances (sim inter) (Debian Bullseye) according to 
> instructions from https://github.com/weewx/weewx/wiki/weewx-multi. 
> Unfortunately, I get the following error message when starting an instance:
> $ ▶ sudo /etc/init.d/weewx start sim
> Traceback (most recent call last):
>   File "/usr/share/weewx/weewxd", line 20, in <module>.
>    * import configobj*
> ImportError: No module named configobj
>
> *python3-configobj*  is installed
>
> $ ▶ python -V
> Python 3.9.2
>
> $ ▶ python
> Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
> [GCC 10.2.1 20210110] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import configobj
> >>> 
> --------------------------------------------
>
> /etc/default/weewx-multi
> WEEWX_INSTANCES="sim inter"
> WEEWX_CFGDIR=/etc/weewx
> WEEWX_BINDIR=/usr/share/weewx
>
> /etc/weewx/inter.conf
> station_type = Simulator
> HTML_ROOT = /var/www/html/public_html/inter
> database_name = weewx_inter.sdb
>
> /etc/weewx/sim.conf
> station_type = Simulator
> HTML_ROOT = /var/www/html/public_html/sim
> database_name = weewx_sim.sdb
>
> /etc/weewx/weewx.conf
> station_type = Simulator
> HTML_ROOT = /var/www/html/weewx
> database_name = weewx.sdb
>
>
> gjr80 schrieb am Freitag, 24. September 2021 um 02:42:15 UTC+2:
>
>> Have updated the weewx-multi and logging wiki pages.
>>
>> Gary
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/20633233-9426-4480-a99e-b083a4877b6fn%40googlegroups.com.

Reply via email to