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

Tables.json not found? #5

Open
premshanker-ai opened this issue Oct 10, 2022 · 2 comments
Open

Tables.json not found? #5

premshanker-ai opened this issue Oct 10, 2022 · 2 comments

Comments

@premshanker-ai
Copy link

Love this project however when I try to run it, I get this error

PS: Running this in colab pro

2022-10-10 19:45:42.737414: E tensorflow/stream_executor/cuda/cuda_driver.cc:271] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
DEBUG:semparser.common.registry:instantiating rat_new_sl of preprocessor
DEBUG:semparser.common.registry:instantiating spider of transition_system
DEBUG:semparser.common.registry:instantiating asdl of grammar
Creating schema with meta...
ERROR:root:[' File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main\n "main", mod_spec)\n', ' File "/usr/lib/python3.7/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n', ' File "/content/DT-Fixup/spider/semparser/run.py", line 122, in \n logger.error(traceback.format_stack())\n']
10/10/2022 07:45:45 [' File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main\n "main", mod_spec)\n', ' File "/usr/lib/python3.7/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n', ' File "/content/DT-Fixup/spider/semparser/run.py", line 122, in \n logger.error(traceback.format_stack())\n']
ERROR:root:Traceback (most recent call last):
File "/content/DT-Fixup/spider/semparser/run.py", line 103, in
argument_resolver.resolve_argument(config['PREPROCESSOR'])
File "/content/DT-Fixup/spider/semparser/common/argument_resolver.py", line 36, in resolve_argument
return resolve_argument(argument_dict, caller)
File "/content/DT-Fixup/spider/semparser/common/argument_resolver.py", line 56, in resolve_argument
return caller(**resolved_arguments)
File "/content/DT-Fixup/spider/semparser/modules/semantic_parser/preprocessor/rat_new_sl.py", line 188, in prepare_data
schema_with_db_meta = update_schemas_with_meta(raw_schema, database_folder)
File "/content/DT-Fixup/spider/semparser/modules/alanschema/scripts/generate_schema_with_db_meta.py", line 111, in update_schemas_with_meta
with open(table_fpath, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'spider/tables.json'

10/10/2022 07:45:45 Traceback (most recent call last):
File "/content/DT-Fixup/spider/semparser/run.py", line 103, in
argument_resolver.resolve_argument(config['PREPROCESSOR'])
File "/content/DT-Fixup/spider/semparser/common/argument_resolver.py", line 36, in resolve_argument
return resolve_argument(argument_dict, caller)
File "/content/DT-Fixup/spider/semparser/common/argument_resolver.py", line 56, in resolve_argument
return caller(**resolved_arguments)
File "/content/DT-Fixup/spider/semparser/modules/semantic_parser/preprocessor/rat_new_sl.py", line 188, in prepare_data
schema_with_db_meta = update_schemas_with_meta(raw_schema, database_folder)
File "/content/DT-Fixup/spider/semparser/modules/alanschema/scripts/generate_schema_with_db_meta.py", line 111, in update_schemas_with_meta
with open(table_fpath, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'spider/tables.json'

Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/content/DT-Fixup/spider/semparser/run.py", line 124, in
raise ex
File "/content/DT-Fixup/spider/semparser/run.py", line 103, in
argument_resolver.resolve_argument(config['PREPROCESSOR'])
File "/content/DT-Fixup/spider/semparser/common/argument_resolver.py", line 36, in resolve_argument
return resolve_argument(argument_dict, caller)
File "/content/DT-Fixup/spider/semparser/common/argument_resolver.py", line 56, in resolve_argument
return caller(**resolved_arguments)
File "/content/DT-Fixup/spider/semparser/modules/semantic_parser/preprocessor/rat_new_sl.py", line 188, in prepare_data
schema_with_db_meta = update_schemas_with_meta(raw_schema, database_folder)
File "/content/DT-Fixup/spider/semparser/modules/alanschema/scripts/generate_schema_with_db_meta.py", line 111, in update_schemas_with_meta
with open(table_fpath, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'spider/tables.json'

@billy-inn
Copy link
Collaborator

Have you run python prepare_data.py?

@premshanker-ai
Copy link
Author

Thanks a lott for the prompt reply! I actually ran it however the spider data was not downloaded as there is a zip error. I have manually loaded and unzipped the data so now it's good!

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