maethu / pdf2img

Python lib, which converts pdf pages into images
5 stars 3 forks source link

Ghostscript Must be X? #1

Open wushuyi opened 9 years ago

wushuyi commented 9 years ago

Create missing storage directory: /home/wushuyi/pdf2img-master/var GPL Ghostscript 9.14: Cannot open X display (null)'. Ghostscript process did not exit cleanly! Error Code: 1 ECreate missing storage directory: /home/wushuyi/pdf2img-master/var GPL Ghostscript 9.14: Cannot open X display(null)'. Ghostscript process did not exit cleanly! Error Code: 1 ECreate missing storage directory: /home/wushuyi/pdf2img-master/var ECreate missing storage directory: /home/wushuyi/pdf2img-master/var GPL Ghostscript 9.14: Cannot open X display (null)'. Ghostscript process did not exit cleanly! Error Code: 1 ECreate missing storage directory: /home/wushuyi/pdf2img-master/var GPL Ghostscript 9.14: Cannot open X display(null)'. Ghostscript process did not exit cleanly! Error Code: 1

E

ERROR: test_converter (main.TestPdf2img)

Traceback (most recent call last): File "tests/test_lib.py", line 57, in test_converter os.path.abspath(PDF_PATH)) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 65, in convert pages = self.count_pages(pdf_file) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 50, in count_pages return int(result) ValueError: invalid literal for int() with base 10: '**\ Unable to open the initial device, quitting.\n'

ERROR: test_count_pages (main.TestPdf2img)

Traceback (most recent call last): File "tests/test_lib.py", line 23, in test_count_pages os.path.abspath(PDF_PATH)) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 50, in count_pages return int(result) ValueError: invalid literal for int() with base 10: '**\ Unable to open the initial device, quitting.\n'

ERROR: test_get_destination_folder (main.TestPdf2img)

Traceback (most recent call last): File "tests/test_lib.py", line 28, in test_get_destination_folder exists, result = self.converter.destination_folder(filehandler) TypeError: destination_folder() takes exactly 1 argument (2 given)

ERROR: test_get_destination_folder_exists (main.TestPdf2img)

Traceback (most recent call last): File "tests/test_lib.py", line 38, in test_get_destination_folder_exists os.path.abspath(PDF_PATH)) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 65, in convert pages = self.count_pages(pdf_file) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 50, in count_pages return int(result) ValueError: invalid literal for int() with base 10: '**\ Unable to open the initial device, quitting.\n'

ERROR: test_get_resources (main.TestPdf2img)

Traceback (most recent call last): File "tests/test_lib.py", line 49, in test_get_resources os.path.abspath(PDF_PATH)) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 65, in convert pages = self.count_pages(pdf_file) File "/usr/lib/python2.7/site-packages/pdf2img-1.0.0-py2.7.egg/pdf2img/init.py", line 50, in count_pages return int(result) ValueError: invalid literal for int() with base 10: '**\ Unable to open the initial device, quitting.\n'


Ran 5 tests in 0.273s

FAILED (errors=5)

maethu commented 9 years ago

@wushuyi Sry for the late answer, but can you post more infos about your system?