install skin Belchertown with weewx 4.10.2

248 views
Skip to first unread message

sali...@gmail.com

unread,
Oct 9, 2023, 2:41:06 PM10/9/23
to weewx-user
hello,

now the skin "Season" is OK, I want to install the skin" Belchertown" but I have this Error:

 sudo /usr/share/weewx/wee_extension --install weewx-belchertown-release-1.3.1.tar.gz
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 13, in <module>
    import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py", line 23, in <module>
    import configobj
ImportError: No module named configobj

I had already this error but I don't remenber that I done to resolve.

Patrick

vince

unread,
Oct 9, 2023, 4:12:32 PM10/9/23
to weewx-user
If you are on a debian-based operating system and using python3....

sudo pip3 install configobj

If you run into more missing modules see https://www.weewx.com/docs/4.10/setup.htm

Tom Keffer

unread,
Oct 9, 2023, 4:26:47 PM10/9/23
to weewx...@googlegroups.com
He may have used a package installer (not setup.py or pip).

Patrick, how did you install weewx? If you used a package installer, it should have installed configobj for you.

Also, what do you get for

head /usr/share/weewx/wee_extension

-tk


--
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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%40googlegroups.com.

sali...@gmail.com

unread,
Oct 9, 2023, 5:05:01 PM10/9/23
to weewx-user
I installed Weewx as " WeeWX: Installation on Debian-based systems "
My linux RPI is
 lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

Weewx with skin works fine.

 /usr/share/weewx/wee_extension

Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 13, in <module>
    import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py", line 23, in <module>
    import configobj
ImportError: No module named configobj

I go to try to follow the advice of Vince.
But I seem to have already done them.
I come back to you and I say you.

Patrick.

Tom Keffer

unread,
Oct 9, 2023, 5:08:17 PM10/9/23
to weewx...@googlegroups.com
How about..

sali...@gmail.com

unread,
Oct 9, 2023, 5:20:31 PM10/9/23
to weewx-user
after the command:

sudo apt update #
  sudo apt install python3-configobj 
sudo apt install python3-pil
 sudo apt install python3-serial
 sudo apt install python3-usb
 sudo apt install python3-pip

Des erreurs ont été rencontrées pendant l'exécution :
 python3
 python3-wheel
 python3-serial
 python3-six
 python3-pil:armhf
 python3-configobj
 python3-dev
 python3-pip
 python3-lib2to3
 python3-pkg-resources
 python3-distutils
 python3-setuptools
 python3-usb
 python3-olefile
E: Sub-process /usr/bin/dpkg returned an error code (1)

sali...@gmail.com

unread,
Oct 9, 2023, 5:35:21 PM10/9/23
to weewx-user
$ /usr/share/weewx/wee_extension

Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 13, in <module>
    import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py", line 23, in <module>
    import configobj
ImportError: No module named configobj

sali...@gmail.com

unread,
Oct 9, 2023, 5:38:57 PM10/9/23
to weewx-user
my version of pip3

 pip3 --version
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

vince

unread,
Oct 9, 2023, 5:54:40 PM10/9/23
to weewx-user
yes I saw it was a dpkg installation - I was pointing him to how to try to add the modules manually if any others are missing.

Looking up the error he gets on Google I see https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1 which says his dpkg stuff under the hood is corrupt, which makes sense.

My confusion is Patrick saying weewx works ok, how could that be if configobj was not there ?   Other than a python2 vs python3 thing, all I can suggest is reimage the pi if that becomes the only option.

sali...@gmail.com

unread,
Oct 9, 2023, 6:03:29 PM10/9/23
to weewx-user
I am OK with Vince, how weewx can work well ?

patrick

sali...@gmail.com

unread,
Oct 9, 2023, 6:10:19 PM10/9/23
to weewx-user
If this is the only solution I will re-image the PI but that's a shame.
patrick

vince

unread,
Oct 9, 2023, 6:15:58 PM10/9/23
to weewx-user
I'm afraid I have no more ideas.  MANY people run weewx on raspberry pi without issues.

salinois

unread,
Oct 9, 2023, 6:20:39 PM10/9/23
to weewx...@googlegroups.com

Yes me too, but my sdcard crashed because sector poweroff. ( worked well since 3 years).

and I installed a new image.

Patrick

Tom Keffer

unread,
Oct 9, 2023, 6:28:21 PM10/9/23
to weewx...@googlegroups.com
My confusion is Patrick saying weewx works ok, how could that be if configobj was not there ?   Other than a python2 vs python3 thing, all I can suggest is reimage the pi if that becomes the only option.


This is why I have been asking for

head /usr/share/weewx/wee_extension

While you're at it, perhaps you can compare to weewxd:

head /usr/share/weewx/weewxd

salinois

unread,
Oct 10, 2023, 2:29:51 PM10/10/23
to weewx...@googlegroups.com

hello,

 so. I just installed weewx on an other RPi Version (buster)

weewx is OK.

test with the skin Belchertown 1.3.1

result:

 sudo wee_extension --install weewx-belchertown-release-1.3.1.tar.gz
Request to install 'weewx-belchertown-release-1.3.1.tar.gz'


Traceback (most recent call last):

  File "/usr/share/weewx/wee_extension", line 92, in <module>
    main()
  File "/usr/share/weewx/wee_extension", line 84, in main
    ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 139, in install_extension
    raise InstallError("Extension '%s' not found." % extension_path)
weecfg.extension.InstallError: Extension 'weewx-belchertown-release-1.3.1.tar.gz' not found.

test with the skin Belchertown 1.2

result:

sudo wee_extension --install weewx-belchertown-release-1.2.tar.gz
Request to install 'weewx-belchertown-release-1.2.tar.gz'
Extracting from tar archive weewx-belchertown-release-1.2.tar.gz
Saving installer file to /usr/share/weewx/user/installer/Belchertown
Saved configuration dictionary. Backup copy at /etc/weewx/weewx.conf.20231010195736
Finished installing extension 'weewx-belchertown-release-1.2.tar.gz'


 head /usr/share/weewx/wee_extension
#!/usr/bin/env python
#
#    Copyright (c) 2009-2021 Tom Keffer <tke...@gmail.com> and Matthew Wall
#
#    See the file LICENSE.txt for your rights.
#
"""Install and remove extensions."""
from __future__ import absolute_import
import optparse
import sys


head /usr/share/weewx/weewxd
#!/usr/bin/env python
#
#    Copyright (c) 2009-2021 Tom Keffer <tke...@gmail.com>
#
#    See the file LICENSE.txt for your rights.
#
"""Entry point to the weewx weather system."""
from __future__ import absolute_import
from __future__ import print_function


Problem with version 1.3.1 de Belchertown

  • Station hardware: BYOWS - Raspberry Pi
  • Server uptime: 34185 seconds
  • WeeWX uptime: 163 seconds
  • WeeWX version: 4.10.2
  • Belchertown Skin Version: 1.2

bye


Patrick


Le 10/10/2023 à 00:27, Tom Keffer a écrit :
head /usr/share/weewx/weewxd

paul...@gmail.com

unread,
Oct 11, 2023, 5:13:25 AM10/11/23
to weewx-user
Hi Patrick

See this link for the solution. You need a dot not a hyphen (dash) before 1.3.1.tar.gz


Paul

salinois

unread,
Oct 12, 2023, 2:33:18 PM10/12/23
to weewx...@googlegroups.com
thank you Paul, 
that's a mistake, it is. Why is this dash there alone?!!! test and it works, I am in 1.3.1

Patrick

--
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.
Reply all
Reply to author
Forward
0 new messages