Belval / pdf2image

A python module that wraps the pdftoppm utility to convert PDF to PIL Image object
MIT License
1.51k stars 187 forks source link

pdf2image 1.16.1: Import error on Windows: No module named 'posix' #249

Closed bladerail closed 1 year ago

bladerail commented 1 year ago

Describe the bug Import error on Windows: No module named 'posix'

The posix module does not come built-in with Python on the Windows OS. Version 1.16.0 works ok, but version 1.16.1 does not.

To Reproduce Steps to reproduce the behavior:

  1. pip install pdf2image==1.16.1
  2. from pdf2image import convert_from_path
  3. Run the above script
  4. Get ModuleNotFoundError: No module named 'posix'

Expected behavior Import should work as intended

Desktop (please complete the following information):

Additional context pip install pdf2image==1.16.0 works correctly because the change to pdf2image/pdf2image.py line 8 was done in 1.16.1.

Belval commented 1 year ago

Looking into it.

Belval commented 1 year ago

Fixed in 1.16.2, thank you for raising this issue. I will pull the previous package from PyPI.