LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   calibre AlienBob's package doesn't run anymore on -current (http://www.linuxquestions.org/questions/slackware-14/calibre-alienbobs-package-doesnt-run-anymore-on-current-947926/)

cendryon 06-01-2012 03:28 AM

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

cendryon 06-01-2012 04:14 AM

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 ?

Alien Bob 06-01-2012 05:17 AM

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

cendryon 06-01-2012 05:38 AM

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

Hyonane 06-20-2012 11:01 PM

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 )

larryhaja 06-21-2012 07:44 PM

Quote:

Originally Posted by Hyonane (Post 4708200)
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.

Hyonane 06-21-2012 09:22 PM

sorry bro, i wont email u then. Ill check more about this when i have some time.

Alien Bob 06-22-2012 02:36 AM

Quote:

Originally Posted by Hyonane (Post 4708964)
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


All times are GMT -5. The time now is 03:17 PM.