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

'Document' object has no attribute 'getToC' #5

Open
Wizarzz opened this issue Sep 11, 2024 · 1 comment
Open

'Document' object has no attribute 'getToC' #5

Wizarzz opened this issue Sep 11, 2024 · 1 comment

Comments

@Wizarzz
Copy link

Wizarzz commented Sep 11, 2024

python版本:3.12
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Python312\Scripts\nyquisis.exe_main
.py", line 7, in
File "C:\Python312\Lib\site-packages\nyquisis\nyquisis.py", line 173, in main
drop_duplicates(fpath, output=output)
File "C:\Python312\Lib\site-packages\nyquisis\nyquisis.py", line 120, in drop_duplicates
toc = file.getToC()
^^^^^^^^^^^
AttributeError: 'Document' object has no attribute 'getToC'. Did you mean: 'get_oc'?

@Enoch2090
Copy link
Owner

Probably due to fitz(PyMuPDF)'s API changes. Will try to fix dependencies when I'm avaliable

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

2 participants