Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 03-30-2024, 11:14 AM   #1
julenuri
Junior Member
julenuri began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2020
Device: Kindle 2 and Sony DPC
I need a little help to understand Calibre's conversion - cpickle

Hello Calibre people:

At first, let's say that I am not developer, I know nothing about code.

I am researching to fix a bug under ReactOS that involves one function that Calibre uses to convert bugs (I know it is an unsupported function since python 3.y.z , ok, but I want to fix this to fix all of the subsequent affected versions). It's the cPickle from python under the utils/ipc.

The point is that I don't understand where the failure starts, because the Calibre bug only points to a code that if I try to do a print(function), actually is showing activity.

Code:
    
    address = cPickle.loads(unhexlify(os.environ['CALIBRE_WORKER_ADDRESS']))
    key     = unhexlify(os.environ['CALIBRE_WORKER_KEY'])
    resultf = unhexlify(os.environ['CALIBRE_WORKER_RESULT']).decode('utf-8')
    with closing(Client(address, authkey=key)) as conn:
        name, args, kwargs, desc = eintr_retry_call(conn.recv)
It's like the pickle file that is generated is empty. So... I need to find what it does before, or what python function it uses to reach this to create a little demo that helps to find where ReactOS is failing.

Thanks you in advance.
julenuri is offline   Reply With Quote
Old 03-30-2024, 10:57 PM   #2
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: 43,924
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That is code that is run in worker processes. What is the actual error you are getting?
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
calibre 2.0, cpickle, fix, python, reactos


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pickle/cPickle problems davidfor Development 2 07-14-2019 06:12 AM
Does Calibre Understand When A Book is Read? American_Desi Calibre Companion 6 04-07-2018 11:41 PM
I cannot understand... balley401 Introduce Yourself 2 11-05-2011 09:22 AM
translating calibre: strings I dont understand trijntje Development 7 08-21-2011 07:02 AM
Trying to understand conversion process AlexBell Conversion 4 06-16-2011 07:46 AM


All times are GMT -4. The time now is 05:07 AM.


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