LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-01-2012, 04:28 AM   #1
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 78

Rep: Reputation: 27
calibre AlienBob's package doesn't run anymore on -current


Hi

I occasionally run ebokk-viewer from calibre on Slackware64-current. I'm using AlienBob's package and I follow his weekly updates.
However it doesn't run anymore since the last big -current update.
The culprit looks to be the ImageMagick:

Code:
$ calibre
Traceback (most recent call last):
  File "/usr/bin/calibre", line 19, in <module>
    from calibre.gui2.main import main
  File "/usr/lib64/calibre/calibre/gui2/main.py", line 18, in <module>
    from calibre.library.database2 import LibraryDatabase2
  File "/usr/lib64/calibre/calibre/library/database2.py", line 39, in <module>
    from calibre.utils.magick.draw import save_cover_data_to
  File "/usr/lib64/calibre/calibre/utils/magick/__init__.py", line 15, in <module>
    raise RuntimeError('Failed to load ImageMagick: '+_merr)
RuntimeError: Failed to load ImageMagick: libMagickWand.so.4: cannot open shared object file: No such file or directory
I discovered it with calibre 0.8.53, and it's still there with this week 0.8.54 update.

I'll try to rebuild the package myself later, I'll let you know if it's enough.

I hope AlienBob will find a way to make a one package compatible with both versions

Cheers
 
Old 06-01-2012, 05:14 AM   #2
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 78

Original Poster
Rep: Reputation: 27
First run is a NO-GO

I copied the build/ directory and ran as root
Code:
TAG=lse sh calibre.SalckBuild
I end up with the following error
Code:
####### Building extension progress_indicator #######

*
* Running gui
*

        Compiling form /tmp/build/tmp-calibre/calibre/src/calibre/gui2/shortcuts.ui
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/tmp/build/tmp-calibre/calibre/setup/__init__.py", line 163, in run_all
    self.run_cmd(self, opts)
  File "/tmp/build/tmp-calibre/calibre/setup/__init__.py", line 156, in run_cmd
    self.run_cmd(scmd, opts)
  File "/tmp/build/tmp-calibre/calibre/setup/__init__.py", line 159, in run_cmd
    cmd.run(opts)
  File "/tmp/build/tmp-calibre/calibre/setup/gui.py", line 37, in run
    self.build_forms()
  File "/tmp/build/tmp-calibre/calibre/setup/gui.py", line 61, in build_forms
    build_forms(self.SRC, info=self.info)
  File "/tmp/build/tmp-calibre/calibre/src/calibre/gui2/__init__.py", line 894, in build_forms
    open(compiled_form, 'wb').write(dat)
IOError: [Errno 13] Permission denied: '/tmp/build/tmp-calibre/calibre/src/calibre/gui2/shortcuts_ui.py'
mv: cannot stat */tmp/build/package-calibre/usr/etc*: No such file or directory
Any clue to fix this ?
 
Old 06-01-2012, 06:17 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,393

Rep: Reputation: Disabled
See my comment posted on "April 6, 2012 at 18:46" in http://alien.slackbook.org/blog/kde-...oon-hopefully/ :

Code:
( cd /usr/lib64 ; ln -s libMagickWand.so.5 libMagickWand.so.4 ; ln -s libMagickCore.so.5 libMagickCore.so.4 )
Your compilation errors, are they caused by running the SlackBuild as a normal user perhaps, instead of being root?

Eric
 
Old 06-01-2012, 06:38 AM   #4
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 78

Original Poster
Rep: Reputation: 27
Thanks Eric, that did the trick.

I tried again to compile the package, as root like the first time, with the same result.

Running the e-book viewer is enough for me, I'll left compilation aside for now.

Thanks Eric
 
Old 06-21-2012, 12:01 AM   #5
Hyonane
LQ Newbie
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 28

Rep: Reputation: Disabled
I tried to compile too with only icu4c and podofo installed and got some crazy erros too. I later looked again the same post i made about this same error and Willy told me to upgrade cssutils, sip and PyQt if i wanted to compile. So i did and my calibre-package compiled. Try that. Im not 100% sure u need to upgrade all 3 packages, but im sure u need cssutils >= 0.9.9. Ill notify the CSSutils mantainer in Slackbuilds.org to update it to the 0.9.10b. It builds flawless ( needs ditribute )
 
Old 06-21-2012, 08:44 PM   #6
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 293

Rep: Reputation: 76
Quote:
Originally Posted by Hyonane View Post
Im not 100% sure u need to upgrade all 3 packages, but im sure u need cssutils >= 0.9.9. Ill notify the CSSutils mantainer in Slackbuilds.org to update it to the 0.9.10b. It builds flawless ( needs ditribute )
Please don't email me about this. I've already downgraded the cssutils package on SBo because newer versions aren't compatible with the version of calibre on SBo.
 
Old 06-21-2012, 10:22 PM   #7
Hyonane
LQ Newbie
 
Registered: Sep 2011
Location: Brazil
Distribution: Slackware64-current+multilib
Posts: 28

Rep: Reputation: Disabled
sorry bro, i wont email u then. Ill check more about this when i have some time.
 
Old 06-22-2012, 03:36 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,393

Rep: Reputation: Disabled
Quote:
Originally Posted by Hyonane View Post
sorry bro, i wont email u then. Ill check more about this when i have some time.
Either you use the calibre.SlackBuild script on http://slackbuilds.org/ (but that will give you a severely outdated version of calibre) or you use my own calibre.SlackBuild which requires cssutils >= 0.9.9.

Note that if you do not have python2.7 installed on your computer (Slackware still ships 2.6 even in -current although that will change soon), then my SlackBuild will compile a "private" version of python2.7 inclusing cssutils, PyQt and several other python modules into the package. Only icu4c and podofo remain as external dependencies.

Eric
 
  


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
[ANN] Linux-PAM Updates to -current and AlienBob's KDE 4.8.0 vbatts Slackware 2 02-19-2012 02:31 PM
VirtualBox-OSE cannot be run as user anymore because "VBoxVMM.so" doesn't exist? Raveolution Linux - Software 2 11-15-2010 02:46 AM
slackpkg/blacklist for AlienBob's current multilib and kde 4.4.2 packages damgar Slackware 7 04-08-2010 10:33 PM
TouchPad doesn't click anymore after updating to -current Karimo Slackware 16 09-11-2009 04:32 PM
GUI (KDE 3.5) doesn't run anymore ceantuco Linux - Newbie 5 01-06-2009 09:22 AM


All times are GMT -5. The time now is 01:45 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration