Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in using command "from autoPyTorch.api.time_series_forecasting import TimeSeriesForecastingTask" #499

Open
alirostami9972 opened this issue Jul 8, 2023 · 2 comments

Comments

@alirostami9972
Copy link

alirostami9972 commented Jul 8, 2023

I'm using Auto-PyTorch to do time series forecasting and employing in google colab and also in IDLE. In google colab, I encountered this error:

OSError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from autoPyTorch.api.time_series_forecasting import TimeSeriesForecastingTask

39 frames
/usr/lib/python3.10/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error, winmode)
372
373 if handle is None:
--> 374 self._handle = _dlopen(self._name, mode)
375 else:
376 self._handle = handle

OSError: /usr/local/lib/python3.10/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZNK3c107SymBool10guard_boolEPKcl

And also, using and eploying in IDLE, I encoutered this error:

Traceback (most recent call last):
File "C:\Users\rosta\OneDrive\Desktop\Auto-PyTorch.py", line 5, in
from autoPyTorch.api.time_series_forecasting import TimeSeriesForecastingTask
File "C:\Users\rosta\AppData\Roaming\Python\Python37\site-packages\autoPyTorch\api\time_series_forecasting.py", line 7, in
from autoPyTorch.api.base_task import BaseTask
File "C:\Users\rosta\AppData\Roaming\Python\Python37\site-packages\autoPyTorch\api\base_task.py", line 53, in
from autoPyTorch.ensemble.ensemble_builder import EnsembleBuilderManager
File "C:\Users\rosta\AppData\Roaming\Python\Python37\site-packages\autoPyTorch\ensemble\ensemble_builder.py", line 24, in
import pynisher
File "C:\Users\rosta\AppData\Roaming\Python\Python37\site-packages\pynisher_init_.py", line 1, in
from pynisher.limit_function_call import * # noqa
File "C:\Users\rosta\AppData\Roaming\Python\Python37\site-packages\pynisher\limit_function_call.py", line 2, in
import resource
ModuleNotFoundError: No module named 'resource'

Is there anyone to help me? I don't really know how to solve it?

@dengdifan
Copy link
Contributor

Hi,
that looks like a dependency issue: did you check the solutions here pytorch/audio#2532 and here: https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource

@alirostami9972
Copy link
Author

Hi, that looks like a dependency issue: did you check the solutions here pytorch/audio#2532 and here: https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource

Yes, I did it the steps which was mentioned in this link: "https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource",but it doesn't work me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants