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

Not able to run sample code #23

Closed
panddu15 opened this issue Jun 20, 2020 · 14 comments
Closed

Not able to run sample code #23

panddu15 opened this issue Jun 20, 2020 · 14 comments

Comments

@panddu15
Copy link

Hi, I am stuck at result path in sample code it throwing following error
[Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv'
I even checked in result folder i did not find the test_sequence.tsv file

@nopper
Copy link
Collaborator

nopper commented Jun 24, 2020

Hi @panddu15,

Can you provide more context and also paste the command you used, so we can try to reproduce the error from our side?

@panddu15
Copy link
Author

panddu15 commented Jun 24, 2020

Hi @panddu15,

Can you provide more context and also paste the command you used, so we can try to reproduce the error from our side?

---> 18 with open(results_path) as csvfile:
19 reader = csv.DictReader(csvfile, delimiter='\t')
20 for row in reader:

FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv'

@nopper
Copy link
Collaborator

nopper commented Jun 24, 2020

Hi @panddu15,

Can you include the full command line you used that actually triggered the exception? And possibly explain what you are trying to do?

@muelletm
Copy link
Contributor

test_sequence.tsv should be output when you run the prediction for an SQA model.
Can you share how you ran the prediction job?

@panddu15
Copy link
Author

Hi, I was just trying to run the sample code and i did not do any changes in the code
Note: i am running on it AWS machine where tapas is installed in root and i am accessing jupyter from user.

tapas_error

@mdmustafizurrahman
Copy link

One question SQA task does not support COUNT,AVERAGE, MAX etc. For that we need WikiTable Task right. But as I mentioned multiple times, for none of your pretrained model you provided, WikiTable task is not working. Please kindly clarify or kindly provide a model trained on WikiTable.

@muelletm
Copy link
Contributor

muelletm commented Jun 26, 2020

@mdmustafizurrahman, yes we currently don't provide a model that supports COUNT or AVERAGE (MAX is implicit so it should work). I'll see if we can release the WTQ or WikiSQL model.

@panddu15, there must be another error before that. The actual prediction job seems to be failing or somehow it's configured to don't run the sequence prediction. Can you check if you are running with CPU or GPU?

@mdmustafizurrahman
Copy link

@muelletm I would really appreciate if you could release WTQ

@panddu15
Copy link
Author

@muelletm I was running on CPU and there is no error prior to this.

@sbhttchryy
Copy link

Hello @muelletm I too am facing the same error when trying to run the Colab notebook

@ghost
Copy link

ghost commented Aug 6, 2020

The WTQ model was released today. Closing feel free to reopen if there is still an issue with the colab.

@ghost ghost closed this as completed Aug 6, 2020
@sophgit
Copy link

sophgit commented Dec 9, 2020

I somehow managed to ruin my installed packages . Now I'm trying to do the tapas installation (Ubuntu 20.04) all over again and received the exact same error as described above (except for WTQ instead of SQA).: FileNotFoundError: [Errno 2] No such file or directory: 'results/wtq/model/test_sequence.tsv'
No GPU. It did not create the test_sequence.tsv file. Any idea how to solve this?

@ghost
Copy link

ghost commented Dec 9, 2020

That's odd, there should be no test_sequence.tsv for WTQ just test.tsv.

Can you share how you ran this?
And maybe also a stack trace?

@ghost ghost reopened this Dec 9, 2020
@sophgit
Copy link

sophgit commented Dec 9, 2020

oh, so sorry, yes, the Error was: FileNotFoundError: [Errno 2] No such file or directory: 'results/wtq/model/test.tsv'

installed tapas with pip install ./tapas/ and there were no errors until the prediction, where it didn't find the test.tsv, because it simply didn't create it.
I managed to "solve" the problem by shutting all notebooks and Ubuntu down and then running the same line pip install ./tapas/ again... not sure what caused or solved the problem, but now it works.
Thank you anyhow!!

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

7 participants