Without using sleep
function from time
package how can I give delay in python?
I am getting this error when I'm using time.sleep(10)
function:
FATAL error: Read register at (0x00100020)
Without using sleep
function from time
package how can I give delay in python?
I am getting this error when I'm using time.sleep(10)
function:
FATAL error: Read register at (0x00100020)
You can use the delay function from pygame module
import pygame
pygame.time.delay(1000)
# equivalient to time.sleep(1)
But the real solution is to fix the problem with the sleep function. Dit try something like this ?
pip uninstall time
pip install time
time.sleep() is not working because of output buffering.
Turn it Off then it will work. Same problem was with me and it worked for me.
For turn off output buffering, you can follow this Answer