1. Any particular reason why you're trying to use Python 2 on a Debian 10
system? Normally, the expectation is that Deb 10 (buster) users would be
using Python 3.

2. What is the results of

*ls -l /usr/share/weewx*

3. What is the results of

*ls -l /usr/share/weewx/user*


On Wed, Dec 16, 2020 at 11:27 AM John Mora <[email protected]> wrote:

> Hello, I am attempting to install weewx on my Raspberry Pi 4 8G. I follow
> the instructions in the manual: http://weewx.com/docs/debian.htm
> I log in to the system using the same user/credentials as when I installed
> PiHole and Unbound which installed and ran without any issues.
> When the weewx installation completes, the service fails to start and
> there appears to be folders/files missing.
>
> Here is the console output from the installation process, the output of
> "systemctl status weewx.service" and "journalctl -u weewx"
>
> pi@raspberrypi1:~ $ cat /etc/issue
> Raspbian GNU/Linux 10 \n \l
>
> pi@raspberrypi1:~ $ python --version
> Python 2.7.16
>
> pi@raspberrypi1:~ $ sudo wget -qO - http://weewx.com/keys.html | sudo
> apt-key add -
> OK
>
> pi@raspberrypi1:~ $ sudo wget -qO -
> http://weewx.com/apt/weewx-python2.list | sudo tee
> /etc/apt/sources.list.d/weewx.list
> deb [arch=all] http://weewx.com/apt/python2 squeeze main
>
> pi@raspberrypi1:~ $ sudo apt-get update
> Hit:1 http://weewx.com/apt/python2 squeeze InRelease
> Hit:2 http://archive.raspberrypi.org/debian buster InRelease
> Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
> Fetched 15.0 kB in 1s (11.5 kB/s)
> Reading package lists... Done
> pi@raspberrypi1:~ $ sudo apt-get install weewx
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following package was automatically installed and is no longer
> required:
>   lxplug-volume
> Use 'sudo apt autoremove' to remove it.
> Suggested packages:
>   sqlite ftp
> The following NEW packages will be installed:
>   weewx
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/1,207 kB of archives.
> After this operation, 5,327 kB of additional disk space will be used.
> Preconfiguring packages ...
> Selecting previously unselected package weewx.
> (Reading database ... 100745 files and directories currently installed.)
> Preparing to unpack .../archives/weewx_4.2.0-1_all.deb ...
> Unpacking weewx (4.2.0-1) ...
> Setting up weewx (4.2.0-1) ...
> Job for weewx.service failed because the control process exited with error
> code.
> See "systemctl status weewx.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript weewx, action "start" failed.
> ● weewx.service - LSB: weewx weather system
>    Loaded: loaded (/etc/init.d/weewx; generated)
>    Active: failed (Result: exit-code) since Wed 2020-12-16 13:48:44 EST;
> 22ms ago
>      Docs: man:systemd-sysv-generator(8)
>   Process: 10601 ExecStart=/etc/init.d/weewx start (code=exited,
> status=1/FAILURE)
>
> Dec 16 13:48:43 raspberrypi1 systemd[1]: Starting LSB: weewx weather
> system...
> Dec 16 13:48:44 raspberrypi1 weewx[10601]: Starting weewx weather system:
> weewxTraceback (most recent call last):
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:   File
> "/usr/share/weewx/weewxd", line 28, in <module>
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:     import user.extensions
> Dec 16 13:48:44 raspberrypi1 weewx[10601]: ImportError: No module named
> extensions
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:  failed!
> Dec 16 13:48:44 raspberrypi1 systemd[1]: weewx.service: Control process
> exited, code=exited, status=1/FAILURE
> Dec 16 13:48:44 raspberrypi1 systemd[1]: weewx.service: Failed with result
> 'exit-code'.
> Dec 16 13:48:44 raspberrypi1 systemd[1]: Failed to start LSB: weewx
> weather system.
> dpkg: error processing package weewx (--configure):
>  installed weewx package post-installation script subprocess returned
> error exit status 1
> Processing triggers for systemd (241-7~deb10u5+rpi1) ...
> Errors were encountered while processing:
>  weewx
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> pi@raspberrypi1:~ $ sudo systemctl status weewx.service
> ● weewx.service - LSB: weewx weather system
>    Loaded: loaded (/etc/init.d/weewx; generated)
>    Active: failed (Result: exit-code) since Wed 2020-12-16 13:48:44 EST;
> 8min ag
>      Docs: man:systemd-sysv-generator(8)
>
> Dec 16 13:48:43 raspberrypi1 systemd[1]: Starting LSB: weewx weather
> system...
> Dec 16 13:48:44 raspberrypi1 weewx[10601]: Starting weewx weather system:
> weewxT
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:   File
> "/usr/share/weewx/weewxd", lin
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:     import user.extensions
> Dec 16 13:48:44 raspberrypi1 weewx[10601]: ImportError: No module named
> extensio
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:  failed!
> Dec 16 13:48:44 raspberrypi1 systemd[1]: weewx.service: Control process
> exited,
> Dec 16 13:48:44 raspberrypi1 systemd[1]: weewx.service: Failed with result
> 'exit
> Dec 16 13:48:44 raspberrypi1 systemd[1]: Failed to start LSB: weewx
> weather syst
> lines 1-14/14 (END)
>
>
> pi@raspberrypi1:~ $ journalctl -u weewx
> -- Logs begin at Wed 2020-12-16 08:39:43 EST, end at Wed 2020-12-16
> 14:11:41 EST. --
> Dec 16 13:48:43 raspberrypi1 systemd[1]: Starting LSB: weewx weather
> system...
> Dec 16 13:48:44 raspberrypi1 weewx[10601]: Starting weewx weather system:
> weewxTraceback (most recent call last):
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:   File
> "/usr/share/weewx/weewxd", line 28, in <module>
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:     import user.extensions
> Dec 16 13:48:44 raspberrypi1 weewx[10601]: ImportError: No module named
> extensions
> Dec 16 13:48:44 raspberrypi1 weewx[10601]:  failed!
> Dec 16 13:48:44 raspberrypi1 systemd[1]: weewx.service: Control process
> exited, code=exited, status=1/FAILURE
> Dec 16 13:48:44 raspberrypi1 systemd[1]: weewx.service: Failed with result
> 'exit-code'.
> Dec 16 13:48:44 raspberrypi1 systemd[1]: Failed to start LSB: weewx
> weather system.
>
>
> Any assistance would be awesome. If any other information is needed please
> ask and also keep in mind I am a bit of a newb at this, meaning "Explain
> like I am a 5 yesr old"
>
> Thanks in advance.
>
> --
> 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/857bce3a-bcc4-40fd-b1de-9f722dfbf031n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/857bce3a-bcc4-40fd-b1de-9f722dfbf031n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEC-DP3%2BK3jCpQHeM5JrMbVumW6O2zE_1S51L%2B2X6f3bzQ%40mail.gmail.com.

Reply via email to