问题描述
Traceback (most recent call last):
File "C:\Users\Balmeet\PycharmProjects\text&checkBox\venv\lib\site-packages\pdf2image\pdf2image.py",line 441,in pdfinfo_from_path
proc = Popen(command,env=env,stdout=PIPE,stderr=PIPE)
File "C:\Users\Balmeet\AppData\Local\Programs\Python\Python37\lib\subprocess.py",line 756,in __init__
restore_signals,start_new_session)
File "C:\Users\Balmeet\AppData\Local\Programs\Python\Python37\lib\subprocess.py",line 1155,in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception,another exception occurred:
Traceback (most recent call last):
File "C:/Users/Balmeet/PycharmProjects/tables/final.py",line 470,in <module>
pdf2img2.convert_to_image(pdf_file)
File "C:\Users\Balmeet\PycharmProjects\tables\pdf2img2.py",line 42,in convert_to_image
pages = convert_from_path(pdf_file,600)
File "C:\Users\Balmeet\PycharmProjects\text&checkBox\venv\lib\site-packages\pdf2image\pdf2image.py",line 97,in convert_from_path
page_count = pdfinfo_from_path(pdf_path,userpw,poppler_path=poppler_path)["Pages"]
File "C:\Users\Balmeet\PycharmProjects\text&checkBox\venv\lib\site-packages\pdf2image\pdf2image.py",line 468,in pdfinfo_from_path
"Unable to get page count. Is poppler installed and in PATH?"
pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
我已按照类似帖子中提到的步骤操作并为 poppler 设置了路径,但仍然出现此错误 提前致谢:)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)