Installation of version 4.2.0

120 views
Skip to first unread message

Ton vanN

unread,
Dec 15, 2020, 12:40:45 PM12/15/20
to weewx-user
Tried a fresh installation of weewx on Raspberry3B+/RaspianBuster.
Stuck, being unable to install some prerequisites.
Prior to install of main program of weewx already difficulties, but very clear message when running the install-instruction from Raspberry's CLI:
apt-get install weewx

Then reports (with related dutch text that installation not possible):
python-configobj (>= 4.5) maar het is niet installeerbaar
python-cheetah (>= 2.0) maar het is niet installeerbaar
python-usb (>= 0.4) maar het is niet installeerbaar

Looked in the manuals and tried the various options, and looked in this group, but not yet seen a remedy:
a workaround available for installation of these 3 prerequisites?
Is this effect version-dependent, and might install of older version better work?

vince

unread,
Dec 15, 2020, 1:08:12 PM12/15/20
to weewx-user
Please post the exact transcript of everything you did and what the computer returned.

It's fine if you would like to google translate the transcript into English.


Ton vanN

unread,
Dec 16, 2020, 3:24:36 AM12/16/20
to weewx-user
Vince,

First step was straightforward, simple use of this instruction (considering that the target machine is Raspberry with Raspian Buster (latest):
Response from the installation process (directly translated from the dutch text):
python-configobj (>= 4.5) but cannot be installed
python-cheetah (>= 2.0) but cannot be installed
python-usb (>= 0.4) but cannot be installed

After this error report, then I tried this instruction for individual installation of the files:
Response for each of the files  was that the file could not be found.

Op dinsdag 15 december 2020 om 19:08:12 UTC+1 schreef vince:

Ton vanN

unread,
Dec 16, 2020, 3:36:19 AM12/16/20
to weewx-user
Example command-line & response (with basic translation manually added behind each line).
Had to use sudo, because otherwise remark that no admission and question whether I have administrator rights.
Python3, because (although Python2.7 is on the machine as part of Domoticz) generally I try to apply Python3.x

sudo apt-get install python3-configobj
Pakketlijsten worden ingelezen... Klaar                                => Packagelist read ... Ready
Boom van vereisten wordt opgebouwd                                => Tree of Requisites being built
De statusinformatie wordt gelezen... Klaar                          => Status info being read ... Ready
E: Kan pakket python3-configobj niet vinden                       => Package python3-configobj cannot be found


Op woensdag 16 december 2020 om 09:24:36 UTC+1 schreef Ton vanN:

Ton vanN

unread,
Dec 16, 2020, 3:45:31 AM12/16/20
to weewx-user
This morning tried a few more variations as described in the setup-instruction, but no luck with modules configobj and usb.
Intending to apply WeeWx, the module for usb is not really required (instead a UDP-sniffer to be applied), but configobj seems critical.

Op woensdag 16 december 2020 om 09:36:19 UTC+1 schreef Ton vanN:

Ton vanN

unread,
Dec 16, 2020, 3:57:52 AM12/16/20
to weewx-user
Another test from CLI:
 sudo pip3 install python3-configobj
Response:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting python3-configobj
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/python3-configobj/

But latest variation finally was OK!
sudo pip3 install configobj
Response:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting configobj
  Downloading https://www.piwheels.org/simple/configobj/configobj-5.0.6-py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from configobj) (1.12.0)
Installing collected packages: configobj
Successfully installed configobj-5.0.6


Op woensdag 16 december 2020 om 09:45:31 UTC+1 schreef Ton vanN:

Ton vanN

unread,
Dec 16, 2020, 6:17:23 AM12/16/20
to weewx-user
Making progress:
now weewx up & running with simulator

Next is  linking to a webserver.
Apache already running on all my Raspberries due to Domoticz.
It's folder (within the Domoticz-installation) is /home/pi/domoticz/www
No folder /var/www present
Therefore references in the WeeWx-setup instructions not immediately applicable.
Trying to install Apache at another level results in failure, with response as described below.

CLI-input:
sudo apt-get install apache2 -y                       [also tried with apt and pip3, without success]
Response:
Pakketlijsten worden ingelezen... Klaar

Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
Pakket apache2 is niet beschikbaar, hoewel er naar verwezen wordt door
een ander pakket. Mogelijk betekent dit dat het pakket ontbreekt,
verouderd is, of enkel beschikbaar is van een andere bron
E: Pakket 'apache2' heeft geen kandidaat voor installatie

Google-translated:
Package lists are being read ... Done
Tree of requirements is built The status information is being read ... Done
Package apache2 is not available, although it is referenced by another package. This may mean that the package is missing, obsolete, or only available from another source
E: Package 'apache2' has no candidate for installation

Must be people with previous, comparable experience for this configuration:
what is a practical solution (regardless whether Apache or other webserver, but Apache/nginx for Domoticz must remain operational!)?
Op woensdag 16 december 2020 om 09:57:52 UTC+1 schreef Ton vanN:

vince

unread,
Dec 16, 2020, 11:35:08 AM12/16/20
to weewx-user
I would simply symlink 'from' the existing tree 'to' the weewx directory:
   ln -s /home/weewx/public_html /home/pi/domoticz/www/weewx

Then you should see the web pages from weewx in your web if you use http://hostname/weewx



Ton vanN

unread,
Dec 18, 2020, 3:37:57 AM12/18/20
to weewx-user
'Problem' for adding usb-capability solved by using a command-string linking to another usb-module
sudo pip3 install pyusb
After running that string at least the configuration-menu has no complaints anymore and shows all devices with usb-interface.

Op woensdag 16 december 2020 om 17:35:08 UTC+1 schreef vince:
Reply all
Reply to author
Forward
0 new messages