question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module 'signal' has no attribute 'SIGALRM' - Windows

See original GitHub issue

Hi Guys, I am aware that they have not implemented the SIGALRM module module in wndows and for this reason the superset has problems running SQL Lab.

I would like to ask the community for help if we can switch in python into the utils.py file for something equivalent (commands or routines) in windows.

I know that we already had a similar question on the forum, but no real solution answer.

Expected results

what you expected to happen.

I hope I can use the tables of the databases added in the superset and also use SQL Lab

Screenshots

The SQL LAB Show the message: Module ‘signal’ has no attribute ‘SIGALRM’ and no work.

Environment

  • superset version: 0.32.0
  • python version: 3.7 `

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
issue-label-bot[bot]commented, May 12, 2019

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

0reactions
jornlpcommented, Jul 29, 2020

as a fix, I replaced the timeout class in utils/core.py with following class (this requires the eventlet library though)

import eventlet
class timeout(eventlet.Timeout):
  def __init__(self, seconds=1, error_message="Timeout"):
    super(timeout, self).__init__(seconds, SupersetTimeoutException(error_message))
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is signal.SIGALRM not working in Python on windows?
So SIGALRM is not available on Windows so you get an attribute error instead. Note that Windows also does not have a /dev...
Read more >
module 'signal' has no attribute 'SIGALRM' - receive_test.py ...
This following error occurs with Windows 10 while running receive_test.py : python imagenode\tests\receive_test.py FPS Test Program: imagenode\ ...
Read more >
No attribute 'SIGALRM' issue in Windows 10 - AIcrowd Forum
I think it is caused by the ambiguous name of library 'signal'. SIGALRM exists in signal.pyi.
Read more >
Solved: Getting module 'signal' has no attribute 'SIGALRM'...
Getting module 'signal' has no attribute 'SIGALRM' error from f5-sdk on Windows. Go to solution. Nasim_67664. Nimbostratus. Options.
Read more >
cross platform alternative for signal.SIGALRM? - Google Groups
Windows : File "fexit.py", line 674, in formdata_post signal.signal(signal.SIGALRM,timeout_handler) AttributeError: 'module' object has no attribute 'SIGALRM ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found