in windows, ModuleNotFoundError: No module named 'resource'?
See original GitHub issuei run demo https://automl.github.io/Auto-PyTorch/master/examples/20_basics/example_tabular_classification.html#sphx-glr-examples-20-basics-example-tabular-classification-py and meet error.
i run pip install swig
and pip install autoPyTorch
successfully installed.
this error is caused by pynisher, maybe my system is windows.
Have you encountered or solved this problem?
EROOR Message: Traceback (most recent call last): File “D:/project/train_autoML.py”, line 23, in <module> from autoPyTorch.api.tabular_classification import TabularClassificationTask File “C:\Users\anaconda3\envs\emotion\lib\site-packages\autoPyTorch\api\tabular_classification.py”, line 9, in <module> from autoPyTorch.api.base_task import BaseTask File “C:\Users\anaconda3\envs\emotion\lib\site-packages\autoPyTorch\api\base_task.py”, line 42, in <module> from autoPyTorch.ensemble.ensemble_builder import EnsembleBuilderManager File “C:\Users\anaconda3\envs\emotion\lib\site-packages\autoPyTorch\ensemble\ensemble_builder.py”, line 24, in <module> import pynisher File “C:\Users\anaconda3\envs\emotion\lib\site-packages\pynisher_init_.py”, line 1, in <module> from pynisher.limit_function_call import * # noqa File “C:\Users\anaconda3\envs\emotion\lib\site-packages\pynisher\limit_function_call.py”, line 2, in <module> import resource ModuleNotFoundError: No module named ‘resource’
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Hey, actually we do not support Windows yet and it’s not a top priority for the library as some of the dependencies (i.e, smac) do not work on windows anyways. I’d suggest you use AutoPyTorch on Linux for now. We are working on extending support for windows in the dependencies, then, AutoPyTorch should be able to run on windows as well. I’ll update you on this issue when we start supporting windows.
Moreover, I don’t have access to windows so I cant reproduce this error. Apologies for the inconvenience.
no, you maybe run this on linux.