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

already installed tensort not working still #67

Open
Achinth04 opened this issue Jun 17, 2023 · 6 comments
Open

already installed tensort not working still #67

Achinth04 opened this issue Jun 17, 2023 · 6 comments

Comments

@Achinth04
Copy link

Achinth04 commented Jun 17, 2023

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

@AnuragJha003
Copy link

Did you get any solution for this issue? I am also facing the same issue

@pararthdave
Copy link

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

Hi that is just a warning, I had to downgrade my transformer version to 4.23 and it started working in my case

@shikhasingh1797
Copy link

hii
(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...
2023-11-17 08:06:58,947 INFO: Loading website.html
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
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>

@AnuragJha003
Copy link

@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

@shikhasingh1797
Copy link

shikhasingh1797 commented Nov 17, 2023 via email

@akashbiztechcs
Copy link

I was also facing the same issue but after apply the mentioned solution above To downgrade the Transformer it also worked for me.
Here is the SS of the downgrade Transformer :
image

And here is the Actual execution of docquery. I know there is still error is showing but the good things is that now doc query is executing successfully.
image

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

5 participants