-
Notifications
You must be signed in to change notification settings - Fork 127
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
already installed tensort not working still #67
Comments
Did you get any solution for this issue? I am also facing the same issue |
Hi that is just a warning, I had to downgrade my transformer version to 4.23 and it started working in my case |
hii document-question-answering is already registered. Overwriting pipeline for task document-question-answering... |
@shikhasingh1797 |
Hello Sir
I implemented above solution but did not worked for me
(doc) PS D:\docquery> python
>
Python 3.7.16 (default, Jan 17 2023, 16:06:28) [MSC v.1916 64 bit (AMD64)]
:: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>> import transformers
>>
>> print(transformers.__version__)
4.23.0
>>
(base) PS D:\docquery> conda activate doc
(doc) PS D:\docquery> docquery scan "What is the #1 post's title?"
website.html
>
document-question-answering is already registered. Overwriting pipeline for
task document-question-answering...
WARNING:root:Unable to find tesseract: tesseract is not installed or it's
not in your PATH. See README file for more information..
Traceback (most recent call last):
File "C:\Users\N_B\Miniconda3\envs\doc\lib\runpy.py", line 193, in
_run_module_as_main
"__main__", mod_spec)
File "C:\Users\N_B\Miniconda3\envs\doc\lib\runpy.py", line 85, in
_run_code
exec(code, run_globals)
File "C:\Users\N_B\Miniconda3\envs\doc\Scripts\docquery.exe\__main__.py",
line 7, in <module>
File
"C:\Users\N_B\Miniconda3\envs\doc\lib\site-packages\docquery\cmd\__main__.py",
line 61, in main
return args.func(args)
File
"C:\Users\N_B\Miniconda3\envs\doc\lib\site-packages\docquery\cmd\scan.py",
line 67, in main
docs.append((p, load_document(str(p), ocr_reader=args.ocr,
use_embedded_text=args.use_embedded_text)))
File "pydantic\decorator.py", line 40, in
pydantic.decorator.validate_arguments.validate.wrapper_function
File "pydantic\decorator.py", line 134, in
pydantic.decorator.ValidatedFunction.call
File "pydantic\decorator.py", line 206, in
pydantic.decorator.ValidatedFunction.execute
File
"C:\Users\N_B\Miniconda3\envs\doc\lib\site-packages\docquery\document.py",
line 261, in load_document
return WebDocument(fpath)
File
"C:\Users\N_B\Miniconda3\envs\doc\lib\site-packages\docquery\document.py",
line 193, in __init__
self.driver = get_webdriver()
File
"C:\Users\N_B\Miniconda3\envs\doc\lib\site-packages\docquery\web.py", line
128, in get_webdriver
WEB_DRIVER = WebDriver()
File
"C:\Users\N_B\Miniconda3\envs\doc\lib\site-packages\docquery\web.py", line
34, in __init__
"Web imports are unavailable. You must install the [web] extra and
chrome or" " chromium system-wide."
ValueError: Web imports are unavailable. You must install the [web] extra
and chrome or chromium system-wide.
(doc) PS D:\docquery>
Thanks & Regards
Shikha Singh
…On Fri, Nov 17, 2023 at 9:55 AM Anurag Kumar Jha ***@***.***> wrote:
@shikhasingh1797 <https://github.com/shikhasingh1797>
Try downgrading the Transformer version to 4.23 and restarting the
environment. It worked in my case.
You can also refer to the code in this link as to the situation in which
the error is coming so maybe u can correct it from there .
https://github.com/impira/docquery/blob/main/src/docquery/web.py
<http://url>
—
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASFO743YCCGWLJL3LR5S3WLYE3RLLAVCNFSM6AAAAAAZKMDKLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJVG4ZDSMBZGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
2023-06-17 18:30:01.207852: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
i am working on google collab
i also get an error when i use pipeline.getpipline
says its an attribute error and that the object doesn't have such a method
The text was updated successfully, but these errors were encountered: