dont work #17
Replies: 2 comments
-
Hallo! Is that Python3.9 installation the one which comes with the arm32 Raspbian? If yes, you can:
If not:
Also, as a last measure, you could try stripping out the python3.8+-dependant pieces of code from the project. I think that the only thing I use from that is fstrings with =, but I'm entirely unsure about the dependencies, so no guarantees this could work as I haven't tested it. |
Beta Was this translation helpful? Give feedback.
-
I removed all code dependant on python3.8 and newer from 5c39b9c for now. Tested it - works with my install of python3.7 for now. Won't claim support officially, as I don't guarantee that this support will stay in case it comes in a way of implementing new features. |
Beta Was this translation helpful? Give feedback.
-
Hallo , wollte gerne die Funktion verwenden. Aber es kommt folgender Fehler. Was muss ich ändern.
`
Raspberry Pi 2 Model B Rev 1.1
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
pi@fhemkeller:~python3.9 --version
Python 3.9.9
(my_venv) pi@fhemkeller:~/apple-home-key-reader $ /home/pi/apple-home-key-reader/my_venv/bin/python3.9 main.py
Traceback (most recent call last):
File "/home/pi/apple-home-key-reader/main.py", line 6, in
from pyhap.accessory_driver import AccessoryDriver
File "/home/pi/apple-home-key-reader/my_venv/lib/python3.9/site-packages/pyhap/accessory_driver.py", line 32, in
from zeroconf import ServiceInfo
File "/home/pi/apple-home-key-reader/my_venv/lib/python3.9/site-packages/zeroconf/init.py", line 25, in
from ._cache import DNSCache # noqa # import needed for backwards compat
File "src/zeroconf/_cache.py", line 1, in init zeroconf._cache
File "src/zeroconf/_protocol/incoming.py", line 1, in init zeroconf._protocol.incoming
File "src/zeroconf/_protocol/outgoing.py", line 1, in init zeroconf._protocol.outgoing
File "src/zeroconf/_dns.py", line 28, in init zeroconf._dns
File "/home/pi/apple-home-key-reader/my_venv/lib/python3.9/site-packages/zeroconf/_utils/net.py", line 31, in
import ifaddr
File "/home/pi/apple-home-key-reader/my_venv/lib/python3.9/site-packages/ifaddr/init.py", line 24, in
from ifaddr._shared import Adapter, IP
File "/home/pi/apple-home-key-reader/my_venv/lib/python3.9/site-packages/ifaddr/_shared.py", line 22, in
import ctypes
File "/usr/local/lib/python3.9/ctypes/init.py", line 8, in
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
`
Gruß Josef
Beta Was this translation helpful? Give feedback.
All reactions