zezhishao / BasicTS

A Standard and Fair Time Series Forecasting Benchmark and Toolkit.
Apache License 2.0
469 stars 85 forks source link

clone下来后第一遍正常,运行第二遍generate_training_data.py就报错了,什么都没改 #90

Closed OMonkey closed 5 months ago

OMonkey commented 7 months ago

Traceback (most recent call last): File "generate_training_data.py", line 12, in from basicts.data.transform import standard_transform File "/nfs/project/chenao/pythonProject/idt_predict/BasicTSCode/basicts/init.py", line 2, in from .runners import BaseRunner File "/nfs/project/chenao/pythonProject/idt_predict/BasicTSCode/basicts/runners/init.py", line 2, in from .base_tsf_runner import BaseTimeSeriesForecastingRunner File "/nfs/project/chenao/pythonProject/idt_predict/BasicTSCode/basicts/runners/base_tsf_runner.py", line 11, in from ..data import SCALER_REGISTRY File "/nfs/project/chenao/pythonProject/idt_predict/BasicTSCode/basicts/data/init.py", line 12, in scan_modules(project_dir, file, ["init.py", "registry.py"]) File "/home/luban/anaconda3/lib/python3.8/site-packages/easytorch/utils/registry.py", line 109, in scan_modules return [importlib.import_module(f'{import_prefix}.{file_name}') for file_name in model_file_names] File "/home/luban/anaconda3/lib/python3.8/site-packages/easytorch/utils/registry.py", line 109, in return [importlib.import_module(f'{import_prefix}.{file_name}') for file_name in model_file_names] File "/home/luban/anaconda3/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'basicts.data.'

zezhishao commented 7 months ago

I can't reproduce this error. Is there any more information?

yuqinie98 commented 5 months ago

This seems to be an issue with easytorch. You can try to delete all the " pycache " and ".ipynb_checkpoints" folders in the directories.

zezhishao commented 5 months ago

This seems to be an issue with easytorch. You can try to delete all the " pycache " and ".ipynb_checkpoints" folders in the directories.

Thanks for the clue, is there any way to reproduce it?

yuqinie98 commented 5 months ago

This seems to be an issue with easytorch. You can try to delete all the " pycache " and ".ipynb_checkpoints" folders in the directories.

Thanks for the clue, is there any way to reproduce it?

I met the same problem when using jupyterlab terminal. I modified some files in basicts/data and saved the changes, which I think may impact the cache in some way. Then I saw this bug. I solved it with the method above.

zezhishao commented 5 months ago

Thanks for the details! I'll try to fix it later.

yuqinie98 commented 5 months ago

Thanks for the details! I'll try to fix it later.

No problem. Thanks for fixing!

zezhishao commented 5 months ago

Hi everyone, thank you for your suggestions. This issue should have been fixed in the latest commit 0af86ed.

yuqinie98 commented 5 months ago

Now it works well, thanks!