LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2011, 08:07 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Rep: Reputation: 49
Trying to install 'PDF-Shuffler' and have a GTK 2.x dependency question


Hello:

The download page (http://gtk-apps.org/content/show.php...?content=90610) says that PDF-Shuffler depends on GTK 2.x

Searching for 'GTK' in sbopkg gives me a big list.

Does anyone know exactly which package I need to install?

Thanks,
 
Old 03-18-2011, 09:18 AM   #2
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
gtk+ 2.x is included in Slackware.

EDIT: On my -current machine:

Code:
[adamk@vm ~]$ ls -la /var/log/packages/gtk+*
-rw-r--r-- 1 root root 10272 Mar  8 13:39 /var/log/packages/gtk+-1.2.10-i486-5
-rw-r--r-- 1 root root 60806 Mar 16 22:37 /var/log/packages/gtk+2-2.24.3-i486-1
 
1 members found this post helpful.
Old 03-18-2011, 09:46 AM   #3
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by adamk75 View Post
gtk+ 2.x is included in Slackware.

EDIT: On my -current machine:

Code:
[adamk@vm ~]$ ls -la /var/log/packages/gtk+*
-rw-r--r-- 1 root root 10272 Mar  8 13:39 /var/log/packages/gtk+-1.2.10-i486-5
-rw-r--r-- 1 root root 60806 Mar 16 22:37 /var/log/packages/gtk+2-2.24.3-i486-1
Thanks adamk75, it is on my machine too!
 
Old 03-18-2011, 10:47 AM   #4
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
As I said, I'm trying to install PDF Shuffler but I don't think that I am doing it correctly because, although the PDF Shuffler icon appears in my 'Office' menu, nothing happens when I click on it.

Here is what I did:
  1. Downloaded and extracted: pdfshuffler-0.5.1 (1).tar.gz
  2. Ran:
    Code:
    root@slackbox:/home/rob/pdfshuffler-0.5.1# python setup.py install
  3. Here is the Konsole output:
    Code:
    root@slackbox:/home/rob# cd pdfshuffler-0.5.1
    root@slackbox:/home/rob/pdfshuffler-0.5.1# python setup.py install
    running install
    running build
    running build_scripts
    creating build
    creating build/scripts-2.6
    copying and adjusting pdfshuffler -> build/scripts-2.6
    changing mode of build/scripts-2.6/pdfshuffler from 644 to 755
    running install_scripts
    copying build/scripts-2.6/pdfshuffler -> /usr/bin
    changing mode of /usr/bin/pdfshuffler to 755
    running install_data
    copying mo/es/LC_MESSAGES/pdfshuffler.mo -> /usr/share/locale/es/LC_MESSAGES/
    copying mo/it/LC_MESSAGES/pdfshuffler.mo -> /usr/share/locale/it/LC_MESSAGES/
    copying mo/fr/LC_MESSAGES/pdfshuffler.mo -> /usr/share/locale/fr/LC_MESSAGES/
    copying mo/cs/LC_MESSAGES/pdfshuffler.mo -> /usr/share/locale/cs/LC_MESSAGES/
    copying mo/el/LC_MESSAGES/pdfshuffler.mo -> /usr/share/locale/el/LC_MESSAGES/
    copying mo/de/LC_MESSAGES/pdfshuffler.mo -> /usr/share/locale/de/LC_MESSAGES/
    running install_egg_info
    Removing /usr/lib/python2.6/site-packages/pdfshuffler-0.5-py2.6.egg-info
    Writing /usr/lib/python2.6/site-packages/pdfshuffler-0.5-py2.6.egg-info
    root@slackbox:/home/rob/pdfshuffler-0.5.1#

But the PDF Shuffle icon launches nothing.

Does anyone know what I am doing wrong?

Thanks,

Last edited by Robert.Thompson; 03-18-2011 at 10:48 AM. Reason: typo
 
Old 03-18-2011, 10:57 AM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Run it from an xterm and see what error(s) you get.

Adam
 
1 members found this post helpful.
Old 03-18-2011, 11:08 AM   #6
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by adamk75 View Post
Run it from an xterm and see what error(s) you get.

Adam
Here is my Konsole output:
Code:
root@slackbox:/# pdfshuffler
No protocol specified
/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 68, in <module>
    import poppler      #for the rendering of pdf pages
ImportError: No module named poppler
root@slackbox:/#
Do you understand it?

Thanks,
 
Old 03-18-2011, 11:11 AM   #7
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Well, first, don't run it as root.

Second, you need the poppler python bindings.

Adam
 
1 members found this post helpful.
Old 03-18-2011, 11:27 AM   #8
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by adamk75 View Post
Well, first, don't run it as root.

Second, you need the poppler python bindings.

Adam
Hi Adam:

I installed the pypoppler (0.12.1) Slackbuild; re-ran the install. Here is what displays when run from Konsole:
Code:
root@slackbox:/home/rob/pdfshuffler-0.5.1# pdfshuffler
No protocol specified
/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/lib/python2.6/site-packages/pyPdf/pdf.py:52: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet
Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 71, in <module>
    class PDFshuffler:
  File "/usr/bin/pdfshuffler", line 76, in PDFshuffler
    'window width': min (700, gtk.gdk.screen_get_default().get_width() / 2 ),
AttributeError: 'NoneType' object has no attribute 'get_width'
root@slackbox:/home/rob/pdfshuffler-0.5.1#
Things seem to be going from bad to worse!

Any help w/b appreciated.
 
Old 03-18-2011, 11:36 AM   #9
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
What part of don't run it as root did you not understand? The application can't connect to an X server being run as your normal user.

Adam
 
1 members found this post helpful.
Old 03-18-2011, 11:38 AM   #10
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
Hi Adam:

Installed the pyPdf Slackbuild and all seems well!

Thanks for your time and help.
 
Old 03-18-2011, 11:39 AM   #11
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by adamk75 View Post
What part of don't run it as root did you not understand? The application can't connect to an X server being run as your normal user.

Adam
Sorry.

Thanks again.
 
Old 03-18-2011, 12:19 PM   #12
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally Posted by Robert.Thompson View Post
The download page (http://gtk-apps.org/content/show.php...?content=90610) says that PDF-Shuffler depends on GTK 2.x

Searching for 'GTK' in sbopkg gives me a big list.
Just to get back to this: 'slackpkg search gtk' is what you want for this (or 'ls /var/log/packages/*gtk*' if you have everything installed). Slackpkg is for official Slackware packages and sbopkg is for SBo/3rd party additions. If you don't know which is which (which figures, if you're searching for it) then don't forget to check both ways.
 
1 members found this post helpful.
Old 03-18-2011, 12:49 PM   #13
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 17.3 Rosa 64 bit
Posts: 589

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by slakmagik View Post
Just to get back to this: 'slackpkg search gtk' is what you want for this (or 'ls /var/log/packages/*gtk*' if you have everything installed). Slackpkg is for official Slackware packages and sbopkg is for SBo/3rd party additions. If you don't know which is which (which figures, if you're searching for it) then don't forget to check both ways.
Thank you slakmagik!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF-Shuffler rizitis Slackware 1 04-21-2010 09:34 AM
GTK dependency when ./configuring package on RHEL4 Juzzam Linux - Enterprise 3 01-03-2007 11:41 PM
gtk and dependency hell perryub Linux - Software 7 07-25-2005 11:54 AM
Dependency issues with gtk+ gvaught Linux - Software 2 04-22-2004 08:09 PM
GTK+ dependency problems Jiawen Linux - General 4 09-28-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration