RuntimeError: failed to add edge detection

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=226053&p=1387758#p1387758