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

FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #30

Closed
empty2enrich opened this issue Oct 12, 2018 · 2 comments
Closed

Comments

@empty2enrich
Copy link

hello, thank you for your script, but i get this error when use pdf2image:

f_o = open(file_name_path, 'rb') # Debug shows that the file was read correctly
images = convert_from_bytes(f_o.read())

Complete error :

  File ".../test.py", line 21, in <module>
    images = convert_from_bytes(f_o.read())
  File "...\lib\site-packages\pdf2image\pdf2image.py", line 90, in convert_from_bytes
    return convert_from_path(f.name, dpi=dpi, output_folder=output_folder, first_page=first_page, last_page=last_page, fmt=fmt, thread_count=thread_count, userpw=userpw)
  File "...\lib\site-packages\pdf2image\pdf2image.py", line 29, in convert_from_path
    page_count = __page_count(pdf_path, userpw)
  File "...\lib\site-packages\pdf2image\pdf2image.py", line 158, in __page_count
    proc = Popen(["pdfinfo", pdf_path], stdout=PIPE, stderr=PIPE)
  File "...\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "...\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
@Belval
Copy link
Owner

Belval commented Oct 18, 2018

Hi!

What is your OS?
If you open a terminal/cmd, can you execute pdfinfo?

@Belval
Copy link
Owner

Belval commented Nov 21, 2018

Closing for lack of activity.

@Belval Belval closed this as completed Nov 21, 2018
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