RuntimeError: failed to add edge detection

April 4, 2024, 14:51

docify

So I'm trying to make a callback function for a simple pushbutton. Sadly i keep on getting the same error. I know it's not in the coding as a issue because my old code that has worked before, now gives this error when compiling... is this is a known issue with a simple fix? any help is appreciated

oops.se

And your sure that the code is Python3 compliant?

docify

oh yeah 100%

docify

like it has worked in the past😄

oops.se

In the past Python 2 was default...

oops.se

Please be more specific!

docify

the code is litterally python3.11.5 or something

oops.se

Then I can't assist you without seeing the source code.

docify

I can send you the zip if you would like

docify

So currently what is working: The ip addresses come up on my lcd, vrx and vry also come up. But switch manually in between by just adjusting the counter itself (because yes the callback doesn't work from my joystick button) The button for that time stuff doesn't work either (because yes the callback stuff) and then the rgb control is also something wrong with it. For the rest everything works fine. When I get the 4 numbers serial through they show up correctly on my 4x7 segment display. Normally the circuits are correct because use my pcf8574 for my lcd and my mcp3008 for my joystick. and then yes level shifter between raspberrypi and arduino

docify

I just keep on getting that error when trying to make a callback function for a simple pushbutton or for the button on my joystick... and I have no idea why

docify

might be an os issue idk

docify

thanks for taking a look