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

Bad file descriptor #267

Open
Zhaoxiaolistudy opened this issue Apr 26, 2021 · 0 comments
Open

Bad file descriptor #267

Zhaoxiaolistudy opened this issue Apr 26, 2021 · 0 comments

Comments

@Zhaoxiaolistudy
Copy link

when i was run “python scripts/pipeline/interactive.py”

04/26/2021 09:38:10 PM: [ CUDA enabled (GPU -1) ]
04/26/2021 09:38:10 PM: [ Initializing pipeline... ]
04/26/2021 09:38:10 PM: [ Initializing document ranker... ]
04/26/2021 09:38:10 PM: [ Loading /home/mist/zxl/DrQA-master/scripts/pipeline/DrQA/data/wikipedia/docs-tfidf-ngram=2-hash=16777216-tokenizer=simple.npz ]
04/26/2021 09:38:41 PM: [ Initializing document reader... ]
04/26/2021 09:38:41 PM: [ Loading model /home/mist/zxl/DrQA-master/scripts/pipeline/DrQA/data/reader/multitask.mdl ]
04/26/2021 09:49:49 PM: [ Initializing tokenizers and document retrievers... ]

Interactive DrQA

process(question, candidates=None, top_n=1, n_docs=5)
usage()

Traceback (most recent call last):
File "scripts/pipeline/interactive.py", line 117, in
code.interact(banner=banner, local=locals())
File "/usr/lib/python3.6/code.py", line 302, in interact
console.interact(banner, exitmsg)
File "/usr/lib/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib/python3.6/code.py", line 275, in raw_input
return input(prompt)
OSError: [Errno 9] Bad file descriptor

how to solve the “OSError: [Errno 9] Bad file descriptor ” ??

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

1 participant