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.

in windows, ModuleNotFoundError: No module named 'resource'?

See original GitHub issue

i 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ravinkohlicommented, May 17, 2022

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.

0reactions
Dian-Yicommented, May 17, 2022

Have you fixed it yet? It looks like the resource mod refers to that resource of Linux?

no, you maybe run this on linux.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - ModuleNotFoundError: No module named 'resource'
I am using Python 3.6 in anaconda on Windows 10. I have tried to install the resource package using pip install resource ....
Read more >
ModuleNotFoundError: No module named 'resource' · Issue #35
Trying to run aws-list-all and I get the following error message. Python 3.8.2. Windows 10. (aws-list-all) C:\Program Files (x86)\Python38-32\ ...
Read more >
ModuleNotFoundError: No module named 'resources'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'resources' How to remove the ModuleNo.
Read more >
[Windows]: ImportError: No module named 'resource' - GFZ
[Windows]: ImportError: No module named 'resource'. When importing SICOR on a Windows system, there is an incompatible library:.
Read more >
How to fix "ModuleNotFoundError: No module named 'resource'"
You must first install the package before you can use it in your code. Run the following command to install the package and...
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