[Altes Modul] GoogleCast (98_GOOGLECAST.pm)

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

Vorheriges Thema - Nächstes Thema

duke-f

Nein, mein Chromecast heißt ganz phantasielos "Chromecast0825". Das Problem kommt auch schon früher: Beim Starten von FHEM, bevor überhaupt irgendeine Verbindung aufgetan wird. Es wird das Modul zu GOOGLECAST nicht geladen. So lese ich zumindest die Meldung im Log.
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

benedikt-wue

Wollte nochmal anfragen wegen meiner Ftui-Oberfläche... Habe leider diesbezüglich nichts gefunden... Ziel ist es, beim Push eines Buttons ein bestimmtes Video bzw einen bestimmten Stream auf einem Gerät abzuspielen... Habe leider nur etwas gefunden, um direkt aus z. B. dem Wand-Tablet eine Art Web-Radio zu machen, nicht aber die Chromes "fernzusteuern"... Ziel: ich tippe das Logo von Antenne Bayern in der Rubrik "Wohnzimmer" an und auf meinem Google Home läuft der Stream eben dieses Senders... Jemand, der mir helfen würde? ;-)

Gesendet von meinem ZTE BLADE V0800 mit Tapatalk


MadMax-FHEM

#527
Zitat von: MadMax-FHEM am 14 März 2018, 20:42:12
Klar.
Kann aber sein, dass ich erst morgen dazu komme...

Gruß, Joachim

So hab's eben mal getestet.

Ausgangsbasis:

Aktuelles Raspbian Stretch lite
(2017-11-29-raspbian-stretch-lite.img)

HW: PI3

Dann:

- update/upgrade
- raspi-config: extend file system, 16MB video, locale (en+de utf8) plus Zeitzone Berlin

fhem installiert nach debian.fhem.de plus anschließendem fhem update.

Dann image gezogen (vor einigen Tagen)...
...image eben eingespielt und dann:

das Script https://forum.fhem.de/index.php/topic,45505.msg781280.html#msg781280 kopiert/erstellt und ausgeführt...

gewartet...

...dann folgende Ausgaben:


Err:39 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libtinfo-dev armhf 6.0+20161126-1+deb9u1                             
  404  Not Found [IP: 93.93.128.193 80]
Err:40 http://mirrordirector.raspbian.org/raspbian stretch/main armhf libncurses5-dev armhf 6.0+20161126-1+deb9u1                         
  404  Not Found [IP: 93.93.128.193 80]

...

E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/n/ncurses/libtinfo-dev_6.0+20161126-1+deb9u1_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/n/ncurses/libncurses5-dev_6.0+20161126-1+deb9u1_armhf.deb  404  Not Found [IP: 93.93.128.193 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
--2018-03-15 18:37:53--  https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz

d.h. vor dem Script ein 'sudo apt-get update'...
...oder mit ins Script einbauen...


...weiter gewartet... ;)

...und weiter gewartet... ;)

...und noch weiter gewartet... ;)

...und noch ein wenig gewartet ;)

...oder eher doch ein wenig mehr ;)

Hmmm, installiert immer noch (läuft schon fast 45min)...
...muss jetzt leider weg...

Mache später weiter...
...bin doch dran geblieben ;)

Dann:


Processing triggers for libc-bin (2.24-11+deb9u3) ...
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pychromecast
  Could not fetch URL https://pypi.python.org/simple/pychromecast/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not fetch URL https://www.piwheels.org/simple/pychromecast/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement pychromecast (from versions: )
No matching distribution found for pychromecast
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting youtube-dl
  Could not fetch URL https://pypi.python.org/simple/youtube-dl/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not fetch URL https://www.piwheels.org/simple/youtube-dl/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement youtube-dl (from versions: )
No matching distribution found for youtube-dl
--> Working on Inline::Python


Kurz darauf dann das:


Successfully installed Inline-Python-0.56
7 distributions installed
./py3ccastinst.sh: 34: ./py3ccastinst.sh: Syntax error: Bad for loop variable


Ich hab dann trotzdem mal gebootet...
...fhem update...

Und meinen Google Home angelegt...

Leider dann:


2018.03.15 19:36:36 0: Server shutdown
2018.03.15 19:36:36 1: Including fhem.cfg
2018.03.15 19:36:36 3: telnetPort: port 7072 opened
2018.03.15 19:36:37 3: WEB: port 8083 opened
2018.03.15 19:36:37 3: WEBphone: port 8084 opened
2018.03.15 19:36:37 3: WEBtablet: port 8085 opened
2018.03.15 19:36:37 2: eventTypes: loaded 1 events from ./log/eventTypes.txt
2018.03.15 19:36:37 1: Including ./log/fhem.save
2018.03.15 19:36:37 0: Featurelevel: 5.8
2018.03.15 19:36:37 0: Server started with 9 defined entities (fhem.pl:16403/2018-03-13 perl:5.024001 os:linux user:fhem pid:583)
2018.03.15 19:36:54 1: reload: Error:Modul 98_GOOGLECAST deactivated:
Failed to autogenerate /opt/fhem/_Inline/config-arm-linux-gnueabihf-thread-multi-64int-5.024001.

at ./FHEM/98_GOOGLECAST.pm line 684.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.

2018.03.15 19:36:54 0: Failed to autogenerate /opt/fhem/_Inline/config-arm-linux-gnueabihf-thread-multi-64int-5.024001.

at ./FHEM/98_GOOGLECAST.pm line 684.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.


Werde das noch mal probieren...
...später oder eher morgen weil jetzt muss ich wirklich weg.

Hoffe es hat nichts mit dem ersten Fehler zu tun...
...bzw. wenn es so wäre wäre es verm. nicht so schlimm ;)

Nächstes Mal mache ich nach dem Einspielen des fhem-images gleich mal ein sudo apt-get update...
...blöder Fehler...

Insgesamt hat der "Spaß" ne Stunde gedauert ;)

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

duke-f

#528
Das hat mich jetzt auf eine Idee gebracht - die aber leider auch keinen Erfolg brachte.
In FHEM wird ja unter /opt/fhem ein Verzeichnis angelegt mit dem Namen _Inline. Das ist wohl immer noch von der alten Version. Daher habe ich das einfach mal entfernt und die ganze Prozedur nach Commandref wiederholt. War alles wohl schon aktuell, außer dem Youtube-Teil, das muss seit gestern neu sein. Sieh da, jetzt habe ich genau den Fehler (zusätzlich) wie Du:
Failed to autogenerate /opt/fhem/_Inline/config-arm-linux-gnueabihf-thread-multi-64int-5.024001.
Aber das Verzeichnis _Inline wurde nach Neustart von FHEM wieder angelegt mit genau dieser Datei als Inhalt. Aber das weitere Unterverzeichnis "lib/auto" mit Inhalten fehlt.
Die anderen Meldungen von gestern sind weiter da. Habe das alte Verzeichnis wieder hergestellt und meine Meldungen sind wieder die von gestern.

Kann das sein, dass hier das Problem verborgen ist?
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

duke-f

So etwas OT, aber habe seit dem ganzen Prozedere hier schon so manch seltsames Phänomen am Raspberry Pi (B). Ich schreibe das ja keinesfalls direkt GOOGLECAST zu, aber die Phänomene häufen sich. Ich will auch nicht den Thread unnötig belasten. Da aber nicht ausgeschlossen ist, dass ich nicht alleine Betroffener bin denke ich, eine Schilderung ist doch angebracht.

1. Ich habe mittel motion eine alte Webcam eingebunden, die ich mittel Surveillance am NAS eingebunden habe. Lief früher ohne irgendwas endlos durch. Seit dem Umstieg von wheezy auf jessie gibt es da immer wieder Abbrüche. Diese habe ich an einem anderen Raspberry Pi (3) auch, der von Anfang an auf jessie lief, habe das damals aber eher der alten Webcam zugeschrieben. Nun bin ich mir da nicht mehr sicher, ob diese alleine die Ursache war. Das ganze kann ich einigermaßen in den Griff bekommen mittels logsurfer, der bei bestimmten Meldungen in einem Log-File ein Skript aufruft, das wiederum die Trennung der USB-Kamera und das neue Anschließen simmuliert.
2. Auf diesem Raspberry Pi (B) läuft squeezelite mit Logitech-Media-Server auf dem NAS früher auch problemlos ohne zu stocken. Jetzt, seit dem Umstieg habe ich heftiges Stocken. Bin noch dabei zu versuchen, dies durch Optimieren der Einstellungen in den Griff zu bekommen.
3. Neu seit zwei Tagen - diesmal aber verdächtig nahe zeitlich gelegen mit den aktuellen Aktionen hinsichtlich GOOGLECAST und erstmals seit einigen Wochen diesbezüglich problemlosen Betriebs unter jessie: Gestern um 02:03:07 Uhr und heute um 02:02:43 Uhr hat sich mein Raspberry Pi irgendwie verabschiedet. Habe dazu noch nichts in den Logs gefunden und recherchiere noch. Den genauen Zeitpunkt bekomme ich bisher nur aus den Aufzeichnungen des Sysmon-Logfiles. Zugriff hatte ich beide Male per Ping, aber nicht per ssh. Blieb lediglich ein Neustart per Stecker ziehen. Unterschied heute: Meine Verknüpfung vom Hauptsystem auf den CUL an diesem Pi über ser2net bestand heute morgen noch,gestern war auch diese weg - allerdings hatte ich das gestern erst viel später registriert. Aber wie gesagt, auch die autarke FHEM-Installation auf dem Pi zeichnete nicht weiter auf.

Wie gesagt, ich schreibe alles nicht GOOGLECAST zu - beim letzten Punkt vielleicht aber indirekt schon. Das Modul wird aber wegen der obigen Fehlermeldung gar nicht geladen. Ich versuche etwas aus den Logs zu lesen, bin aber wenig hoffnungsvoll.
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

Sailor

Hallo Joachim

Zitat von: MadMax-FHEM am 15 März 2018, 19:17:58
So hab's eben mal getestet.
Nächstes Mal mache ich nach dem Einspielen des fhem-images gleich mal ein sudo apt-get update...
...blöder Fehler...
Insgesamt hat der "Spaß" ne Stunde gedauert ;)

Ich habe das
sudo apt-get -y update
sudo apt-get -y upgrade

jetzt mal an den Anfang des Scripts gelegt.
Das war eher ein dummer Fehler meinerseits!

Das Skript ist ja genau dafür da: Starten, ins Bett gehen und am nächsten Morgen Spass haben.

Darüber hinaus wird jetzt auch eine log-Datei geschrieben, um detailiert die Fehler zu finden.

Ich wage gar nicht zu fragen, aber magst du nochmal testen?
Ich habe leider keinen Pi übrig. Sonst hätte ich das schoin selbst gemacht.

Gruss
    Sailor
******************************
Man wird immer besser...

MadMax-FHEM

#531
Zitat von: Sailor am 16 März 2018, 12:49:09
Ich habe das
sudo apt-get -y update
sudo apt-get -y upgrade

jetzt mal an den Anfang des Scripts gelegt.
Das war eher ein dummer Fehler meinerseits!

Tja aber das hätte ich ja auch machen können, nachdem ich schon ein "betagtes" System aus der "Dose" genommen habe ;)


Zitat von: Sailor am 16 März 2018, 12:49:09
Das Skript ist ja genau dafür da: Starten, ins Bett gehen und am nächsten Morgen Spass haben.

Darüber hinaus wird jetzt auch eine log-Datei geschrieben, um detailiert die Fehler zu finden.

Ja wenn's so gedacht ist, dann "musst" das natürlich du einbauen ;)


Zitat von: Sailor am 16 März 2018, 12:49:09
Ich wage gar nicht zu fragen, aber magst du nochmal testen?
Ich habe leider keinen Pi übrig. Sonst hätte ich das schoin selbst gemacht.

Klar.
Ich spiele das Image einfach wieder ein und starte dann das Script...

...und gehe ins Bett ;)

EDIT: läuft...

EDIT2: fertig

Ist soweit durchgelaufen, allerdings ist wohl im "Countdown zum Reboot" ein Fehler:


Successfully installed Inline-Python-0.56
7 distributions installed
./py3ccastinst.sh: 44: ./py3ccastinst.sh: Syntax error: Bad for loop variable


Letzter Eintrag im Log:


Successfully installed Proc-ProcessTable-0.55
Building and testing Inline-Python-0.56 ... OK
Successfully installed Inline-Python-0.56
7 distributions installed
2018-03-16-17-53 : Countdown to reboot of system started


Dann reboot, halt manuell (wäre mir eh lieber ;)  )...
...dann update von fhem...

Und anlegen meines Google Home...
...und leider trotzdem:


2018.03.16 18:55:50 0: Featurelevel: 5.8
2018.03.16 18:55:50 0: Server started with 9 defined entities (fhem.pl:16403/2018-03-13 perl:5.024001 os:linux user:fhem pid:564)
2018.03.16 18:56:04 1: reload: Error:Modul 98_GOOGLECAST deactivated:
Failed to autogenerate /opt/fhem/_Inline/config-arm-linux-gnueabihf-thread-multi-64int-5.024001.

at ./FHEM/98_GOOGLECAST.pm line 684.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.

2018.03.16 18:56:04 0: Failed to autogenerate /opt/fhem/_Inline/config-arm-linux-gnueabihf-thread-multi-64int-5.024001.

at ./FHEM/98_GOOGLECAST.pm line 684.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.


Hmmm, dann erneut 'shutdown restart' von fhem...
...und siehe da: mein Google Home konnte angelegt werden! :)

Und speak funktioniert! :)

Ich melde michGruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

duke-f

Kannst Du mal den kompletten Inhalt aus /opt/fhem/_Inline zur Verfügung stellen?
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

MadMax-FHEM

Zitat von: duke-f am 16 März 2018, 19:56:25
Kannst Du mal den kompletten Inhalt aus /opt/fhem/_Inline zur Verfügung stellen?

In etwa so:


pi@raspberrypi:/opt/fhem/_Inline $ ls -la
total 16
drwxr-xr-x  3 fhem dialout 4096 Mär 16 18:58 .
drwxr-xr-x 11 fhem dialout 4096 Mär 16 18:56 ..
-rw-r--r--  1 fhem dialout  298 Mär 16 18:56 config-arm-linux-gnueabihf-thread-multi-64int-5.024001
drwxr-xr-x  3 fhem dialout 4096 Mär 16 18:58 lib

pi@raspberrypi:/opt/fhem/_Inline $ cat config-arm-linux-gnueabihf-thread-multi-64int-5.024001
version : 0.80
languages : %
    Foo : Foo
    PYTHON : Python
    Python : Python
    foo : Foo
    py : Python
    python : Python
types : %
    Foo : interpreted
    Python : interpreted
modules : %
    Foo : Inline::Foo
    Python : Inline::Python
suffixes : %
    Foo : foo
    Python : pydat

pi@raspberrypi:/opt/fhem/_Inline $ ls -la lib/auto/_98_GOOGLECAST_pm_3a3d/
total 16
drwxr-xr-x 2 fhem dialout 4096 Mär 16 18:58 .
drwxr-xr-x 3 fhem dialout 4096 Mär 16 18:58 ..
-rw-r--r-- 1 fhem dialout  648 Mär 16 18:58 _98_GOOGLECAST_pm_3a3d.inl
-rw-r--r-- 1 fhem dialout 2059 Mär 16 18:58 _98_GOOGLECAST_pm_3a3d.pydat

pi@raspberrypi:/opt/fhem/_Inline $ cat lib/auto/_98_GOOGLECAST_pm_3a3d/_98_GOOGLECAST_pm_3a3d.inl
md5 : 3a3dCHANGED
name : _98_GOOGLECAST_pm_3a3d
version : ""
language : Python
language_id : Python
installed : 0
date_compiled : Fri Mar 16 18:58:04 2018
inline_version : 0.80
ILSM : %
    module : Inline::Python
    suffix : pydat
    type : interpreted
Config : %
    apiversion : ?
    archname : arm-linux-gnueabihf-thread-multi-64int
    cc : arm-linux-gnueabihf-gcc
    ccflags : -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    ld : arm-linux-gnueabihf-gcc
    osname : linux
    osvers : 3.16.0
    so : so
    version : 5.24.1

pi@raspberrypi:/opt/fhem/_Inline $ cat lib/auto/_98_GOOGLECAST_pm_3a3d/_98_GOOGLECAST_pm_3a3d.pydat
namespace : %
    classes : %
    functions : @
        GOOGLECAST_PyLoadDashCast
        GOOGLECAST_PyPlayYouTube
        GOOGLECAST_PyPlayMedia
        GOOGLECAST_PyFindChromecasts
        GOOGLECAST_PyCreateChromecast
        GOOGLECAST_PyGetYTVideoURL
filtered : <<EOV

from __future__ import unicode_literals
import pychromecast
import time
import logging
import youtube_dl
import pychromecast.controllers.dashcast as dashcast
import pychromecast.controllers.youtube as youtube

def GOOGLECAST_PyFindChromecasts():
    logging.basicConfig(level=logging.CRITICAL)
    return pychromecast.discovery.discover_chromecasts()

def GOOGLECAST_PyCreateChromecast(ip, port, uuid, model_name, friendly_name):
    logging.basicConfig(level=logging.CRITICAL)
    cast = pychromecast._get_chromecast_from_host((ip.decode("utf-8"), int(port), uuid.decode("utf-8"), model_name.decode("utf-8"), friendly_name.decode("utf-8")), blocking=False, timeout=0.1, tries=1, retry_wait=0.1)
    return cast

def GOOGLECAST_PyPlayMedia(cast, url, mime):
    logging.basicConfig(level=logging.CRITICAL)
    cast.play_media(url.decode("utf-8"), mime.decode("utf-8"))
    return undef

def GOOGLECAST_PyGetYTVideoURL(yt_url):
    yt_url = yt_url.decode("utf-8")
    ydl = youtube_dl.YoutubeDL({'forceurl': True, 'simulate': True, 'quiet': '1', 'no_warnings': '1', 'skip_download': True, 'format': 'best', 'youtube_include_dash_manifest': False})

    result = ydl.extract_info(yt_url, download=False)

    if 'entries' in result:
        # Can be a playlist or a list of videos
        video = result['entries'][0]
    else:
        # Just a video
        video = result

    video_url = video['url']
    return video_url

def GOOGLECAST_PyLoadDashCast(cast, url):
    url = url.decode("utf-8")
    d = dashcast.DashCastController()
    cast.register_handler(d)
    d.load_url(url,reload_seconds=60)

def GOOGLECAST_PyPlayYouTube(cast, videoId):
    videoId = videoId.decode("utf-8")
    yt = youtube.YouTubeController()
    cast.register_handler(yt)
    yt.play_video(videoId)


EOV


Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

duke-f

Besten Dank.

ist nicht komplett identisch zu dem, was bei mir entstanden ist. Ich habe jetzt das _Inline komplett gelöscht und lasse einfach auch mal das Skript durchlaufen .....
... und trinke Tee.
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

MadMax-FHEM

Auf meinem anderen Testsystem wird bei jedem Update des GOOGLECAST Moduls (zumindest sieht es vom Datum der Ordner so aus) ein neues Unterverzeichnis unter .../lib/auto/ angelegt...

Viel Erfolg, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

duke-f

Erfolg stellt sich leider nicht ein. Es wird das Verzeichnis _Inline mit der Datei

config-arm-linux-gnueabihf-thread-multi-64int-5.020002

angelegt - die zeigt zwar eine andere Nummer am Ende, aber der Inhalt ist mit Deiner identisch. Verzeichnis .../lib/auto wird nicht angelegt. Am Ende der Log steht nach dem Skriptablauf:

Successfully installed certifi-2018.1.18 chardet-3.0.4 idna-2.6 netifaces-0.10.6 protobuf-3.5.2.post1 pychromecast-2.0.0 requests-2.18.4 setuptools-38.6.0 six-1.11.0 urllib3-1.22 zeroconf-0.20.0
Collecting youtube-dl
  Using cached youtube_dl-2018.3.14-py2.py3-none-any.whl
Installing collected packages: youtube-dl
  Found existing installation: youtube-dl 2018.3.14
    Uninstalling youtube-dl-2018.3.14:
      Successfully uninstalled youtube-dl-2018.3.14
Successfully installed youtube-dl-2018.3.14
Inline::Python is up to date. (0.56)
2018-03-16-21-13 : Countdown to reboot of system started

Rebooten musste ich auch selber anstoßen, stimme Dir aber zu, dass ich das bevorzuge.

Auch mehrfaches shutdown restart bringt am Ende wieder das gleiche Ergebnis.
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

Grml

Zitat von: duke-f am 14 März 2018, 21:53:18
@Grml:
Wie sind denn Deine Fehlermeldungen komplett?

fhem.area51@fhem:~ $ sudo pip3 install pychromecast --upgrade
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 449, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 745, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 644, in resolve
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (pip 1.5.6 (/usr/lib/python3/dist-packages), Requirement.parse('pip==9.0.1'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/pip3", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2876, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 451, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 464, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==9.0.1


Da ich wie erwähnt nicht sooo bewandert unter Linux bin stehe ich da ziemlich auf dem Schlauch was mir die Fehlermeldungen nun sagen sollen außer "Pech gehabt".

duke-f

Dachte da eher an die Meldung im FHEM-Log.
Cubietruck, 3 Raspberry Pis,
CUL868, RFXtrx433, CUL433, SCC868, HM-USB,
IRTrans, EZcontrol XS1, IguanaWorks USB IR Transceiver
ESPEasy, Fritz!Box, Samsung TV+BD, LMS, Squeezelite

Grml

#539
Achso, sorry.
2018.03.17 00:40:02 1: reload: Error:Modul 98_GOOGLECAST deactivated:
Error -- py_eval raised an exception at /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2/Inline/Python.pm line 177.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.

2018.03.17 00:40:02 0: Error -- py_eval raised an exception at /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2/Inline/Python.pm line 177.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.


Da ich inzwischen kein GOOGLECAST Device mehr anlegen kann (Cannot load module GOOGLECAST) habe ich bei einem FHEM Neustart natürlich nichts im LOG (Verbose 5). Lediglich obige Meldung wenn ich versuche ein Device anzulegen.

Außerdem vor ein paar Tagen
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Initialize redefined at ./FHEM/98_GOOGLECAST.pm line 144.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Define redefined at ./FHEM/98_GOOGLECAST.pm line 161.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_findChromecasts redefined at ./FHEM/98_GOOGLECAST.pm line 181.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_initDevice redefined at ./FHEM/98_GOOGLECAST.pm line 196.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_findChromecastsResult redefined at ./FHEM/98_GOOGLECAST.pm line 205.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Attribute redefined at ./FHEM/98_GOOGLECAST.pm line 239.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Set redefined at ./FHEM/98_GOOGLECAST.pm line 251.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setVolume redefined at ./FHEM/98_GOOGLECAST.pm line 297.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setWebsite redefined at ./FHEM/98_GOOGLECAST.pm line 307.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setSpeak redefined at ./FHEM/98_GOOGLECAST.pm line 316.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayType redefined at ./FHEM/98_GOOGLECAST.pm line 333.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayType_String redefined at ./FHEM/98_GOOGLECAST.pm line 350.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayMedia redefined at ./FHEM/98_GOOGLECAST.pm line 361.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayMedia_String redefined at ./FHEM/98_GOOGLECAST.pm line 369.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayMediaBlocking redefined at ./FHEM/98_GOOGLECAST.pm line 384.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayYtDl redefined at ./FHEM/98_GOOGLECAST.pm line 406.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayYtDlBlocking redefined at ./FHEM/98_GOOGLECAST.pm line 414.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setStop redefined at ./FHEM/98_GOOGLECAST.pm line 428.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlayFavorite redefined at ./FHEM/98_GOOGLECAST.pm line 439.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPlay redefined at ./FHEM/98_GOOGLECAST.pm line 446.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setPause redefined at ./FHEM/98_GOOGLECAST.pm line 469.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setRewind redefined at ./FHEM/98_GOOGLECAST.pm line 480.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setSkip redefined at ./FHEM/98_GOOGLECAST.pm line 491.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_setQuitApp redefined at ./FHEM/98_GOOGLECAST.pm line 502.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Undef redefined at ./FHEM/98_GOOGLECAST.pm line 512.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Get redefined at ./FHEM/98_GOOGLECAST.pm line 521.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_updateReading redefined at ./FHEM/98_GOOGLECAST.pm line 525.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_newChash redefined at ./FHEM/98_GOOGLECAST.pm line 538.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_addSocketToMainloop redefined at ./FHEM/98_GOOGLECAST.pm line 561.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_checkConnection redefined at ./FHEM/98_GOOGLECAST.pm line 577.
2018.03.13 17:52:52 1: PERL WARNING: Subroutine GOOGLECAST_Read redefined at ./FHEM/98_GOOGLECAST.pm line 609.
2018.03.13 17:52:52 1: reload: Error:Modul 98_GOOGLECAST deactivated:
Error -- py_eval raised an exception at /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2/Inline/Python.pm line 177.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.

2018.03.13 17:52:52 0: Error -- py_eval raised an exception at /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2/Inline/Python.pm line 177.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 684.


Die Subroutine-Meldungen bekomme ich aktuell nicht, dass war vermutlich vor einem Modul-Update.


EDIT: Mich würde ja weiterhin interessieren, wie ich das Ganze Python/Inline etc. Zeug nochmal sauber runter bekomme um mit dem oben geposteten Installscript neu anzufangen. Da ich (mWn) nichts weiter mit Python habe, hätte das keine Auswirkungen auf meine FHEM-Installation.