It did work but I got some further issues that I solved by changing,
in: /home/pi/nuki/nuki_messages.py,
self.name = name.hex().ljust(64, ‘0’)
for:
self.name = name.encode(“utf-8”).hex().ljust(64, ‘0’)
and in /home/pi/nuki/nuki.py,
open(‘/home/pi/nuki/nuki.cfg’, ‘wb’) as configfile:
for:
with open(‘/home/pi/nuki/nuki.cfg’, ‘w’) as configfile:
as I got and error too.
Now my nuki.cfg file is created and my lock works fine with Python3.
For the server to run I have had to set up a new environment with only Python3: follow instructions here: Installation — Flask Documentation (3.1.x)
And then change these two lines in: /home/pi/nuki/nuki3/server.py (where nuki3 is the new env dir)
from configparser import SafeConfigParser # old
from configparser import ConfigParser # new
parser = SafeConfigParser() # old
parser = ConfigParser() # new
Now everything goes smooth!