[Altes Modul] GoogleCast (98_GOOGLECAST.pm)

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

Vorheriges Thema - Nächstes Thema

wk2000

Funktioniert das alte Modul eigentlich noch?

Ich versuche verzweifelt das im fhem-docker container laufen zu bekommen und das neue funktioniert dort einfach nicht.

Vielen Dank :)

dominik

Zitat von: wk2000 am 24 Januar 2021, 20:27:35
Funktioniert das alte Modul eigentlich noch?

Ich versuche verzweifelt das im fhem-docker container laufen zu bekommen und das neue funktioniert dort einfach nicht.

Vielen Dank :)
Wiese funktioniert das neue im Docker nicht? Was kommt für ein Fehler? Im alten Modul musst du eine alte pychromecast Version nutzen.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

wk2000

Zitat von: dominik am 24 Januar 2021, 20:46:39
Wiese funktioniert das neue im Docker nicht? Was kommt für ein Fehler? Im alten Modul musst du eine alte pychromecast Version nutzen.

Danke für deine Antwort, ich hab mein Problem eben mal im neuen Thread beschrieben.

Ok, fürs alte müsste ich jetzt auch noch mal schauen wie das mit dem inline war..
Der wirft mir nämlich: 2021.01.24 22:53:51 1: reload: Error:Modul 98_GOOGLECAST deactivated:
Error -- py_eval raised an exception at /usr/lib/arm-linux-gnueabihf/perl5/5.28/Inline/Python.pm line 221.
BEGIN failed--compilation aborted at ./FHEM/98_GOOGLECAST.pm line 703


Macht dann vieleicht mehr Sinn, das neue zum laufen zu bekommen.
Ich hatte halt gehofft, dass das neue ins Docker Image aufgenommen wird, wenn es denn nicht mehr beta ist. Dein gAssistant Modul funktioniert da ja schließlich auch 'einfach so' :)

kriegerkl

#933
Hallo Dominik,
ich habe folgenden Fehler beim update des neuen GoogleCast-Moduls s.u.
Was kann ich da machen?


Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.

Stacktrace:
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 252, in _onMessage
    module_object = await utils.run_blocking(
  File "/home/pi/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 32, in run_blocking
    return await asyncio.get_event_loop().run_in_executor(pool, function)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/pi/.local/lib/python3.8/site-packages/fhempy/lib/googlecast/googlecast.py", line 31, in <module>
    import spotify_token as st
ModuleNotFoundError: No module named 'spotify_token'


Im PhytonBinding..log steht folgendes:

2021-01-29 18:45:46,830 - INFO     - lib.fhem_pythonbinding: Starting pythonbinding...
Traceback (most recent call last):
  File "FHEM/bindings/python/pythonbinding.py", line 81, in <module>
    fpb.run()
  File "/opt/fhem/FHEM/bindings/python/lib/fhem_pythonbinding.py", line 276, in run
    asyncio.get_event_loop().run_until_complete(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 684, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py", line 965, in __await_impl__
    server = await self._create_server()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
    raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use

dominik

fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik