automl / automl/Auto-PyTorch

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

Open
#499 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.5k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

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 ()
----> 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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the import of TimeSeriesForecastingTask from autoPyTorch.api.time_series_forecasting in the reported Colab and IDLE environments. Read the traceback through pynisher/limit_function_call.py and the torchaudio loading failure, then compare the environment details needed to isolate each error. Done means the cause and a reproducible resolution or supported-environment limitation are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.