You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Question]: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.1.0)/charset_normalizer (3.1.0) doesn't match a supported version! ImportError cannot import name 'inference' from 'paddle'
#5421
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.
/Library/Python/3.9/site-packages/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.1.0)/charset_normalizer (3.1.0) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
Traceback (most recent call last):
File "/Users/moncheri/Downloads/PaddleNLP-develop/applications/question_answering/unsupervised_qa/run_pipelines_example.py", line 19, in
from pipelines.document_stores import FAISSDocumentStore
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/init.py", line 39, in
from pipelines import pipelines, utils
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/pipelines/init.py", line 15, in
from pipelines.pipelines.base import Pipeline, RootNode
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/pipelines/base.py", line 52, in
from pipelines.nodes.base import BaseComponent # isort: skip
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/nodes/init.py", line 15, in
from pipelines.utils.import_utils import safe_import # isort: skip
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/utils/init.py", line 15, in
from pipelines.utils.preprocessing import convert_files_to_dicts, tika_convert_files_to_dicts
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/utils/preprocessing.py", line 21, in
from pipelines.nodes.file_converter import (
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/nodes/file_converter/init.py", line 36, in
from pipelines.nodes.file_converter.image import ImageToTextConverter
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/nodes/file_converter/image.py", line 21, in
from paddleocr import PaddleOCR
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddleocr/paddleocr.py", line 37, in
from tools.infer import predict_system
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddleocr/tools/infer/predict_system.py", line 31, in
import tools.infer.utility as utility
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddleocr/tools/infer/utility.py", line 24, in
from paddle import inference
ImportError: cannot import name 'inference' from 'paddle' (/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddle/init.py)
The text was updated successfully, but these errors were encountered:
请提出你的问题
/Library/Python/3.9/site-packages/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.1.0)/charset_normalizer (3.1.0) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
Traceback (most recent call last):
File "/Users/moncheri/Downloads/PaddleNLP-develop/applications/question_answering/unsupervised_qa/run_pipelines_example.py", line 19, in
from pipelines.document_stores import FAISSDocumentStore
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/init.py", line 39, in
from pipelines import pipelines, utils
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/pipelines/init.py", line 15, in
from pipelines.pipelines.base import Pipeline, RootNode
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/pipelines/base.py", line 52, in
from pipelines.nodes.base import BaseComponent # isort: skip
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/nodes/init.py", line 15, in
from pipelines.utils.import_utils import safe_import # isort: skip
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/utils/init.py", line 15, in
from pipelines.utils.preprocessing import convert_files_to_dicts, tika_convert_files_to_dicts
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/utils/preprocessing.py", line 21, in
from pipelines.nodes.file_converter import (
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/nodes/file_converter/init.py", line 36, in
from pipelines.nodes.file_converter.image import ImageToTextConverter
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/pipelines/nodes/file_converter/image.py", line 21, in
from paddleocr import PaddleOCR
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddleocr/paddleocr.py", line 37, in
from tools.infer import predict_system
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddleocr/tools/infer/predict_system.py", line 31, in
import tools.infer.utility as utility
File "/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddleocr/tools/infer/utility.py", line 24, in
from paddle import inference
ImportError: cannot import name 'inference' from 'paddle' (/Users/moncheri/Library/Python/3.9/lib/python/site-packages/paddle/init.py)
The text was updated successfully, but these errors were encountered: