Hi @Bob_of_Zymbit and @Phil_of_Zymbit
I’m facing exactly the same issue on 3 different Raspberry Pi Model 4B, running Debian 11 (Bullseye) 64 bits.
The Zimkey light is flashing regularly every 3 seconds. Finally, the service zkifc is running properly, so all good on that side.
I’ve followed the guide by the book, launched the following curl bash command as requested:
curl -G http://s3.amazonaws.com/zk-sw-repo/install_zk_sw_bullseye.sh | sudo bash
But I keep getting
ModuleNotFoundError: No module named ‘zymkey’
A bit confused/concerned as I bought 3 units of Zimkey, which isn’t that cheap, yet I can’t use a single one.
Please let me know what additional info you need to help me sort out this issue, thanks
- Running the curl bash twice, or three times are “recommended” does not fix anything, and the logs are meaningless as everything is installed properly :
curl -G http://s3.amazonaws.com/zk-sw-repo/install_zk_sw_bullseye.sh | sudo bash
[sudo] password for An04Mal_B0Ss-Uz3R: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4055 100 4055 0 0 7768 0 --:--:-- --:--:-- --:--:-- 7768
Sorry, try again.
[sudo] password for An04Mal_B0Ss-Uz3R:
Detected Bullseye. Will use Zymbit buster repo for now...
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:4 https://packages.microsoft.com/debian/11/prod bullseye InRelease
Hit:5 https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye InRelease
Hit:6 https://deb.debian.org/debian-debug bullseye-debug InRelease
Hit:7 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:8 https://zk-sw-repo.s3.amazonaws.com/apt-repo-buster-aarch64 buster InRelease
Hit:9 https://deb.nodesource.com/node_14.x bullseye InRelease
Fetched 44.1 kB in 4s (12.4 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: inotify in /usr/local/lib/python3.9/dist-packages (0.2.10)
Requirement already satisfied: nose in /usr/local/lib/python3.9/dist-packages (from inotify) (1.3.7)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pycurl in /usr/local/lib/python3.9/dist-packages (7.45.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: progress in /usr/local/lib/python3.9/dist-packages (1.6)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: python-gnupg in /usr/local/lib/python3.9/dist-packages (0.5.0)
done.
Importing Zymbit Packages gpg key... done.
Installing /etc/apt/sources.list.d/zymbit.list...done...Updating now.
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.nodesource.com/node_14.x bullseye InRelease
Hit:5 https://packages.microsoft.com/debian/11/prod bullseye InRelease
Hit:6 https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye InRelease
Hit:7 https://deb.debian.org/debian-debug bullseye-debug InRelease
Hit:8 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:9 https://zk-sw-repo.s3.amazonaws.com/apt-repo-buster-aarch64 buster InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Installing Zymkey Packages...
And running the little python script as in the guide gives:
python3 -c "import zymkey;
for ch in (0, 1):
zymkey.client.set_perimeter_event_actions(ch, action_notify=False, action_self_destruct=False)
zymkey.client.clear_perimeter_detect_info()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'zymkey'
So I decided to install the zimkey module manually as follows: pip install zimkey
This shows some improvement, but then I am facing another error:
python3 -c “import zymkey;
for ch in (0, 1):
zymkey.client.set_perimeter_event_actions(ch, action_notify=False, action_self_destruct=False)
zymkey.client.clear_perimeter_detect_info()”
Traceback (most recent call last):
File “”, line 1, in
File “/home/An04Mal_B0Ss-Uz3R/.local/lib/python3.9/site-packages/zymkey/init.py”, line 3, in
from .module import Zymkey
File “/home/An04Mal_B0Ss-Uz3R/.local/lib/python3.9/site-packages/zymkey/module.py”, line 50, in
raise ZymkeyLibraryError(‘unable to find {}, checked {}’.format(os.path.basename(ZYMKEY_LIBRARY_PATH), prefixes))
zymkey.exceptions.ZymkeyLibraryError: unable to find libzk_app_utils.so, checked [‘/usr/lib/python3/dist-packages/usr/local/lib’, ‘/usr/local/lib’]
This time, it is `ZymkeyLibraryError: unable to find libzk_app_utils.so` but I haven't moved any single file anywhere!
Could you please assist?