ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
442 stars 62 forks source link

2 Different Errors When Installing Packages #73

Closed jcmleng closed 1 year ago

jcmleng commented 1 year ago

Checklist:

Release with the issue: v1.6.2 Last working release (if known): N/A - new install Hardware, Operating System, Python version: RPi 4B Debian GNU/Linux system

Description of problem: I am trying to install the Packages into 2 separate RPi that I want to monitor.

  1. RPi 1: FlightWare ADSB Feeder. Have typed the Installation command for Packages for Ubuntu, Raspberry OS and the like. I get the error: Unable to locate package python3-paho-mqtt - see below, and am unable to proceed image

  2. RPi 2: FLightradar ADSB Feeder I then typed the same installation command for Packages in the 2nd RPi. The script worked, but I have a whole raft of error messages, they seem to relate to an IP address that is not found.

FR RPi Error Msg.txt

Would appreciate any help to get past both these issues.

Run our report script 'genBugInfo' on your failing device and include the output here:

Python errors shown in the logs (if applicable):

Additional information:

bsimmo commented 1 year ago

That's a repository error. Reboot, type sudo apt update This updates the apt information You should always use that before other apt install commands.

If it still happens, then the mirror it is using is not working.

On Fri, 3 Feb 2023, 2:58 am jcmleng, @.***> wrote:

Checklist:

  • [X ] I updated to the latest version available
  • [ X] I checked that my MQTT broker is otherwise working

Release with the issue: v1.6.2 Last working release (if known): N/A - new install Hardware, Operating System, Python version: RPi 4B Debian GNU/Linux system

Description of problem: I am trying to install the Packages into 2 separate RPi that I want to monitor.

1.

RPi 1: FlightWare ADSB Feeder. Have typed the Installation command for Packages for Ubuntu, Raspberry OS and the like. I get the error: Unable to locate package python3-paho-mqtt - see below, and am unable to proceed [image: image] https://user-images.githubusercontent.com/117505668/216498565-233c4b9c-b214-49e6-b8fe-049e9399fa39.png 2.

RPi 2: FLightradar ADSB Feeder I then typed the same installation command for Packages in the 2nd RPi. The script worked, but I have a whole raft of error messages, they seem to relate to an IP address that is not found.

FR RPi Error Msg.txt https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/files/10575173/FR.RPi.Error.Msg.txt

Would appreciate any help to get past both these issues.

Run our report script 'genBugInfo' on your failing device and include the output here:

Python errors shown in the logs (if applicable):

Additional information:

— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/73, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN4WRP5ETJN7D6G4U4DWVRX5BANCNFSM6AAAAAAUPYJS5M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jcmleng commented 1 year ago

Thanks Ben. I did (1) sudo apt update and (2) sudo apt upgrade to all 3 of my RPi's. Installation was OK on 2 of the 3 RPi's, as in, I am now at the config.ini step.

The 3rd RPi has one error:

image

Do I install everything in the package installation script excluding paho-mqtt and intall paho-mqtt as a standalone package as a step 2?

bsimmo commented 1 year ago

Hi, I've just noticed you are still using the now outdated Stretch release of Debian (or PiOS) I have a feeling it didn't have paho-mqtt, or at least remember problems with it.

Use pip3 install paho-mqtt instead hopefully that works for you. It ill always be the newest version from there.

You may want to look at moving to Bullseye (or in half a year or so to bookworm) Stretch security updates stopped some years back I think (though it's Long Term Support status finishes in a few month too)

BebeMischa commented 1 year ago

I see you are using it as a flight feeder. Most of the recent feeder images are based on Buster or Bullseye. Both work fine wit rpi monitor. I run piaware just fine on Buster. So, just upgrade your feeder, I would say.

jcmleng commented 1 year ago

Thanks Ben. I removed "python3-paho-mqtt" from the Installation script whick allowed the installation of all files other than paho-mqtt. I then installed paho-mqtt per your command and paho-mqtt was installed with no issues. Have to now figure out the MQTT setup! Thanks for your help in helping get past the installation issues!