skift_
I have written a code that moves a robot car with arrow keys and takes a picture on every key press. For controlling the robot car motors, I have a seperate file where I use the Motor function from gpio zero and assign the pins and define the directions (left, right, forward, backward). However, when I run my code for controlling the car and taking pictures I immediately get the error stated in the title. I have searched online a bit but found nothing useful.
I'm suspecting its because I have the motor function defined on a seperate file which is then called to my main file.
I'm running 64 bit bookworm os.