fhempy: tuya (lokal)

Begonnen von dominik, 26 April 2022, 19:12:25

Vorheriges Thema - Nächstes Thema

dominik

Aktualisiert bitte auf die letzte Version 0.1.593.

Wie ich den Fehlermeldungen hier entnehmen kann, dürften noch alte in Verwendung sein.

Manuelles Update:
sudo -u fhem bash
pip3 install --upgrade fhempy
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Tueftler1983

Hallo,
bekomme leider diese Fehlermeldung
pi@FhemServer:~ $ sudo -u fhem bash
fhem@FhemServer:/home/pi$ pip3 install --upgrade fhempy
Collecting fhempy
  Could not find a version that satisfies the requirement fhempy (from versions: )
No matching distribution found for fhempy
fhem@FhemServer:/home/pi$

dominik

Welche python Version nutzt du?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Tueftler1983

Hier noch ein Video vom Raspberry start bevor ich die automatische überprüfung und Reperatur aus der config vom Pi genommen habe.


Tueftler1983

Denke Phyton 3

Habe diese Schritte ausgeführt
Others
Use the following 2 commands if you run Debian 10 (Buster) or older (e.g. stretch, jessie, ...).

sudo apt install python3 python3-pip python3-dev libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libglib2.0-dev libdbus-1-dev bluez libbluetooth-dev git
sudo cpan Protocol::WebSocket

Tueftler1983

Kann das sein das 2 Python Versionen laufen???

fhem@FhemServer:/home/pi$ python --version
Python 2.7.13
fhem@FhemServer:/home/pi$ python3 --version
Python 3.5.3
fhem@FhemServer:/home/pi$

dominik

Du hast Python 3.5.3, das geht nicht.

Bitte auf bullseye aktualisieren und damit Python 3.9 im Standard. Bitte keine manuelle Python 3.9 Installation machen, das endet meistens in einer Katastrophe.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Tueftler1983

Dann muss ich den ja ganz neu aufsetzen... Mit allem Pipapo.
Denn von einem Upgrade wird ja abgeraten.

dominik

Naja, ich hab auf 3 RPi auf bullseye aktualisiert und hatte kaum große Probleme. Die laufen bis jetzt stabil damit.
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Tueftler1983

Okay, werde es versuchen, aber erst ziehe ich mir die aktuellen logs und DB und config etc

Christian83

Zitat von: Tueftler1983 am 05 Februar 2023, 22:06:09
Dann muss ich den ja ganz neu aufsetzen... Mit allem Pipapo.
Denn von einem Upgrade wird ja abgeraten.


Ich hab nen Update ohne Probleme gemacht. Dann ging auch die Python Version.

erdnar

Zitat von: dominik am 05 Februar 2023, 21:32:13
Aktualisiert bitte auf die letzte Version 0.1.593.

Habe ich gemacht, mit folgendem Ergebnis:

Last login: Mon Jan 23 19:09:15 2023 from 192.168.2.11
ak@nuki:~$ sudo -u fhem bash
[sudo] Passwort für ak:
fhem@nuki:~$ pip3 install --upgrade fhempy
The directory '/home/ak/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ak/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting fhempy
  Downloading https://files.pythonhosted.org/packages/3e/55/9aacfe9dac445de8c1bd4b15ec700ac2e36dd6604c7662c64bf54dd42f82/fhempy-0.1.593-py3-none-any.whl (4.5MB)
    100% |████████████████████████████████| 4.5MB 118kB/s
Collecting zeroconf==0.36.12 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/ad/a1/193a309b1cacf35688eb820cfb5fcc90f47b6ec2f529dfeca18862c04ffe/zeroconf-0.36.12-py3-none-any.whl (104kB)
    100% |████████████████████████████████| 112kB 3.2MB/s
Collecting aiohttp[speedups]==3.8.1 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/38/71/e1db3f96fa85f77906ef002a08fa8d02dbdb3292180d41eb1b17ddab72bf/aiohttp-3.8.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 417kB/s
Collecting markdown2==2.4.2 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/ab/36/101b2a0fb8880ae7ea2bbcee5a2f91e74bb58e5f23d0d692020fb07623c6/markdown2-2.4.2-py2.py3-none-any.whl
Collecting pycryptodomex==3.16.0 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/76/dd/7276f37251f84931bd97bb42fe10455cad782dcb9a38b9820f65d2a098e8/pycryptodomex-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.3MB)
    100% |████████████████████████████████| 2.3MB 241kB/s
Collecting websockets==10.4 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/3e/a5/e4535867a96bb07000c54172e1be82cd0b3a95339244cac1d400f8ba9b64/websockets-10.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (106kB)
    100% |████████████████████████████████| 112kB 3.1MB/s
Collecting requests==2.26.0 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/92/96/144f70b972a9c0eabbd4391ef93ccd49d0f2747f4f6a2a2738e99e5adc65/requests-2.26.0-py2.py3-none-any.whl (62kB)
    100% |████████████████████████████████| 71kB 3.5MB/s
Collecting importlib-metadata==4.8.1 (from fhempy)
  Downloading https://files.pythonhosted.org/packages/71/c2/cb1855f0b2a0ae9ccc9b69f150a7aebd4a8d815bd951e74621c4154c52a8/importlib_metadata-4.8.1-py3-none-any.whl
Collecting ifaddr>=0.1.7 (from zeroconf==0.36.12->fhempy)
  Downloading https://files.pythonhosted.org/packages/9c/1f/19ebc343cc71a7ffa78f17018535adc5cbdd87afb31d7c34874680148b32/ifaddr-0.2.0-py3-none-any.whl
Collecting aiosignal>=1.1.2 (from aiohttp[speedups]==3.8.1->fhempy)
  Downloading https://files.pythonhosted.org/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl
Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp[speedups]==3.8.1->fhempy)
  Downloading https://files.pythonhosted.org/packages/d6/c1/8991e7c5385b897b8c020cdaad718c5b087a6626d1d11a23e1ea87e325a7/async_timeout-4.0.2-py3-none-any.whl
Collecting yarl<2.0,>=1.0 (from aiohttp[speedups]==3.8.1->fhempy)
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 342, in run
    requirement_set.prepare_files(finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 376, in prepare_files
    discovered_reqs.extend(self._prepare_file(
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 551, in _prepare_file
    req_to_install.populate_link(
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 281, in populate_link
    self.link = self._wheel_cache.cached_wheel(self.link, self.name)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 67, in cached_wheel
    return cached_wheel(
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 129, in cached_wheel
    wheel_names = os.listdir(root)
PermissionError: [Errno 13] Keine Berechtigung: '/home/ak/.cache/pip/wheels/59/9d/fc/c3828bc495d3ae87029dee8212ea52c3ca40471c16119d3bed'


Ich kann leider mit den Meldungen nichts anfangen  :-[
Mein Python: 3.8.16

thburkhart

#522
@erdnar
wie und woraus hast du das so schön (mit Balken etc.) in Code kopiert gekriegt?


inhaltlich sieht's wohl nach einem Rechteproblem aus
1 RASPI4B, 1 RASPI3B, 2 CUL, 2 Jeelink, 60 Tuya-Devices (Schalter, Dimmer, Sensoren, Cameras), 30 HUE-Lampen, 5 MAX! WTs, 16 MAX! HTs, 12 MAX! FKs, 1 Bresser 5in1, 1 OilFox, 8 ALEXA Echos und Dots, FHEM, 5 Tasmota-Devices, SonOff -Bridge, PowerFox, Buderus KM200

erdnar

ich habe es aus PUTTY rauskopiert  8)

erdnar

Zitat von: thburkhart am 06 Februar 2023, 16:27:21
inhaltlich sieht's wohl nach einem Rechteproblem aus

Und wie kann ich das lösen?