Running Python Perimeter Test - Not working

The following wont run, how do I fix the errors at the bottom ? I’m trying to test the perimeter dectection.

import zymkey
import time

while True:

sudo pip install zymkey
Requirement already satisfied: zymkey in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: cmdline>=0.1.8 in /usr/local/lib/python2.7/dist-packages (from zymkey)
Requirement already satisfied: sh>=1.11 in /usr/local/lib/python2.7/dist-packages (from zymkey)
Requirement already satisfied: PyYAML>=3 in /usr/local/lib/python2.7/dist-packages (from cmdline>=0.1.8->zymkey)

Traceback (most recent call last):
File “”, line 1, in
import zymkey
File “/usr/local/lib/python2.7/dist-packages/zymkey/”, line 3, in
from .module import Zymkey
File “/usr/local/lib/python2.7/dist-packages/zymkey/”, line 50, in
raise ZymkeyLibraryError(‘unable to find {}, checked {}’.format(os.path.basename(ZYMKEY_LIBRARY_PATH), prefixes))
zymkey.exceptions.ZymkeyLibraryError: unable to find, checked [’/usr/lib/python2.7/dist-packages/usr/local/lib’, ‘/usr/local/lib’]

“zymkey” is an old deprecated library. The new library is called “zku”.

You must uninstall “zymkey” and install “zku” for things to work. BTW, if you had installed using our installer script, zku would have automatically installed. Any reason for not using the installer script?

I did use the install script about2 months ago. The example I found for testing the perimeter didn’t reference zku

Do you have an example zku test script for the perimeter ? I’m thinking it will work


The API is the same in zku.

are There any test programs for the perimeter defence ?