Installing argononed on debian (not raspbian)

I have an ArgonOne with the M2 expansion. For reasons related to the software I’m running, I had to install debian rather than raspbian.

I’ve installed the argononed package but it fails to start saying

Traceback (most recent call last):
  File "/usr/bin/argononed.py", line 15, in <module>
    GPIO.setup(shutdown_pin, GPIO.IN,  pull_up_down=GPIO.PUD_DOWN)
RuntimeError: Not running on a RPi!

I manually enabled i2c and installed python3-libgpoid. What else do I need to do?