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

请问遇到这个报错怎么解决 #8

Open
JIANG54864 opened this issue Apr 12, 2022 · 1 comment
Open

请问遇到这个报错怎么解决 #8

JIANG54864 opened this issue Apr 12, 2022 · 1 comment

Comments

@JIANG54864
Copy link

Error in transfer html to pdf
'sh' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

@JIANG54864
Copy link
Author

补充:
Traceback (most recent call last):
File "G:\science\program\python\main.py", line 78, in merge_pdf_core
next_pdf_file = PdfFileReader(open(f, "rb"))
FileNotFoundError: [Errno 2] No such file or directory: './pdfs/HTML_教程.pdf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\science\program\python\main.py", line 163, in
main()
File "G:\science\program\python\main.py", line 153, in main
get_and_merge(dic_total[fold][link],link)
File "G:\science\program\python\main.py", line 116, in get_and_merge
merge_pdfs(DIC,chapter_name)
File "G:\science\program\python\main.py", line 61, in merge_pdfs
merge_pdf_core(chapter_name,filenames)
File "G:\science\program\python\main.py", line 83, in merge_pdf_core
print >>sys.stderr, "%s could not be found." % f
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'. Did you mean "print(, file=<output_stream>)"?

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

1 participant