Averell7 / PdfBooklet

Creates booklets from Pdf files, and much more
45 stars 13 forks source link

Problems installing pdfbooklet on Devuan Jessie 64 #10

Closed nazmifr closed 5 years ago

nazmifr commented 6 years ago

Hi,

I tried installing today, I did as follows:

1) git clone the main branch 2) sudo apt-get install python-gtk2 python-poppler 3) sudo python setup.py install

Everything seemed to go fine

4) pdfbooklet

First error, it didn't want to start because apparently poppler wasn't available:

ValueError: Namespace Poppler not available

I searched on google and found this: link so I installed gir1.2-poppler-0.18

Now I have:

2.7.9 (default, Jun 29 2016, 13:08:31) 
[GCC 4.9.2]
Error: Could not import pdfbooklet
Cause: No module named PyPDF2_G

Do you have an idea of what might be wrong?

I found this guy link the problem seems similar though I'm no dev, I don't know what to fix

Thanks in advance for any help and thanks for your program that seems to be awesome.

Averell7 commented 6 years ago

Hello, sorry for the late answer, Linux support is poor, unfortunately because I had not a Linux box. I just installed a Rasperry PI 3B+ and it is now much easier to check. Probably the best solution to install on debian would be to use the .deb file of the 3.0.4 version, on https://sourceforge.net/projects/pdfbooklet/files In my install on the Raspberry (which has a small debian), python files are installed in :

/usr/local/lib/python2.7/dist-packages/pdfbooklet 

And there must be a subdirectory PyPDF2_G with the corresponding library inside. I am not sure if the setup you have done has copied it correctly. It is a modified version of the PyPDF2 module which was too slow for merging pages. pdfbooklet does not use PyPdf or PyPDF2

I will check the setup.py file.

Note that normally pdfbooklet 3.x.x runs in python 3, but it is compatible with 2.7. Here are all the dependencies (for python 2.7 and python 3).

python3-cairo, python-gobject-cairo, python-gi-cairo, python3-gi, gir1.2-gtk-3.0, gir1.2-poppler-0.18
nazmifr commented 6 years ago

Hi, Sorry on my side too, I had exams.

Too bad about that because your program seems awesome, I used the command line utility pdfjam to print the thing I had to print but if you want some feedback I'd be glad to help documenting the use of PDFBooklet on linux.

I tried reinstalling the dependencies, I didn't have python-gi-cairo python3-cairo python3-gi

Then I installed version 3.0.4 on your sourceforge repository:

At first the program didn't run because it was trying to write a file in /usr/share/pdfbooklet/pdfbooklet.cfg which is write protected so I used sudo

Now it works even without sudo of course !!!!

Thanks for your help, if you need feedback, tell me.

Averell7 commented 6 years ago

It would be great if you could help me to write a text for Linux users about the known problems in Linux, and how to overcome them. And also help me test the new versions. You can write me directly on : dy1977@orange.fr, it will be easier. Thanks