[Altes Modul] GoogleCast (98_GOOGLECAST.pm)

Begonnen von dominik, 10 Dezember 2015, 22:43:49

Vorheriges Thema - Nächstes Thema

dominik

Ich empfehle das neue Modul zu verwenden
https://github.com/dominikkarall/fhem_pythonbinding

Dann einfach:
define disccast PythonModule discover_mdns

Dann werden die Devices automatisch angelegt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Hallo, auf wen bezieht sich diese Aussage?

Falls an mich gerichtet muss ich sagen, dass ich sie nicht verstehe.
a) Wie bekomme ich die GitHub-Dateien ins Fhem?
b) handelt es sich dabei jetzt um einen Ersatz für das GOOGLECAST-Modul?
c) wird dieses neue Modul als Abhängigkeit für GOOGLECAST gebraucht?
d) ist die ursprüngliche Frage nicht beantwortet, weshalb ich das Prozedere weiterhin nicht verstehe

SouzA

Zitat von: dominik am 16 November 2020, 23:22:40
Ich empfehle das neue Modul zu verwenden
https://github.com/dominikkarall/fhem_pythonbinding

Dann einfach:
define disccast PythonModule discover_mdns

Dann werden die Devices automatisch angelegt.
Wann wirds eingeloggt? :D

Zitat von: Superposchi am 17 November 2020, 08:27:48
Hallo, auf wen bezieht sich diese Aussage?

Falls an mich gerichtet muss ich sagen, dass ich sie nicht verstehe.
a) Wie bekomme ich die GitHub-Dateien ins Fhem?
b) handelt es sich dabei jetzt um einen Ersatz für das GOOGLECAST-Modul?
c) wird dieses neue Modul als Abhängigkeit für GOOGLECAST gebraucht?
d) ist die ursprüngliche Frage nicht beantwortet, weshalb ich das Prozedere weiterhin nicht verstehe
Ich denke schon, dass er dich meinte.
Dominik hat das Modul überarbeitet. Es ist allerdings noch nicht über das fhem update zu haben...
Bei Leuten mit aktueller Installation läuft das "alte" Modul nämlich nicht mehr out of the box: https://forum.fhem.de/index.php/topic,45505.msg922848.html#msg922848

Zur commandref:
define <name1> GOOGLECAST <name2>
name1= der Name den du dem Device in fhem geben willst
name2= Name deines Devices in der Home-App

Bis denn
SouzA

Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

dominik

Zitat von: Superposchi am 17 November 2020, 08:27:48
Hallo, auf wen bezieht sich diese Aussage?

Falls an mich gerichtet muss ich sagen, dass ich sie nicht verstehe.
a) Wie bekomme ich die GitHub-Dateien ins Fhem?
b) handelt es sich dabei jetzt um einen Ersatz für das GOOGLECAST-Modul?
c) wird dieses neue Modul als Abhängigkeit für GOOGLECAST gebraucht?
d) ist die ursprüngliche Frage nicht beantwortet, weshalb ich das Prozedere weiterhin nicht verstehe

Hi,
ja, die Antwort war an dich gerichtet.
a) Einfach der Installationsanleitung folgen die in github im Readme steht (5 Schritt sind zu machen)
b) ja
c) nein, es ersetzt das aktuelle GOOGLECAST Modul
d) Installationsanleitung folgen, dann kannst du die Pythonmodule nutzen. Um konkret das googlecast Modul zu verwenden, kannst du einfach ein "define bla PythonModule discover_mdns" machen und dann werden die googlecast Devices automatisch angelegt.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

#844
Ich habe die 5 Schritte in der GitHub Anleitung gemacht. Mein erstelltes Device bleibt aber auf "Disconnected".

Hier das List zum Device:
Internals:
   BindingType Python
   CFGFN     
   DEF        Python
   DeviceName ws:127.0.0.1:15733
   FUUID      5fb44032-f33f-b8b5-7162-e3bca01b5641eecc
   NAME       local_pybinding
   NEXT_OPEN  1605648505.14968
   NR         324
   NTFY_ORDER 50-local_pybinding
   PARTIAL   
   STATE      disconnected
   TYPE       BindingsIo
   nextOpenDelay 10
   READINGS:
     2020-11-17 22:28:15   state           disconnected
Attributes:
   room       hidden


Ist das so Correkt?

Brauche ich jetzt gar kein Device für das GoogleCast-Modul mehr anzulegen?
Für mich ist die Aussage es wäre ein Ersatz für Googlecast unter b) und der Wortlaut "Um das Googlecast- Modul zu verwenden ..." unter d) ein Wiederspruch.

Zitatund dann werden die googlecast Devices automatisch angelegt
Woher soll Fhem denn wissen welche Lautsprecher ich habe?

Sorry, bin einfach noch zu neu für diese Logik.

P.S. Hab das define bla... einfach mal gemacht. Das List vom erstellten Device sieht so aus:
Internals:
   CFGFN     
   DEF        discover_mdns
   FUUID      5fb441cb-f33f-b8b5-d518-b94f122de1fdc33b
   IODev      local_pybinding
   NAME       bla
   NR         486
   PYTHONTYPE discover_mdns
   STATE      PythonBinding offline
   TYPE       PythonModule
   READINGS:
     2020-11-17 22:34:26   state           PythonBinding offline
   args:
     bla
     PythonModule
     discover_mdns
   argsh:
Attributes:
   IODev      local_pybinding
   room       Unsorted

Wenn da automatische Googlecast-Devices angelegt werden, wo finde ich diese?

dominik

Ok, dann mal paar Fragen:
- Welche Version von Python hast du installiert? 3.7 ist notwendig.
- Poste bitte den Inhalt von /opt/fhem/log/PythonBinding...log

Die Frage wie es erkennt welche Devices du hast:
Ganz einfach, so wie die Home App auch. mDNS ist ein Protokoll welches Geräte im Netzwerk erkennt, jedes Google Cast schickt mDNS Pakete ins Netz um sich erkennbar zu machen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

#846
Ehrlich gesagt keine Ahnung welche Python-Version installiert ist. Wie kriege ich das raus?
Mein Fhem läuft ja in einem Docker-Container auf einem NAS.

Hier der Inhalt des Logs:2020-11-17 22:27:15,613 - INFO     - __main__: Attempting install of websockets
2020-11-17 22:27:24,715 - INFO     - __main__: Successfully installed websockets
2020-11-17 22:27:24,716 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:27:46,584 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-3kid841l --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:28:06,253 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:28:26,896 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-jii4qo0o --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:28:46,254 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:29:06,427 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-dya9ru2o --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:29:26,325 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:29:46,179 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-on_ceerx --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:30:06,229 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:30:26,681 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rzp81r2n --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:30:46,251 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:31:06,680 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-8os95p0v --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:31:26,290 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:31:46,833 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-mczaj128 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:32:06,314 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:32:26,771 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-u5dm47xq --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:32:46,253 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:33:06,669 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-c9jglws9 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:33:26,287 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:33:46,859 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4by_fwqg --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:34:06,234 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:34:27,073 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-35mb0pq2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:34:47,253 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:35:07,548 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4cij9hep --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:35:27,236 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:35:47,757 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-5dj53nxf --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:36:07,233 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:36:27,761 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-waln8iq3 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:36:47,270 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:37:07,394 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-e6zfeo7f --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:37:27,291 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:37:47,996 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-jotyics8 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:38:08,285 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:38:28,577 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-e88i54o7 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:38:48,302 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:39:08,451 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-fmj0xmyq --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:39:28,569 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:39:57,183 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-l34wb_v2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:40:17,539 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:40:44,363 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-an5_l42v --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:41:04,285 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:41:26,566 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-75g_09o3 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:41:46,486 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:42:20,831 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ijeonisg --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:42:40,490 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:43:00,452 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-f5kk2znq --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:43:34,457 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:44:13,956 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-62dsnvcv --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:44:35,278 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:44:56,039 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-8e4rbgen --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:45:16,240 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:45:37,284 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4fhwcg_2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:45:57,253 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:46:18,165 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-7x4j9utw --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:46:38,360 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:46:58,863 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-jq8wem42 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:47:18,240 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:47:38,790 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-63zy8ga2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
2020-11-17 22:47:58,233 - INFO     - __main__: Attempting install of cryptography
2020-11-17 22:48:19,035 - ERROR    - __main__: Unable to install package cryptography: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-c4b0drp2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None


Er hat wohl anscheinend Probleme irgend ein Package zu installieren. Zeigte aber bei den 5 Schritten vom GitHub keinen Fehler an.

Bei den Befehlen die laut CommandRef für Googlecast notwendig sind bricht er bei dem letzten Befehl mit code 126 ab:
INLINE_PYTHON_EXECUTABLE=/usr/bin/python3 cpanm Inline::Python
Ausgabe:
[code9OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"INLINE_PYTHON_EXECUTABLE=/usr/bin/python3\": stat INLINE_PYTHON_EXECUTABLE=/usr/bin/python3: no such file or directory": unknown[/code]

dominik

Hi,

mach mal
sudo -u fhem pip3 install cryptography

Bitte vergiss jegliche Hinweise in der Commandref, die beziehen sich auf das alte Modul.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Kann ich nicht, weil sudo-Befehle im Terminal des NAS nicht akzeptiert werden.

Superposchi


SouzA

#850
Zitat von: Superposchi am 18 November 2020, 09:11:24
Kann ich nicht, weil sudo-Befehle im Terminal des NAS nicht akzeptiert werden.
Wie machst du den Updates usw?
Es gibt doch etliche Sachen, wo man mit Sudo hantieren muß.

Vielleicht so:
https://www.blogging-it.com/befehl-sudo-auf-einer-diskstation-verfuegbar-machen/hardware/nas.html
Raspi 4, EnOcean TCM310 USB, HM-MOD-UART-USB, Jeelink, hue, AMAD, fully, FRITZBOX, Signalbot, VIERA, Presence BT/Mac, TPLink, Gassistant, Shelly, fhempy, ZigBee

Superposchi

Ja leider, denn an all diesen Punkten stehe ich dann auf dem Schlauch und komme nicht weiter.
Manchmal kann ich den Befehl ohne das Wort sudo im Terminal ausführen, aber nicht immer. Und wenn es nicht geht, bin ich festgefahren. Das ist eins meiner Hauptprobleme.

Was für Updates meinst du? Fhem-Updates mache ich ganz normal in der Weboberfläche des Fhem-Servers. Alles andere geht nicht.

dominik

Hi,

probier mal nur
pip3 install cryptography

Da kommt wahrscheinlich der gleiche Fehler der auch mit dem User fhem kommen würde.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Superposchi

Hey, habe auf Basis eines anderen Threats einen neuen Container mit arm32V7-Image und einigen Startparametern erstellt.
In diesem wird für den Befehl folgendes zurückgegeben:
[code]Collecting cryptography                                                                                                                                                                                                                                                         
  Downloading https://files.pythonhosted.org/packages/94/5c/42de91c7fbdb817b2d9a4e64b067946eb38a4eb36c1a09c96c87a0f86a82/cryptography-3.2.1.tar.gz (540kB)                                                                                                                     
    100% |████████████████████████████████| 542kB 649kB/s                                                                                                                                                                                                                       
  Installing build dependencies ... error                                                                                                                                                                                                                                       
  Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-oaa5kc6c --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; p
latform_python_implementation != 'PyPy'":                                                                                                                                                                                                                                       
  Collecting setuptools>=40.6.0                                                                                                                                                                                                                                                 
    Downloading https://files.pythonhosted.org/packages/6d/38/c21ef5034684ffc0412deefbb07d66678332290c14bb5269c85145fbd55e/setuptools-50.3.2-py3-none-any.whl (785kB)                                                                                                           
  Collecting wheel                                                                                                                                                                                                                                                             
    Downloading https://files.pythonhosted.org/packages/a7/00/3df031b3ecd5444d572141321537080b40c1c25e1caa3d86cdd12e5e919c/wheel-0.35.1-py2.py3-none-any.whl                                                                                                                   
  Collecting cffi!=1.11.3,>=1.8                                                                                                                                                                                                                                                 
    Downloading https://files.pythonhosted.org/packages/cb/ae/380e33d621ae301770358eb11a896a34c34f30db188847a561e8e39ee866/cffi-1.14.3.tar.gz (470kB)                                                                                                                           
  Collecting pycparser (from cffi!=1.11.3,>=1.8)                                                                                                                                                                                                                               
    Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)                                                                                                         
  Building wheels for collected packages: cffi                                                                                                                                                                                                                                 
    Running setup.py bdist_wheel for cffi: started                                                                                                                                                                                                                             
    Running setup.py bdist_wheel for cffi: finished with status 'error'                                                                                                                                                                                                         
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-oe9jwqyp/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_w
heel -d /tmp/pip-wheel-s776jly5 --python-tag cp37:                                                                                                                                                                                                                             
    Package libffi was not found in the pkg-config search path.                                                                                                                                                                                                                 
    Perhaps you should add the directory containing `libffi.pc'                                                                                                                                                                                                                 
    to the PKG_CONFIG_PATH environment variable                                                                                                                                                                                                                                 
    No package 'libffi' found                                                                                                                                                                                                                                                   
    Package libffi was not found in the pkg-config search path.                                                                                                                                                                                                                 
    Perhaps you should add the directory containing `libffi.pc'                                                                                                                                                                                                                 
    to the PKG_CONFIG_PATH environment variable                                                                                                                                                                                                                                 
    No package 'libffi' found                                                                                                                                                                                                                                                   
    Package libffi was not found in the pkg-config search path.                                                                                                                                                                                                                 
    Perhaps you should add the directory containing `libffi.pc'                                                                                                                                                                                                                 
    to the PKG_CONFIG_PATH environment variable                                                                                                                                                                                                                                 
    No package 'libffi' found                                                                                                                                                                                                                                                   
    Package libffi was not found in the pkg-config search path.                                                                                                                                                                                                                 
    Perhaps you should add the directory containing `libffi.pc'                                                                                                                                                                                                                 
    to the PKG_CONFIG_PATH environment variable                                                                                                                                                                                                                                 
    No package 'libffi' found                                                                                                                                                                                                                                                   
    Package libffi was not found in the pkg-config search path.                                                                                                                                                                                                                 
    Perhaps you should add the directory containing `libffi.pc'                                                                                                                                                                                                                 
    to the PKG_CONFIG_PATH environment variable                                                                                                                                                                                                                                 
    No package 'libffi' found                                                                                                                                                                                                                                                   
    running bdist_wheel                                                                                                                                                                                                                                                         
    running build                                                                                                                                                                                                                                                               
    running build_py                                                                                                                                                                                                                                                           
    creating build                                                                                                                                                                                                                                                             
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                                   
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                   
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                   
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                           
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                 
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                               
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                     
    copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                     
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                 
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                           
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                                 
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                               
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                               
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi                                                                                                                                                                                                             
    running build_ext                                                                                                                                                                                                                                                           
    building '_cffi_backend' extension                                                                                                                                                                                                                                         
    creating build/temp.linux-armv7l-3.7                                                                                                                                                                                                                                       
    creating build/temp.linux-armv7l-3.7/c                                                                                                                                                                                                                                     
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -
c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o                                                                                                                                                                                                           
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory                                                                                                                                                                                                     
     #include <ffi.h>                                                                                                                                                                                                                                                           
              ^~~~~~~                                                                                                                                                                                                                                                           
    compilation terminated.                                                                                                                                                                                                                                                     
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                               
    ----------------------------------------                                                                                                                                                                                                                                   
    Failed building wheel for cffi                                                                                                                                                                                                                                             
    Running setup.py clean for cffi                                                                                                                                                                                                                                             
  Failed to build cffi                                                                                                                                                                                                                                                         
  Installing collected packages: setuptools, wheel, pycparser, cffi                                                                                                &nbs

kadettilac89

@Superposchi, du tanzt aktuell auf mehreren Hochzeiten. Dein Problem hängt vermutlich am Docker-Container. Wie ich schon im Docker-Thread gesagt hab, nutze die Environment Variablen in der Docker Config um zusätzliche Pakete zu installieren, sowohl python als auch nodejs. Damit ist sichergestellt, dass es auch beim UPdate des Containers funktioniert.

Ansonsten, löse erstmal ein Problem bevor du weiter im Docker Container zusätzliche Dinge einbindest. Wenn estwas nicht funktioniert hast du keine Übersicht was das Problem verursacht hat. Du hast ein Problem mit Fehlermeldungen für Curl, dann installierst du zusätzliche nodejs-Versionen und hier änderst du manuell Python Module. Überall hast du Fehlermeldungen.

Am Rande, poste die Logs bitte in Code Tags. Das ist das Raute-Symbol (#) über dem Textfeld. Das macht es besser lesbar.