Open Satwikram opened 3 years ago
Hi Satwik,
1- For the error ModuleNotFoundError: No module named 'tapas.retrieval' It seems that the TAPAS project hasn't been imported correctly. Can you try using these command lines at the beginning of the colab to clone and install the repository ?
Clone and install the repository
! sudo apt-get install protobuf-compiler ! git clone https://github.com/google-research/tapas ! pip install -e ./tapas
Make sure to restart the environment before running the command lines.
Sometimes you may have a warning message similar to: [image: image.png] please click on restart runtime and rerun the colab.
2- For the error FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv' It seems that the prediction didn't run at all so no file "results/sqa/model/test_sequence.tsv" was created. If this error percist can you remove " 2> error" from the script to look at the model output: (If it is loaded correctly / if predict runs correctly....)
On Fri, Jul 2, 2021 at 8:25 AM Satwik Ram @.***> wrote:
Running on Google colab with python version 3.7.10.
Getting Error message like:
FileNotFoundError Traceback (most recent call last) in () ----> 1 result = predict(list_of_list, ["What is Total runs scored by Virat Kholi"])
in predict(table_data, queries) 51 display(IPython.display.HTML(df.to_html(index=False))) 52 print() ---> 53 with open(results_path) as csvfile: 54 reader = csv.DictReader(csvfile, delimiter='\t') 55 for row in reader:
FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv'
Also in there is an error file. In that the message is:
Traceback (most recent call last):
File "tapas/tapas/run_task_main.py", line 32, in from tapas.retrieval import e2e_eval_utils ModuleNotFoundError: No module named 'tapas.retrieval'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google-research/tapas/issues/126, or unsubscribe https://github.com/notifications/unsubscribe-auth/APARZOJAD4GOD4KWLXKUOPTTVVLXBANCNFSM47WCUQ3A .
Sorry the image seems not working. Here is the displayed message: WARNING: The following packages were previously imported in this runtime: [numpy] You must restart the runtime in order to use newly installed versions. [RESTART RUNTIME]
On Fri, Jul 9, 2021 at 10:05 AM Syrine Krichene @.***> wrote:
Hi Satwik,
1- For the error ModuleNotFoundError: No module named 'tapas.retrieval' It seems that the TAPAS project hasn't been imported correctly. Can you try using these command lines at the beginning of the colab to clone and install the repository ?
Clone and install the repository
! sudo apt-get install protobuf-compiler ! git clone https://github.com/google-research/tapas ! pip install -e ./tapas
Make sure to restart the environment before running the command lines.
Sometimes you may have a warning message similar to: [image: image.png] please click on restart runtime and rerun the colab.
2- For the error FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv' It seems that the prediction didn't run at all so no file "results/sqa/model/test_sequence.tsv" was created. If this error percist can you remove " 2> error" from the script to look at the model output: (If it is loaded correctly / if predict runs correctly....)
On Fri, Jul 2, 2021 at 8:25 AM Satwik Ram @.***> wrote:
Running on Google colab with python version 3.7.10.
Getting Error message like:
FileNotFoundError Traceback (most recent call last) in () ----> 1 result = predict(list_of_list, ["What is Total runs scored by Virat Kholi"])
in predict(table_data, queries) 51 display(IPython.display.HTML(df.to_html(index=False))) 52 print() ---> 53 with open(results_path) as csvfile: 54 reader = csv.DictReader(csvfile, delimiter='\t') 55 for row in reader:
FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv'
Also in there is an error file. In that the message is:
Traceback (most recent call last):
File "tapas/tapas/run_task_main.py", line 32, in from tapas.retrieval import e2e_eval_utils ModuleNotFoundError: No module named 'tapas.retrieval'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google-research/tapas/issues/126, or unsubscribe https://github.com/notifications/unsubscribe-auth/APARZOJAD4GOD4KWLXKUOPTTVVLXBANCNFSM47WCUQ3A .
No, Even after restart it's not working.
Running on Google colab with python version 3.7.10.
Getting Error message like:
FileNotFoundError Traceback (most recent call last) in () ----> 1 result = predict(list_of_list, ["What is Total runs scored by Virat Kholi"])
in predict(table_data, queries) 51 display(IPython.display.HTML(df.to_html(index=False))) 52 print() ---> 53 with open(results_path) as csvfile: 54 reader = csv.DictReader(csvfile, delimiter='\t') 55 for row in reader:
FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv'
Also in there is an error file. In that the message is:
Traceback (most recent call last):
File "tapas/tapas/run_task_main.py", line 32, in from tapas.retrieval import e2e_eval_utils ModuleNotFoundError: No module named 'tapas.retrieval'