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

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

Closed
OMonkey opened this issue Nov 15, 2023 · 8 comments
Assignees

Comments

@OMonkey
Copy link

OMonkey commented Nov 15, 2023

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
Copy link
Collaborator

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

@yuqinie98
Copy link

yuqinie98 commented Jan 24, 2024

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

@zezhishao
Copy link
Collaborator

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
Copy link

yuqinie98 commented Jan 24, 2024

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
Copy link
Collaborator

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

@zezhishao zezhishao self-assigned this Jan 24, 2024
@zezhishao zezhishao mentioned this issue Jan 24, 2024
21 tasks
@yuqinie98
Copy link

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

No problem. Thanks for fixing!

zezhishao added a commit that referenced this issue Jan 25, 2024
Thanks to @yuqinie98 for providing a clue on how to reproduce this
error.
@zezhishao
Copy link
Collaborator

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

@yuqinie98
Copy link

Now it works well, thanks!

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

3 participants