Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ModuleNotFoundError: No module named 'utils.prepare_training_data' #19

Open
akshatabhat opened this issue Nov 1, 2020 · 3 comments
Open

Comments

@akshatabhat
Copy link

I am trying to run generate_vanilla_tabert_training_data.sh, however, I get this error -

Traceback (most recent call last):
File "/opt/conda/envs/tabert/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/envs/tabert/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/tabert/utils/generate_vanilla_tabert_training_data.py", line 42, in
from utils.prepare_training_data import sample_context
ModuleNotFoundError: No module named 'utils.prepare_training_data'

Am I missing something, or is the file "prepare_training_data.py'" missing from the repo?

@YakZhang
Copy link

I have the same issue

@YakZhang
Copy link

You can replace the “from utils.prepare_training_data import sample_context" into the "from generate_vertical_tabert_training_data import sample_context".

@ASEXPIAO
Copy link

You can replace the “from utils.prepare_training_data import sample_context" into the "from generate_vertical_tabert_training_data import sample_context".

You may encounter a "ModuleNotFoundError: No module named 'generate_vertical_tabert_training_data'" error. In that case, please modify the line "from generate_vertical_tabert_training_data import sample_context" to "from utils.generate_vertical_tabert_training_data import sample_context".

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

No branches or pull requests

3 participants