Seite 12 von 19

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:08
von mr.big
Probiere noch mal so

Code: Alles auswählen

/home/pi/.env/bin/pip3 install psycopg2-binary

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:16
von JDDOC
hab's probiert

(.env) pi@solaranzeige:~ $ /home/pi/.env/bin/pip3 install psycopg2-binary
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: psycopg2-binary in ./.env/lib/python3.9/site-packages (2.9.9)

(.env) pi@solaranzeige:~ $ awtrix3connect
Traceback (most recent call last):
File "/home/pi/scripts/AWTRIX3-Connector/./awtrix3connect.py", line 40, in <module>
from funktionen import (
File "/home/pi/scripts/AWTRIX3-Connector/funktionen.py", line 12, in <module>
import psycopg2
File "/home/pi/.env/lib/python3.9/site-packages/psycopg2/__init__.py", line 51, in <module>
from psycopg2._psycopg import ( # noqa
ImportError: libpq.so.5: cannot open shared object file: No such file or directory
(.env) pi@solaranzeige:~/scripts/AWTRIX3-Connector $

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:23
von mr.big
lösch mal bitte die Lib mit

Code: Alles auswählen

rm -r /home/pi/.env/lib/python3.9/site-packages/psycopg2*
dann nochmal installieren

Code: Alles auswählen

/home/pi/.env/bin/pip3 install psycopg2-binary
und bitte noch mal testen!

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:31
von JDDOC
hab's gemacht:

Code: Alles auswählen

(.env) pi@solaranzeige:~ $ rm -r /home/pi/.env/lib/python3.9/site-packages/psycopg2*
(.env) pi@solaranzeige:~ $ /home/pi/.env/bin/pip3 install psycopg2-binary
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting psycopg2-binary
  Using cached https://www.piwheels.org/simple/psycopg2-binary/psycopg2_binary-2.9.9-cp39-cp39-linux_armv7l.whl (431 kB)
Installing collected packages: psycopg2-binary
Successfully installed psycopg2-binary-2.9.9
(.env) pi@solaranzeige:~ $ awtrix3connect
Traceback (most recent call last):
  File "/home/pi/scripts/AWTRIX3-Connector/./awtrix3connect.py", line 40, in <module>
    from funktionen import (
  File "/home/pi/scripts/AWTRIX3-Connector/funktionen.py", line 12, in <module>
    import psycopg2
  File "/home/pi/.env/lib/python3.9/site-packages/psycopg2/__init__.py", line 51, in <module>
    from psycopg2._psycopg import (                     # noqa
ImportError: libpq.so.5: cannot open shared object file: No such file or directory
(.env) pi@solaranzeige:~/scripts/AWTRIX3-Connector $
grüße

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:49
von mr.big
ok, jetzt holen wir den Holzhammer raus!

lösche mal bitte den kompletten Ordner .env in deinem homeordner

Code: Alles auswählen

rm -r /home/pi/.env/
 rm /home/pi/install.s*
 cd /home/pi
 wget https://raw.githubusercontent.com/Deepintheeast/AWTRIX3-Connector/main/install.sh
 bash ./install.sh
Damit lässt du die Installation noch einmal durchlaufen (ich habe im Installscript Änderungen vorgenommen!)
Bitte mal die Ausgabe des Installers hier posten und testen ob das Script läuft!?

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:52
von JDDOC
gemacht, aber


Wird in »install.sh« gespeichert.

install.sh 100%[===================>] 3,38K --.-KB/s in 0s

2024-05-01 21:51:08 (10,4 MB/s) - »install.sh« gespeichert [3462/3462]

(.env) pi@solaranzeige:~ $ bash /install.sh
bash: /install.sh: Datei oder Verzeichnis nicht gefunden
(.env) pi@solaranzeige:~ $

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:55
von mr.big
logge dich mal aus und melde dich wieder an das du aus dem (.env) wieder rauskommst

Prompt sollte wieder so aussehen

Code: Alles auswählen

pi@solaranzeige:~ $

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:55
von JDDOC
(.env) pi@solaranzeige:~ $ rm -r /home/pi/.env
(.env) pi@solaranzeige:~ $ rm /home/pi/install.s*
(.env) pi@solaranzeige:~ $ cd /home/pi
(.env) pi@solaranzeige:~ $ wget https://raw.githubusercontent.com/Deepi ... install.sh
--2024-05-01 21:51:08-- https://raw.githubusercontent.com/Deepi ... install.sh
Auflösen des Hostnamens raw.githubusercontent.com (raw.githubusercontent.com)… 2606:50c0:8002::154, 2606:50c0:8003::154, 2606:50c0:8000::154, ...
Verbindungsaufbau zu raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 3462 (3,4K) [text/plain]
Wird in »install.sh« gespeichert.

install.sh 100%[===================>] 3,38K --.-KB/s in 0s

2024-05-01 21:51:08 (10,4 MB/s) - »install.sh« gespeichert [3462/3462]

(.env) pi@solaranzeige:~ $ bash /install.sh
bash: /install.sh: Datei oder Verzeichnis nicht gefunden
(.env) pi@solaranzeige:~ $ ^C

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:57
von mr.big

Re: Fragen und Probleme zu AWTRIX3-Connector

Verfasst: Mi 1. Mai 2024, 21:59
von JDDOC
hab' mich neu eingelogt

pi@solaranzeige:~ $ wget https://raw.githubusercontent.com/Deepi ... install.sh
--2024-05-01 21:58:36-- https://raw.githubusercontent.com/Deepi ... install.sh
Auflösen des Hostnamens raw.githubusercontent.com (raw.githubusercontent.com)… 2606:50c0:8002::154, 2606:50c0:8003::154, 2606:50c0:8000::154, ...
Verbindungsaufbau zu raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 3462 (3,4K) [text/plain]
Wird in »install.sh.1« gespeichert.

install.sh.1 100%[===================>] 3,38K --.-KB/s in 0,005s

2024-05-01 21:58:37 (633 KB/s) - »install.sh.1« gespeichert [3462/3462]

pi@solaranzeige:~ $ bash /install.sh
bash: /install.sh: Datei oder Verzeichnis nicht gefunden
pi@solaranzeige:~ $