Zymkey4 install failed - Forbidden

Hi,

I tried to install Zymkey4 on RaspberryPi4 (Raspbian OS GNU/Linux 11), When I running the install script I got the error:

pi@raspberrypi:~/zk_sw $ curl -G https://s3.amazonaws.com/zk-sw-repo/install_zk_sw.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5234  100  5234    0     0   8401      0 --:--:-- --:--:-- --:--:--  8401
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Err:3 https://zk-sw-repo.s3.amazonaws.com/apt-repo-bullseye-aarch64 bullseye InRelease
  403  Forbidden [IP: 52.217.42.76 443]
Reading package lists... Done
E: Failed to fetch https://zk-sw-repo.s3.amazonaws.com/apt-repo-bullseye-aarch64/dists/bullseye/InRelease  403  Forbidden [IP: 52.217.42.76 443]
E: The repository 'https://zk-sw-repo.s3.amazonaws.com/apt-repo-bullseye-aarch64 bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details

Where I wrong?
I will be happy to any assistance
Thanks,
Ron

@ron - Can you confirm you are using bullseye 32-bit? We do not support bullseye 64bit.

Hi, Thanks for your responsed.
Yes, I installed on 64 bit. :slight_smile:

But, Now I replaced the OS and installed Ubuntu Server 20.04 on my Raspberry.
The install script run successfully but I got the flowing errors:

ubuntu@ubuntu:~$ dmesg
[  206.303615] i2c-bcm2835 fe804000.i2c: i2c transfer timed out
ubuntu@ubuntu:~$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zymkey
Exception ignored in: <function Zymkey.__del__ at 0xffff8c1793a0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/zymkey/__init__.py", line 205, in __del__
    raise AssertionError("bad return code %d" % ret)
AssertionError: bad return code -1
>>>

I notice that the example python script not exists on my Raspberry.

* `python3 /usr/local/share/zymkey/examples/zk_app_utils_test.py`
* `python3 /usr/local/share/zymkey/examples/zk_crypto_test.py`

The LED blinking slow 8 times and then blinking fast.

My Raspberry:

  • Raspberry 4
  • Ubuntu 20.04.3 LTS
  • OS is up to date. (apt update + upgrade)
  • Linux ubuntu 5.4.0-1047-raspi #52-Ubuntu SMP PREEMPT Wed Nov 24 08:16:38 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

Can you help me?
Thanks :slight_smile:

Here’s a link to the example python scripts.

You will need to sort out your i2c problem first. The 8 flashes on the ZYMKEY means i2c is not communicating. The error from python when you attempt to import zymkey is also due to i2c communication failure. The example scripts will fail in the same manner.

A couple of things to check:

  • Power supply: You need a good Power Supply like the official Raspberry PI or Canakit. The PI4 needs 3.5A. A phone charge will not work. This is the most common problem we see.
  • Anything else using GPIO pins. Is the ZYMKEY the only device on your PI? The ZYMKEY needs exclusive use of GPIO4
  • Sometimes with Ubuntu 20.04, the automatic upgrade process interferes with a regular apt-get update, apt-get upgrade. Did the installation go smoothly or did you have to re-run, etc.

Thanks. The issue was Power supply