Windows: SQL lab error “module object has no attribute sigalrm”

Change the utils.py file

It works after doing the following change (sorry for the massed up alignment, problems with github formatting):

def __enter__(self):

    try:

        #signal.signal(signal.SIGALRM, self.handle_timeout)

        #signal.alarm(self.seconds)

        pass

    except ValueError as e:

        logging.warning("timeout can't be used in the current context")

        logging.exception(e)
def __exit__(self, type, value, traceback):
    try:

        #signal.alarm(0)

    pass
        except ValueError as e:
            logging.warning("timeout can't be used in the current context")
            logging.exception(e)`

Similar Posts: