Pdfplumber ImportError: не удалось загрузить DLL при импорте _rust: указанная процедура не найденаPython

Программы на Python
Anonymous
Pdfplumber ImportError: не удалось загрузить DLL при импорте _rust: указанная процедура не найдена

Сообщение Anonymous »

Я конвертирую текст в речь, используя pdfplumber для извлечения текста, но получаю ошибку.
from cryptography.hazmat.bindings.\_rust import exceptions as rust_exceptions
ImportError: DLL load failed while importing \_rust: The specified procedure could not be found.

Также я спросил чат-gpt, он скажет установить ржавчину. Мне действительно нужно это скачивать?
import pdfplumber as pdfplumber

import tkinter as tk

def extract_text_from_pdf(pdf_path):
text = ""
with pdfplumber.open(pdf_path) as pdf:
for page in pdf.pages:
text += page.extract_text()
return text

t = extract_text_from_pdf("game_doc.pdf")
print(t)


Подробнее здесь: https://stackoverflow.com/questions/786 ... cified-pro

Вернуться в «Python»