Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2009, 03:54 PM   #16
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
Anything else I can try to narrow down the problem?
hyegeek is offline   Reply With Quote
Old 08-13-2009, 04:02 PM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Not unless you're willing to hack the source
kovidgoyal is offline   Reply With Quote
Old 08-13-2009, 04:05 PM   #18
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
I've already unpacked it looking for clues. The first thing I tried was changing my locale from unicode to C, but that does not seem to have helped.

Perhaps you can suggest where I might look and add debugging.
hyegeek is offline   Reply With Quote
Old 08-13-2009, 04:09 PM   #19
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the module calibre/gui2/tools.py and calibre/gui2/main.py is where the relevant code lives
kovidgoyal is offline   Reply With Quote
Old 08-13-2009, 04:38 PM   #20
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
I am not yet familiar enough with your code to know where to add debugging, but I think I know what is going on. When I run ebook-convert from the command line, it segfaults right after it finishes. Same as exiting from calibre. This is probably what makes the gui think it failed. If I can get to the bottom of the segfault, I will probably have my solution.
hyegeek is offline   Reply With Quote
Old 08-13-2009, 04:42 PM   #21
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
Just to make things real frustrating, running python through gdb prevents it from segfaulting, so I can't even try to figure out where things are going wrong.
hyegeek is offline   Reply With Quote
Old 08-13-2009, 04:59 PM   #22
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
OK. Problem solved. It appears that the segfault was a result of how all the scripts were being called. By changing things from calling python-wrapper to calling python directly, the segfaults are gone as are the errors on convert.
hyegeek is offline   Reply With Quote
Old 08-14-2009, 12:29 PM   #23
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Interesting, what change was this exactly?
kovidgoyal is offline   Reply With Quote
Old 08-14-2009, 12:32 PM   #24
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
Quote:
Originally Posted by kovidgoyal View Post
Interesting, what change was this exactly?
Under gentoo /usr/bin/python call's python-wrapper. By changing the first line of the scripts to

#!/usr/bin/python2

it called the version of python needed directly. There seems to be a big with how python-wrapper sets up the environment. The segfault was happening when python was cleaning up.
hyegeek is offline   Reply With Quote
Old 08-14-2009, 12:45 PM   #25
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm I use gentoo, don't see this behavior. Are you running the binary install of calibre?
kovidgoyal is offline   Reply With Quote
Old 08-14-2009, 12:50 PM   #26
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
I'm using the calibre package in portage. I unmasked the latest since the stable one is pretty old. It may be that my install of eselect-python is the problem. I have not dug in further after getting calibre to stop segfaulting. I did find a bug in bugs.gentoo.org about python-wrapper segfaulting, but I have not dug in far enough to find a solution.
hyegeek is offline   Reply With Quote
Old 08-14-2009, 12:54 PM   #27
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,392
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Weird, oh well as long as it works
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Conversions trstill Calibre 1 09-20-2010 10:07 AM
Conversion error: CHM to PDF or "anything else" conversions FAIL. Help. mm07 Calibre 3 05-16-2010 09:41 AM
ERROR: Error: Error communicating with device JWood Calibre 10 04-20-2010 07:28 PM
Problems with conversions unkilbeeg Calibre 2 08-21-2009 07:06 PM
Best format for conversions? Stitchawl LRF 4 03-22-2009 07:54 PM


All times are GMT -4. The time now is 07:19 PM.


MobileRead.com is a privately owned, operated and funded community.