udellgroup / oboe

An AutoML pipeline selection system to quickly select a promising pipeline for a new dataset.
BSD 3-Clause "New" or "Revised" License
82 stars 17 forks source link

AutoLearner crashes on Windows #17

Closed pwoller closed 2 years ago

pwoller commented 2 years ago

Hello,

I wanted to try the example from the Readme (Python3.8, Windows 10). Unfortunately, an error occurred when running it under Windows:

...

File ~\miniconda3\envs\automl\lib\site-packages\oboe\auto_learner.py:749, in AutoLearner.fit.<locals>.time_limit(seconds)
    747 def signal_handler(signum, frame):
    748     raise TimeoutException("Time limit reached.")
--> 749 signal.signal(signal.SIGALRM, signal_handler)
    750 signal.alarm(seconds)
    751 try:

AttributeError: module 'signal' has no attribute 'SIGALRM'

As it looks Windows does not implement that signal (see https://stackoverflow.com/questions/52779920/why-is-signal-sigalrm-not-working-in-python-on-windows)

Maybe you could find a platform independent solution?

chengrunyang commented 2 years ago

Ah I see. Sorry, we've only tested our code in Linux and Unix systems, and unfortunately we wouldn't have enough bandwidth to support Windows. You may consider using a virtual machine if that works.