LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 09-11-2011, 03:04 PM   #1
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Rep: Reputation: 17
Calibre 0.8.18


I'm trying to modify the slackbuild script from sbo to use the latest version of calibre. I get the following errors:
Code:
patching file src/calibre/linux.py
Hunk #1 FAILED at 288.
Hunk #2 FAILED at 304.
2 out of 2 hunks FAILED -- saving rejects to file src/calibre/linux.py.rej
patching file src/calibre/utils/help2man.py
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 58.
2 out of 2 hunks FAILED -- saving rejects to file src/calibre/utils/help2man.py.rej
any ideas how to fix this?

Thanks Dan...
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-11-2011, 03:16 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
It sounds like the patch file you're using wasn't created using the file which you're trying to patch - it can't find the bits of code it needs to change. Where did you get the source and the patch from?
 
Old 09-11-2011, 03:19 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,185

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by interndan View Post
any ideas how to fix this?
You either need the correct patch for the correct source version, or take a look to see what the patch changes and try to make one yourself.
 
Old 09-11-2011, 03:57 PM   #4
sinic
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 4
You could also take AlienBOB's package (that has been updated today), instead of compiling it yourself.
 
Old 09-11-2011, 04:32 PM   #5
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Original Poster
Rep: Reputation: 17
I got the source from calibre home page. I didn't see anything about a patch of any kind.

I'll give AlienBob's package a try.

Thanks.
Dan
 
Old 09-11-2011, 05:08 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,116

Rep: Reputation: Disabled
The SlackBuild script at SBo is useless for any recent version of Calibre. Slackware ships python 2.6 and Calibre requires python 2.7.
My own SlackBuild script adds an internal python 2.7 compiler plus several python modules to circumvent this problem. That is why the package is so big.

Eric
 
2 members found this post helpful.
Old 09-12-2011, 11:03 AM   #7
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Original Poster
Rep: Reputation: 17
Well, I tried your package and it doesn't run. Something else must have changed on my system. Perhaps when I installed LXDE. I also tried recompiling the version I was running, and it also fails. I've got to search through the dependencies list and see what else has changed.

Thanks
Dan
 
Old 09-12-2011, 01:16 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,116

Rep: Reputation: Disabled
I see that I forgot to update my "slack-required" file which lists the dependencies. I have fixed that right away.

What you need apart from my calibre package are podofo and icu4c.
And a full installation of Slackware 13.37 of course :-)

If you are uncertain why calibre does not work, try starting it in a terminal so that you can observe it's standard and error output.

Eric
 
Old 09-12-2011, 01:20 PM   #9
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Original Poster
Rep: Reputation: 17
I'm not at home right now, but I will check when I get there. Thanks much for the advice.

Dan
 
Old 09-14-2011, 08:07 PM   #10
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Original Poster
Rep: Reputation: 17
I apologize for the delay (my granddaughter's softball games interfered with computer work). I installed the other two packages, and calibre still does not run. This is the error when trying to start from terminal:
Code:
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib64/calibre/calibre/gui2/__init__.py", line 7, in <module>
    from PyQt4.Qt import (QVariant, QFileInfo, QObject, SIGNAL, QBuffer, Qt,
ImportError: cannot import name QVariant
Thanks
Dan
 
Old 09-15-2011, 07:18 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,116

Rep: Reputation: Disabled
What release of Slacwkare are you running? I can see that it is a 64bit version.
The error is related to the PyQt package, a full installation of Slackware 13.37 should fullfill all requirements.
You are not installing my Slackware 13.37 calibre package on an older Slackware release are you?

Eric
 
1 members found this post helpful.
Old 09-15-2011, 07:14 PM   #12
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Original Poster
Rep: Reputation: 17
Yeah that seems to be the problem. I thought I had upgraded this system, apparently I'm still running 13.1
 
Old 09-15-2011, 07:48 PM   #13
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 13.37
Posts: 217

Original Poster
Rep: Reputation: 17
I installed your 13.1 packages and Calibre is running now. Thanks for the help. Can I upgrade to Calibre 0.8.18 with Slack 13.1 ?

Dan
 
Old 09-15-2011, 09:19 PM   #14
Hyonane
LQ Newbie
 
Registered: Sep 2011
Posts: 26

Rep: Reputation: Disabled
I did the same that Dan tried some months ago, work around the slackbuilds script trying to make a package for the new Calibre, and because of the python requirement it obviously didnt work. Im just curious, Bob, why ICU4C and PODOFO werent build inside ur package, as all the others requirements like Beautifulsoup, lxml, setuptools and those others i cant really remenber?

I was studying how to build packages and those things, and since Slackware dont check for dependencies, i was wondering how can i decide if i include dependencies compiled inside the package. Im not talking just about the size of the package , im thinking about stability and how, for example, Calibre, in this example, behaves if Beautifulsoup was in the system when i installed it(calibre) and remove it(beautifulsoup) later from the system. I never had this kinda of problem in Slackware, that i know of.

Funny that while i was thinking about another example i realized its exactly the thing KDE-Developers did with 4.7. They splited the packages in more packages.

I dont want to drag this post too much, but im building Gnome 2.32.1, Enlightement , PCSX2-devel, PCSX2-release, and others, all to slackware, and was havind these toughts about package building. I will create another topic about these builds.
 
Old 09-15-2011, 09:28 PM   #15
Hyonane
LQ Newbie
 
Registered: Sep 2011
Posts: 26

Rep: Reputation: Disabled
Dan, there is a package in the build folder (calibre_pythondeps-13.1.0-x86_64.tar.bz2) that should handle everything if u try to build the Calibre 0.8.18 yourself, but u shouldnt upgrade ur 64b with a 32b.

If that was not the question , and u just asking if u can run the newest Calibre in Slackware-13.1, after another Calibre-0.8 worked, im pretty sure u can.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LibreOffice Writer and Calibre and EPUB format SaintDanBert Linux - Software 3 06-06-2011 04:59 PM
LXer: Calibre - Really Good E-Book Management Tool for Linux LXer Syndicated Linux News 0 03-17-2011 05:20 PM
LXer: Creating and Reading eBooks on Linux with Calibre LXer Syndicated Linux News 0 12-17-2010 06:40 AM
LXer: Calibre 0.6: Zusätzliche E-Book-Formate LXer Syndicated Linux News 0 07-28-2009 03:30 PM
Installing Calibre on SuSE linux for digital ebooks readers. dougnc Linux - Mobile 0 01-18-2009 12:56 PM


All times are GMT -5. The time now is 05:32 AM.

Main Menu
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